@cloudflare/component-card 5.0.64 → 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/CHANGELOG.md +1042 -3214
- package/es/Card.js +25 -19
- package/es/CardBlock.js +12 -9
- package/es/CardContent.js +10 -7
- package/es/CardControl.js +36 -30
- package/es/CardDrawer.js +10 -7
- package/es/CardDrawers.js +31 -24
- package/es/CardFooter.js +10 -7
- package/es/CardMessages.js +13 -10
- package/es/CardPropTypes.js +2 -2
- package/es/CardSection.js +25 -19
- package/es/CardToolbar.js +27 -21
- package/es/CardToolbarDrawerTrigger.js +8 -7
- package/es/CardToolbarLink.js +6 -5
- package/lib/CardBlock.js +14 -8
- package/lib/CardDrawers.js +18 -10
- package/lib/CardToolbarDrawerTrigger.js +14 -8
- package/lib/index.js +18 -18
- package/package.json +11 -11
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
borderTop:
|
|
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
|
-
|
|
5
|
+
var styles = () => ({
|
|
6
6
|
p: [3, 3, 4],
|
|
7
7
|
tablet: {
|
|
8
8
|
display: 'table-cell'
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
this.props.drawers.forEach(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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,
|
package/es/CardMessages.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
|
-
|
|
5
|
+
var styles = () => ({
|
|
6
6
|
pt: 2
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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,
|
package/es/CardPropTypes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
|
|
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
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
borderTop:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
22
|
+
var Triggers = createComponent(() => ({
|
|
20
23
|
float: 'right',
|
|
21
24
|
position: 'relative'
|
|
22
25
|
}), 'div');
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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,
|
package/es/CardToolbarLink.js
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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";
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
57
|
+
return _super.apply(this, arguments);
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
_createClass(CardBlock, [{
|