@cloudflare/component-card 5.0.66 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/Card.js CHANGED
@@ -2,26 +2,32 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { createStyledComponent } from '@cloudflare/style-container';
4
4
 
5
- const styles = ({
6
- theme
7
- }) => ({
8
- my: 3,
9
- padding: 0,
10
- backgroundColor: theme.colors.background,
11
- border: `1px solid ${theme.colors.gray[7]}`,
12
- borderRadius: theme.radii[2]
13
- });
5
+ var styles = _ref => {
6
+ var {
7
+ theme
8
+ } = _ref;
9
+ return {
10
+ my: 3,
11
+ padding: 0,
12
+ backgroundColor: theme.colors.background,
13
+ border: "1px solid ".concat(theme.colors.gray[7]),
14
+ borderRadius: theme.radii[2]
15
+ };
16
+ };
14
17
 
15
- const Card = ({
16
- id,
17
- className,
18
- testId,
19
- children
20
- }) => /*#__PURE__*/React.createElement("div", {
21
- id: id,
22
- className: className,
23
- "data-testid": testId
24
- }, children);
18
+ var Card = _ref2 => {
19
+ var {
20
+ id,
21
+ className,
22
+ testId,
23
+ children
24
+ } = _ref2;
25
+ return /*#__PURE__*/React.createElement("div", {
26
+ id: id,
27
+ className: className,
28
+ "data-testid": testId
29
+ }, children);
30
+ };
25
31
 
26
32
  Card.propTypes = {
27
33
  className: PropTypes.string,
package/es/CardBlock.js CHANGED
@@ -2,15 +2,18 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { createStyledComponent } from '@cloudflare/style-container';
4
4
 
5
- const styles = ({
6
- theme
7
- }) => ({
8
- p: 3,
9
- borderTop: `1px solid ${theme.colors.gray[7]}`,
10
- '&:first-child': {
11
- borderTop: 0
12
- }
13
- });
5
+ var styles = _ref => {
6
+ var {
7
+ theme
8
+ } = _ref;
9
+ return {
10
+ p: 3,
11
+ borderTop: "1px solid ".concat(theme.colors.gray[7]),
12
+ '&:first-child': {
13
+ borderTop: 0
14
+ }
15
+ };
16
+ };
14
17
 
15
18
  class CardBlock extends React.Component {
16
19
  render() {
package/es/CardContent.js CHANGED
@@ -2,19 +2,22 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { createStyledComponent } from '@cloudflare/style-container';
4
4
 
5
- const styles = () => ({
5
+ var styles = () => ({
6
6
  p: [3, 3, 4],
7
7
  tablet: {
8
8
  display: 'table-cell'
9
9
  }
10
10
  });
11
11
 
12
- const CardContent = ({
13
- className,
14
- children
15
- }) => /*#__PURE__*/React.createElement("div", {
16
- className: className
17
- }, children);
12
+ var CardContent = _ref => {
13
+ var {
14
+ className,
15
+ children
16
+ } = _ref;
17
+ return /*#__PURE__*/React.createElement("div", {
18
+ className: className
19
+ }, children);
20
+ };
18
21
 
19
22
  CardContent.propTypes = {
20
23
  className: PropTypes.string,
package/es/CardControl.js CHANGED
@@ -2,37 +2,43 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { createStyledComponent } from '@cloudflare/style-container';
4
4
 
5
- const styles = ({
6
- theme,
7
- wide
8
- }) => ({
9
- position: 'relative',
10
- padding: wide ? 0 : 4,
11
- border: `0 solid ${theme.colors.gray[7]}`,
12
- borderTopWidth: '1px',
13
- backgroundColor: theme.colors.gray[9],
14
- textAlign: wide ? 'inherit' : 'center',
15
- mobile: {
16
- borderTopWidth: '1px'
17
- },
18
- tablet: {
19
- width: '40%',
20
- borderLeftWidth: '1px',
21
- borderTopWidth: 0,
22
- verticalAlign: 'middle',
23
- display: 'table-cell'
24
- },
25
- desktop: {
26
- width: '30%'
27
- }
28
- });
5
+ var styles = _ref => {
6
+ var {
7
+ theme,
8
+ wide
9
+ } = _ref;
10
+ return {
11
+ position: 'relative',
12
+ padding: wide ? 0 : 4,
13
+ border: "0 solid ".concat(theme.colors.gray[7]),
14
+ borderTopWidth: '1px',
15
+ backgroundColor: theme.colors.gray[9],
16
+ textAlign: wide ? 'inherit' : 'center',
17
+ mobile: {
18
+ borderTopWidth: '1px'
19
+ },
20
+ tablet: {
21
+ width: '40%',
22
+ borderLeftWidth: '1px',
23
+ borderTopWidth: 0,
24
+ verticalAlign: 'middle',
25
+ display: 'table-cell'
26
+ },
27
+ desktop: {
28
+ width: '30%'
29
+ }
30
+ };
31
+ };
29
32
 
30
- const CardControl = ({
31
- className,
32
- children
33
- }) => /*#__PURE__*/React.createElement("div", {
34
- className: className
35
- }, children);
33
+ var CardControl = _ref2 => {
34
+ var {
35
+ className,
36
+ children
37
+ } = _ref2;
38
+ return /*#__PURE__*/React.createElement("div", {
39
+ className: className
40
+ }, children);
41
+ };
36
42
 
37
43
  CardControl.propTypes = {
38
44
  className: PropTypes.string,
package/es/CardDrawer.js CHANGED
@@ -1,12 +1,15 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import { createStyledComponent } from '@cloudflare/style-container';
3
- const CardDrawer = createStyledComponent(({
4
- theme,
5
- isActive
6
- }) => ({
7
- borderTop: isActive ? `1px solid ${theme.colors.gray[7]}` : 'initial',
8
- padding: isActive ? 3 : 'initial'
9
- }), 'div', ['role', 'aria-labelledby']);
3
+ var CardDrawer = createStyledComponent(_ref => {
4
+ var {
5
+ theme,
6
+ isActive
7
+ } = _ref;
8
+ return {
9
+ borderTop: isActive ? "1px solid ".concat(theme.colors.gray[7]) : 'initial',
10
+ padding: isActive ? 3 : 'initial'
11
+ };
12
+ }, 'div', ['role', 'aria-labelledby']);
10
13
  CardDrawer.propTypes = {
11
14
  id: PropTypes.string.isRequired,
12
15
  key: PropTypes.string.isRequired,
package/es/CardDrawers.js CHANGED
@@ -1,4 +1,6 @@
1
- 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); }
1
+ var _excluded = ["id", "name", "content", "drawerComponent", "onClick", "href", "ariaLabel"];
2
+
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
4
 
3
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
6
 
@@ -12,7 +14,7 @@ import CardToolbarDrawerTrigger from './CardToolbarDrawerTrigger';
12
14
  import CardPropTypes from './CardPropTypes';
13
15
  import CardDrawer from './CardDrawer';
14
16
  import CardToolbarLink from './CardToolbarLink';
15
- let UNIQUE_ID = 0;
17
+ var UNIQUE_ID = 0;
16
18
 
17
19
  class CardDrawers extends React.Component {
18
20
  constructor(props) {
@@ -38,38 +40,43 @@ class CardDrawers extends React.Component {
38
40
  }
39
41
 
40
42
  runToggleFunctions(id, isOpen) {
41
- const toggleFunctions = this.toggleFunctions[id];
43
+ var toggleFunctions = this.toggleFunctions[id];
42
44
  toggleFunctions && toggleFunctions.every(fn => fn(isOpen));
43
45
  }
44
46
 
45
47
  handleLinkClick(id) {
46
48
  this.props.onClick && this.props.onClick(id);
47
- this.setState(({
48
- active
49
- }) => ({
50
- active: active === id ? null : id
51
- }), () => this.runToggleFunctions(id, this.state.active === id));
49
+ this.setState(_ref => {
50
+ var {
51
+ active
52
+ } = _ref;
53
+ return {
54
+ active: active === id ? null : id
55
+ };
56
+ }, () => this.runToggleFunctions(id, this.state.active === id));
52
57
  }
53
58
 
54
59
  render() {
55
- const active = this.props.hasOwnProperty('active') ? this.props.active : this.state.active;
56
- const triggers = [];
57
- const drawers = [];
58
- this.props.drawers.forEach((_ref) => {
59
- let drawerIdProps = _ref.id,
60
- name = _ref.name,
61
- content = _ref.content,
62
- drawerComponent = _ref.drawerComponent,
63
- onClick = _ref.onClick,
64
- href = _ref.href,
65
- ariaLabel = _ref.ariaLabel,
66
- rest = _objectWithoutProperties(_ref, ["id", "name", "content", "drawerComponent", "onClick", "href", "ariaLabel"]);
60
+ var active = this.props.hasOwnProperty('active') ? this.props.active : this.state.active;
61
+ var triggers = [];
62
+ var drawers = [];
63
+ this.props.drawers.forEach(_ref2 => {
64
+ var {
65
+ id: drawerIdProps,
66
+ name,
67
+ content,
68
+ drawerComponent,
69
+ onClick,
70
+ href,
71
+ ariaLabel
72
+ } = _ref2,
73
+ rest = _objectWithoutProperties(_ref2, _excluded);
67
74
 
68
75
  // The component used for the drawer can be overridden
69
- const Drawer = drawerComponent || CardDrawer;
70
- const triggerId = `trigger-${this._cardId}-${drawerIdProps}`;
71
- const drawerId = `drawer-${this._cardId}-${drawerIdProps}`;
72
- const isActive = drawerId === active;
76
+ var Drawer = drawerComponent || CardDrawer;
77
+ var triggerId = "trigger-".concat(this._cardId, "-").concat(drawerIdProps);
78
+ var drawerId = "drawer-".concat(this._cardId, "-").concat(drawerIdProps);
79
+ var isActive = drawerId === active;
73
80
  onClick && this.addToggleFunction(drawerId, onClick);
74
81
 
75
82
  if (!content && !href) {
package/es/CardFooter.js CHANGED
@@ -2,19 +2,22 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { createStyledComponent } from '@cloudflare/style-container';
4
4
 
5
- const styles = () => ({
5
+ var styles = () => ({
6
6
  fontSize: 1,
7
7
  color: 'gray.2',
8
8
  lineHeight: 1.25,
9
9
  mt: 3
10
10
  });
11
11
 
12
- const Footer = ({
13
- className,
14
- children
15
- }) => /*#__PURE__*/React.createElement("div", {
16
- className: className
17
- }, children);
12
+ var Footer = _ref => {
13
+ var {
14
+ className,
15
+ children
16
+ } = _ref;
17
+ return /*#__PURE__*/React.createElement("div", {
18
+ className: className
19
+ }, children);
20
+ };
18
21
 
19
22
  Footer.propTypes = {
20
23
  className: PropTypes.string,
@@ -2,19 +2,22 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { createStyledComponent } from '@cloudflare/style-container';
4
4
 
5
- const styles = () => ({
5
+ var styles = () => ({
6
6
  pt: 2
7
7
  });
8
8
 
9
- const CardMessages = ({
10
- className,
11
- messages
12
- }) => /*#__PURE__*/React.createElement("div", {
13
- className: className
14
- }, messages.map((message, index) => /*#__PURE__*/React.createElement("div", {
15
- key: index,
16
- role: "alert"
17
- }, message.content)));
9
+ var CardMessages = _ref => {
10
+ var {
11
+ className,
12
+ messages
13
+ } = _ref;
14
+ return /*#__PURE__*/React.createElement("div", {
15
+ className: className
16
+ }, messages.map((message, index) => /*#__PURE__*/React.createElement("div", {
17
+ key: index,
18
+ role: "alert"
19
+ }, message.content)));
20
+ };
18
21
 
19
22
  CardMessages.propTypes = {
20
23
  className: PropTypes.string,
@@ -1,5 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
- const cardDrawer = PropTypes.shape({
2
+ var cardDrawer = PropTypes.shape({
3
3
  id: PropTypes.string.isRequired,
4
4
  name: PropTypes.node.isRequired,
5
5
  content: PropTypes.any.isRequired,
@@ -12,7 +12,7 @@ const cardDrawer = PropTypes.shape({
12
12
  // closed (false).
13
13
  onClick: PropTypes.func
14
14
  });
15
- const cardDrawers = PropTypes.arrayOf(cardDrawer);
15
+ var cardDrawers = PropTypes.arrayOf(cardDrawer);
16
16
  export default {
17
17
  cardDrawer,
18
18
  cardDrawers
package/es/CardSection.js CHANGED
@@ -2,26 +2,32 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { createStyledComponent } from '@cloudflare/style-container';
4
4
 
5
- const styles = ({
6
- theme,
7
- status
8
- }) => ({
9
- display: 'table',
10
- tableLayout: 'fixed',
11
- width: '100%',
12
- borderTop: `1px solid ${theme.colors.gray[7]}`,
13
- borderLeft: status === 'error' ? `3px solid ${theme.colors.red[3]}` : 'initial',
14
- '&:first-child': {
15
- borderTop: 'initial'
16
- }
17
- });
5
+ var styles = _ref => {
6
+ var {
7
+ theme,
8
+ status
9
+ } = _ref;
10
+ return {
11
+ display: 'table',
12
+ tableLayout: 'fixed',
13
+ width: '100%',
14
+ borderTop: "1px solid ".concat(theme.colors.gray[7]),
15
+ borderLeft: status === 'error' ? "3px solid ".concat(theme.colors.red[3]) : 'initial',
16
+ '&:first-child': {
17
+ borderTop: 'initial'
18
+ }
19
+ };
20
+ };
18
21
 
19
- const CardSection = ({
20
- className,
21
- children
22
- }) => /*#__PURE__*/React.createElement("div", {
23
- className: className
24
- }, children);
22
+ var CardSection = _ref2 => {
23
+ var {
24
+ className,
25
+ children
26
+ } = _ref2;
27
+ return /*#__PURE__*/React.createElement("div", {
28
+ className: className
29
+ }, children);
30
+ };
25
31
 
26
32
  CardSection.propTypes = {
27
33
  className: PropTypes.string,
package/es/CardToolbar.js CHANGED
@@ -2,32 +2,38 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { createComponent, createStyledComponent } from '@cloudflare/style-container';
4
4
 
5
- const styles = ({
6
- theme
7
- }) => ({
8
- borderTop: `1px solid ${theme.colors.gray[7]}`,
9
- '&:first-child': {
10
- borderTop: 'initial'
11
- },
12
- '&::after': {
13
- content: "''",
14
- display: 'table',
15
- clear: 'both'
16
- }
17
- });
5
+ var styles = _ref => {
6
+ var {
7
+ theme
8
+ } = _ref;
9
+ return {
10
+ borderTop: "1px solid ".concat(theme.colors.gray[7]),
11
+ '&:first-child': {
12
+ borderTop: 'initial'
13
+ },
14
+ '&::after': {
15
+ content: "''",
16
+ display: 'table',
17
+ clear: 'both'
18
+ }
19
+ };
20
+ };
18
21
 
19
- const Triggers = createComponent(() => ({
22
+ var Triggers = createComponent(() => ({
20
23
  float: 'right',
21
24
  position: 'relative'
22
25
  }), 'div');
23
26
 
24
- const CardToolbar = ({
25
- className,
26
- controls,
27
- triggers
28
- }) => /*#__PURE__*/React.createElement("div", {
29
- className: className
30
- }, /*#__PURE__*/React.createElement("div", null, controls), /*#__PURE__*/React.createElement(Triggers, null, triggers));
27
+ var CardToolbar = _ref2 => {
28
+ var {
29
+ className,
30
+ controls,
31
+ triggers
32
+ } = _ref2;
33
+ return /*#__PURE__*/React.createElement("div", {
34
+ className: className
35
+ }, /*#__PURE__*/React.createElement("div", null, controls), /*#__PURE__*/React.createElement(Triggers, null, triggers));
36
+ };
31
37
 
32
38
  CardToolbar.propTypes = {
33
39
  className: PropTypes.string,
@@ -15,13 +15,14 @@ class CardToolbarDrawerTrigger extends React.Component {
15
15
  }
16
16
 
17
17
  render() {
18
- const _this$props = this.props,
19
- id = _this$props.id,
20
- children = _this$props.children,
21
- isActive = _this$props.isActive,
22
- ariaControls = _this$props.ariaControls,
23
- ariaExpanded = _this$props.ariaExpanded,
24
- ariaLabel = _this$props.ariaLabel;
18
+ var {
19
+ id,
20
+ children,
21
+ isActive,
22
+ ariaControls,
23
+ ariaExpanded,
24
+ ariaLabel
25
+ } = this.props;
25
26
  return /*#__PURE__*/React.createElement(TextButton, {
26
27
  id: id,
27
28
  onClick: this.handleClick,
@@ -2,11 +2,12 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Link } from '@cloudflare/component-link';
4
4
  import { createComponent } from '@cloudflare/style-container';
5
- const CardToolbarLink = createComponent({}, ({
6
- id,
7
- href,
8
- children
9
- }) => {
5
+ var CardToolbarLink = createComponent({}, _ref => {
6
+ var {
7
+ id,
8
+ href,
9
+ children
10
+ } = _ref;
10
11
  return /*#__PURE__*/React.createElement(Link, {
11
12
  px: 3,
12
13
  py: 2,
package/lib/CardBlock.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -19,17 +19,21 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
19
19
 
20
20
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
21
21
 
22
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
22
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
24
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
25
 
26
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
+
28
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
27
29
 
28
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
30
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
29
31
 
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
32
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
31
33
 
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
34
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
+
36
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
33
37
 
34
38
  var styles = function styles(_ref) {
35
39
  var theme = _ref.theme;
@@ -45,10 +49,12 @@ var styles = function styles(_ref) {
45
49
  var CardBlock = /*#__PURE__*/function (_React$Component) {
46
50
  _inherits(CardBlock, _React$Component);
47
51
 
52
+ var _super = _createSuper(CardBlock);
53
+
48
54
  function CardBlock() {
49
55
  _classCallCheck(this, CardBlock);
50
56
 
51
- return _possibleConstructorReturn(this, _getPrototypeOf(CardBlock).apply(this, arguments));
57
+ return _super.apply(this, arguments);
52
58
  }
53
59
 
54
60
  _createClass(CardBlock, [{