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)

47 lines (41 loc) 1.33 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = require('react'); var React__default = _interopDefault(React); var styled = require('styled-components'); var styled__default = _interopDefault(styled); var index = require('../../../02-atoms/07-box/index.js'); /** * @file index.tsx * * @fileoverview Displays a facet box (to be used on the sidebar on a search page for example). */ const StyledFacetBox = styled__default(index.default) ` a, a span { display: block; margin-top: 1rem; margin-bottom: 1rem; } ${props => props.theme.mediaQueries.smallRevert} { box-shadow: none; margin: 0; } `; const FacetChildList = styled__default.div ` margin-top: 1rem; &::last-child { margin-bottom: 1rem; } ${props => (props.isChild ? `margin-left: 1rem;` : '')}; `; /** * A facet box contains a list of links inside a box to be used in a * sidebar region on the job or resume search pages. */ const FacetBox = ({ children, label }) => { return (React__default.createElement(StyledFacetBox, { "data-testid": "facet-box", label: label }, children)); }; exports.FacetBox = FacetBox; exports.FacetChildList = FacetChildList;