1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | var _templateObject = _taggedTemplateLiteral(['\n display: inline-block;\n font-family: ', ';\n font-weight: 300;\n text-decoration: none;\n background: ', ';\n color: ', ';\n padding: 0 1em;\n cursor: pointer;\n transition: all 0.2s ease-in;\n border-radius: 3px;\n box-shadow: 0px 2px 0px 0px rgba(0,0,0,0.20);\n display: flex;\n align-items: center;\n height: 2.5em;\n\n ', '\n\n span {\n font-size: 0.75em;\n ', ';\n }\n'], ['\n display: inline-block;\n font-family: ', ';\n font-weight: 300;\n text-decoration: none;\n background: ', ';\n color: ', ';\n padding: 0 1em;\n cursor: pointer;\n transition: all 0.2s ease-in;\n border-radius: 3px;\n box-shadow: 0px 2px 0px 0px rgba(0,0,0,0.20);\n display: flex;\n align-items: center;\n height: 2.5em;\n\n ', '\n\n span {\n font-size: 0.75em;\n ', ';\n }\n']),
|
8 | _templateObject2 = _taggedTemplateLiteral(['\n height: 3.75em;\n '], ['\n height: 3.75em;\n ']),
|
9 | _templateObject3 = _taggedTemplateLiteral(['font-size: 0.875em'], ['font-size: 0.875em']);
|
10 |
|
11 | var _media = require('../library/media');
|
12 |
|
13 | var _media2 = _interopRequireDefault(_media);
|
14 |
|
15 | var _styledComponents = require('styled-components');
|
16 |
|
17 | var _styledComponents2 = _interopRequireDefault(_styledComponents);
|
18 |
|
19 | var _react = require('react');
|
20 |
|
21 | var _react2 = _interopRequireDefault(_react);
|
22 |
|
23 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
24 |
|
25 | function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
26 |
|
27 | var StyledTag = _styledComponents2.default.span(_templateObject, function (props) {
|
28 | return props.theme.font.base;
|
29 | }, function (props) {
|
30 | return props.theme.colors.black;
|
31 | }, function (props) {
|
32 | return props.theme.colors.white;
|
33 | }, _media2.default.wide(_templateObject2), _media2.default.wide(_templateObject3));
|
34 |
|
35 | var Tag = function Tag(_ref) {
|
36 | var children = _ref.children;
|
37 | return _react2.default.createElement(
|
38 | StyledTag,
|
39 | null,
|
40 | _react2.default.createElement(
|
41 | 'span',
|
42 | null,
|
43 | children
|
44 | )
|
45 | );
|
46 | };
|
47 |
|
48 | Tag.propTypes = {
|
49 | children: _react.PropTypes.string.isRequired
|
50 | };
|
51 |
|
52 | exports.default = Tag; |
\ | No newline at end of file |