jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
40 lines (34 loc) • 1.66 kB
JavaScript
;
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$2 = require('../../../../node_modules/@styled-system/color/dist/index.esm.js');
var index_esm$9 = require('../../../../node_modules/@styled-system/space/dist/index.esm.js');
require('../../../../node_modules/styled-system/dist/index.esm.js');
/**
* @file index.tsx
*
* @fileoverview Well component.
*/
const WellStyled = styled__default.div `
background: ${props => props.theme.well.backgroundColor[props.wellStyle]};
padding: ${props => props.theme.well.padding};
border-radius: ${props => props.theme.well.borderRadius};
font-size: ${props => props.theme.well.fontSize};
color: ${props => props.theme.well.color[props.wellStyle]};
${index_esm$9.space}
${index_esm$2.color}
`;
/**
* This component renders a well with some content inside. It has specific styling. It can be used in a
* variety of situations but always should be used agains the background so that it contrasts with the background color.
*/
const Well = (_a) => {
var { children, wellStyle = 'default' } = _a, props = tslib_es6.__rest(_a, ["children", "wellStyle"]);
return (React__default.createElement(WellStyled, Object.assign({ wellStyle: wellStyle }, props), children));
};
exports.Well = Well;