1 | import "core-js/modules/es.object.assign.js";
|
2 |
|
3 | function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
4 |
|
5 | import React from 'react';
|
6 | import { styled } from '@storybook/theming';
|
7 | import { transparentize } from 'polished';
|
8 | import { withReset } from '../typography/shared';
|
9 | var Wrapper = styled.div(withReset, function (_ref) {
|
10 | var theme = _ref.theme;
|
11 | return {
|
12 | backgroundColor: theme.base === 'light' ? 'rgba(0,0,0,.01)' : 'rgba(255,255,255,.01)',
|
13 | borderRadius: theme.appBorderRadius,
|
14 | border: "1px dashed ".concat(theme.appBorderColor),
|
15 | display: 'flex',
|
16 | alignItems: 'center',
|
17 | justifyContent: 'center',
|
18 | padding: 20,
|
19 | margin: '25px 0 40px',
|
20 | color: transparentize(0.3, theme.color.defaultText),
|
21 | fontSize: theme.typography.size.s2
|
22 | };
|
23 | });
|
24 | export var EmptyBlock = function EmptyBlock(props) {
|
25 | return React.createElement(Wrapper, _extends({}, props, {
|
26 | className: "docblock-emptyblock"
|
27 | }));
|
28 | };
|
29 | EmptyBlock.displayName = "EmptyBlock"; |
\ | No newline at end of file |