@sb1/ffe-cards-react 13.0.23 → 15.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/CardBase.js +35 -23
- package/es/IconCard/IconCard.js +33 -42
- package/es/ImageCard/ImageCard.js +35 -40
- package/es/StippledCard/StippledCard.js +35 -45
- package/es/TextCard/TextCard.js +31 -32
- package/es/components/CardName.js +27 -17
- package/es/components/ComponentBase.js +25 -20
- package/es/components/Subtext.js +27 -17
- package/es/components/Text.js +27 -17
- package/es/components/Title.js +29 -23
- package/es/components/index.js +4 -4
- package/es/fixedForwardRef.js +2 -0
- package/es/index.js +5 -5
- package/es/types.js +1 -0
- package/lib/CardBase.js +41 -30
- package/lib/IconCard/IconCard.js +38 -50
- package/lib/ImageCard/ImageCard.js +40 -49
- package/lib/StippledCard/StippledCard.js +40 -51
- package/lib/TextCard/TextCard.js +35 -40
- package/lib/components/CardName.js +33 -23
- package/lib/components/ComponentBase.js +31 -26
- package/lib/components/Subtext.js +33 -23
- package/lib/components/Text.js +33 -23
- package/lib/components/Title.js +35 -29
- package/lib/components/index.js +10 -33
- package/lib/fixedForwardRef.js +5 -0
- package/lib/index.js +12 -40
- package/lib/types.js +2 -0
- package/package.json +7 -8
- package/types/CardBase.d.ts +23 -0
- package/types/IconCard/IconCard.d.ts +16 -0
- package/types/ImageCard/ImageCard.d.ts +16 -0
- package/types/StippledCard/StippledCard.d.ts +22 -0
- package/types/TextCard/TextCard.d.ts +14 -0
- package/types/components/CardName.d.ts +4 -0
- package/types/components/ComponentBase.d.ts +6 -0
- package/types/components/Subtext.d.ts +4 -0
- package/types/components/Text.d.ts +4 -0
- package/types/components/Title.d.ts +7 -0
- package/types/components/index.d.ts +4 -0
- package/types/fixedForwardRef.d.ts +4 -0
- package/types/index.d.ts +5 -78
- package/types/types.d.ts +15 -0
package/es/CardBase.js
CHANGED
|
@@ -1,25 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
5
23
|
import React from 'react';
|
|
24
|
+
import { fixedForwardRef } from './fixedForwardRef';
|
|
6
25
|
import classNames from 'classnames';
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
CardBase.propTypes = {
|
|
20
|
-
className: string,
|
|
21
|
-
children: node,
|
|
22
|
-
/** The element to render the card as */
|
|
23
|
-
element: oneOfType([func, string, elementType])
|
|
24
|
-
};
|
|
25
|
-
export default CardBase;
|
|
26
|
+
function CardBaseWithForwardRef(props, ref) {
|
|
27
|
+
var _a;
|
|
28
|
+
var _b = props.as, Comp = _b === void 0 ? 'a' : _b, className = props.className, shadow = props.shadow, noMargin = props.noMargin, textCenter = props.textCenter, bgColor = props.bgColor, bgDarkmodeColor = props.bgDarkmodeColor, rest = __rest(props, ["as", "className", "shadow", "noMargin", "textCenter", "bgColor", "bgDarkmodeColor"]);
|
|
29
|
+
return (React.createElement(Comp, __assign({ className: classNames('ffe-card-base', className, (_a = {},
|
|
30
|
+
_a["ffe-card-base--bg-".concat(bgColor)] = bgColor,
|
|
31
|
+
_a["ffe-card-base--dm-bg-".concat(bgDarkmodeColor)] = bgDarkmodeColor,
|
|
32
|
+
_a['ffe-card-base--box-shadow'] = shadow,
|
|
33
|
+
_a['ffe-card-base--no-margin'] = noMargin,
|
|
34
|
+
_a['ffe-card-base--text-center'] = textCenter,
|
|
35
|
+
_a)) }, rest, { ref: ref })));
|
|
36
|
+
}
|
|
37
|
+
export var CardBase = fixedForwardRef(CardBaseWithForwardRef);
|
package/es/IconCard/IconCard.js
CHANGED
|
@@ -1,44 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import React from 'react';
|
|
12
|
-
import classNames from 'classnames';
|
|
13
|
-
import { node, string, bool, func, oneOfType, elementType } from 'prop-types';
|
|
14
|
-
import * as components from '../components';
|
|
15
|
-
var IconCard = function IconCard(props) {
|
|
16
|
-
var className = props.className,
|
|
17
|
-
icon = props.icon,
|
|
18
|
-
condensed = props.condensed,
|
|
19
|
-
_props$element = props.element,
|
|
20
|
-
Element = _props$element === void 0 ? 'a' : _props$element,
|
|
21
|
-
children = props.children,
|
|
22
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
23
|
-
return /*#__PURE__*/React.createElement(Element, _extends({
|
|
24
|
-
className: classNames('ffe-icon-card', {
|
|
25
|
-
'ffe-icon-card--condensed': condensed
|
|
26
|
-
}, className)
|
|
27
|
-
}, rest), /*#__PURE__*/React.cloneElement(icon, _objectSpread(_objectSpread({}, icon.props), {}, {
|
|
28
|
-
className: classNames('ffe-icon-card__icon', icon.props.className)
|
|
29
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: "ffe-icon-card__body"
|
|
31
|
-
}, typeof children === 'function' ? children(components) : children));
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
32
11
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
43
22
|
};
|
|
44
|
-
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { fixedForwardRef } from '../fixedForwardRef';
|
|
25
|
+
import classNames from 'classnames';
|
|
26
|
+
import { Text, Subtext, Title, CardName } from '../components';
|
|
27
|
+
function IconCardWithForwardRef(props, ref) {
|
|
28
|
+
var _a = props.as, Comp = _a === void 0 ? 'a' : _a, className = props.className, condensed = props.condensed, icon = props.icon, children = props.children, rest = __rest(props, ["as", "className", "condensed", "icon", "children"]);
|
|
29
|
+
return (React.createElement(Comp, __assign({ className: classNames('ffe-icon-card', { 'ffe-icon-card--condensed': condensed }, className) }, rest, { ref: ref }),
|
|
30
|
+
React.cloneElement(icon, __assign(__assign({}, icon.props), { className: classNames('ffe-icon-card__icon', icon.props.className) })),
|
|
31
|
+
React.createElement("div", { className: "ffe-icon-card__body" }, typeof children === 'function'
|
|
32
|
+
? children({ Text: Text, Subtext: Subtext, Title: Title, CardName: CardName })
|
|
33
|
+
: children)));
|
|
34
|
+
}
|
|
35
|
+
export var IconCard = fixedForwardRef(IconCardWithForwardRef);
|
|
@@ -1,42 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
imageSrc = props.imageSrc,
|
|
12
|
-
imageAltText = props.imageAltText,
|
|
13
|
-
_props$element = props.element,
|
|
14
|
-
Element = _props$element === void 0 ? 'a' : _props$element,
|
|
15
|
-
children = props.children,
|
|
16
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
17
|
-
return /*#__PURE__*/React.createElement(Element, _extends({
|
|
18
|
-
className: classNames('ffe-image-card', className)
|
|
19
|
-
}, rest), /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
className: "ffe-image-card__image-container"
|
|
21
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
22
|
-
className: "ffe-image-card__image-overlay"
|
|
23
|
-
}), /*#__PURE__*/React.createElement("img", {
|
|
24
|
-
src: imageSrc,
|
|
25
|
-
alt: imageAltText,
|
|
26
|
-
className: "ffe-image-card__image"
|
|
27
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
28
|
-
className: "ffe-image-card__body"
|
|
29
|
-
}, typeof children === 'function' ? children(components) : children));
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
30
11
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
41
22
|
};
|
|
42
|
-
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { fixedForwardRef } from '../fixedForwardRef';
|
|
25
|
+
import classNames from 'classnames';
|
|
26
|
+
import { Text, Subtext, Title, CardName } from '../components';
|
|
27
|
+
function ImageCardWithForwardRef(props, ref) {
|
|
28
|
+
var _a = props.as, Comp = _a === void 0 ? 'a' : _a, className = props.className, imageSrc = props.imageSrc, imageAltText = props.imageAltText, children = props.children, rest = __rest(props, ["as", "className", "imageSrc", "imageAltText", "children"]);
|
|
29
|
+
return (React.createElement(Comp, __assign({ className: classNames('ffe-image-card', className) }, rest, { ref: ref }),
|
|
30
|
+
React.createElement("div", { className: "ffe-image-card__image-container" },
|
|
31
|
+
React.createElement("div", { className: "ffe-image-card__image-overlay" }),
|
|
32
|
+
React.createElement("img", { src: imageSrc, alt: imageAltText, className: "ffe-image-card__image" })),
|
|
33
|
+
React.createElement("div", { className: "ffe-image-card__body" }, typeof children === 'function'
|
|
34
|
+
? children({ Text: Text, Subtext: Subtext, Title: Title, CardName: CardName })
|
|
35
|
+
: children)));
|
|
36
|
+
}
|
|
37
|
+
export var ImageCard = fixedForwardRef(ImageCardWithForwardRef);
|
|
@@ -1,47 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_ref$element = _ref.element,
|
|
12
|
-
Element = _ref$element === void 0 ? 'a' : _ref$element,
|
|
13
|
-
children = _ref.children,
|
|
14
|
-
img = _ref.img,
|
|
15
|
-
condensed = _ref.condensed,
|
|
16
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
-
return /*#__PURE__*/React.createElement(Element, _extends({
|
|
18
|
-
className: classNames('ffe-stippled-card', {
|
|
19
|
-
'ffe-stippled-card--condensed': condensed
|
|
20
|
-
}, className)
|
|
21
|
-
}, rest), /*#__PURE__*/React.createElement("div", {
|
|
22
|
-
className: classNames('ffe-stippled-card__img', {
|
|
23
|
-
'ffe-stippled-card__img--icon': (img === null || img === void 0 ? void 0 : img.type) === 'icon'
|
|
24
|
-
}),
|
|
25
|
-
"aria-hidden": (img === null || img === void 0 ? void 0 : img.type) === 'icon'
|
|
26
|
-
}, img === null || img === void 0 ? void 0 : img.element), /*#__PURE__*/React.createElement("div", null, typeof children === 'function' ? children({
|
|
27
|
-
CardName: CardName,
|
|
28
|
-
Title: Title,
|
|
29
|
-
Text: Text,
|
|
30
|
-
Subtext: Subtext
|
|
31
|
-
}) : children));
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
32
11
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}),
|
|
44
|
-
/** Smaller icon and less space */
|
|
45
|
-
condensed: bool
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
46
22
|
};
|
|
47
|
-
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { fixedForwardRef } from '../fixedForwardRef';
|
|
25
|
+
import classNames from 'classnames';
|
|
26
|
+
import { Text, Subtext, Title, CardName } from '../components';
|
|
27
|
+
function StippledCardWithForwardRef(props, ref) {
|
|
28
|
+
var _a = props.as, Comp = _a === void 0 ? 'a' : _a, className = props.className, condensed = props.condensed, img = props.img, children = props.children, rest = __rest(props, ["as", "className", "condensed", "img", "children"]);
|
|
29
|
+
return (React.createElement(Comp, __assign({ className: classNames('ffe-stippled-card', { 'ffe-stippled-card--condensed': condensed }, className) }, rest, { ref: ref }),
|
|
30
|
+
React.createElement("div", { className: classNames('ffe-stippled-card__img', {
|
|
31
|
+
'ffe-stippled-card__img--icon': (img === null || img === void 0 ? void 0 : img.type) === 'icon',
|
|
32
|
+
}), "aria-hidden": (img === null || img === void 0 ? void 0 : img.type) === 'icon' }, img === null || img === void 0 ? void 0 : img.element),
|
|
33
|
+
React.createElement("div", null, typeof children === 'function'
|
|
34
|
+
? children({ CardName: CardName, Title: Title, Text: Text, Subtext: Subtext })
|
|
35
|
+
: children)));
|
|
36
|
+
}
|
|
37
|
+
export var StippledCard = fixedForwardRef(StippledCardWithForwardRef);
|
package/es/TextCard/TextCard.js
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
leftAlign = props.leftAlign,
|
|
12
|
-
_props$element = props.element,
|
|
13
|
-
Element = _props$element === void 0 ? 'a' : _props$element,
|
|
14
|
-
children = props.children,
|
|
15
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
16
|
-
return /*#__PURE__*/React.createElement(Element, _extends({
|
|
17
|
-
className: classNames('ffe-text-card', {
|
|
18
|
-
'ffe-text-card--left-align': leftAlign
|
|
19
|
-
}, className)
|
|
20
|
-
}, rest), typeof children === 'function' ? children(components) : children);
|
|
21
|
-
};
|
|
22
|
-
TextCard.defaultProps = {
|
|
23
|
-
element: 'a'
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
24
11
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
33
22
|
};
|
|
34
|
-
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { fixedForwardRef } from '../fixedForwardRef';
|
|
25
|
+
import classNames from 'classnames';
|
|
26
|
+
import { Text, Subtext, Title, CardName } from '../components';
|
|
27
|
+
function TextCardWithForwardRef(props, ref) {
|
|
28
|
+
var _a = props.as, Comp = _a === void 0 ? 'a' : _a, className = props.className, leftAlign = props.leftAlign, children = props.children, rest = __rest(props, ["as", "className", "leftAlign", "children"]);
|
|
29
|
+
return (React.createElement(Comp, __assign({ className: classNames('ffe-text-card', { 'ffe-text-card--left-align': leftAlign }, className) }, rest, { ref: ref }), typeof children === 'function'
|
|
30
|
+
? children({ Text: Text, Subtext: Subtext, Title: Title, CardName: CardName })
|
|
31
|
+
: children));
|
|
32
|
+
}
|
|
33
|
+
export var TextCard = fixedForwardRef(TextCardWithForwardRef);
|
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return /*#__PURE__*/React.createElement(ComponentBase, _extends({
|
|
13
|
-
className: classNames('ffe-card-body__card-name', className)
|
|
14
|
-
}, rest));
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
15
11
|
};
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
18
22
|
};
|
|
19
|
-
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import classNames from 'classnames';
|
|
25
|
+
import { ComponentBase } from './ComponentBase';
|
|
26
|
+
export function CardName(props) {
|
|
27
|
+
var className = props.className, rest = __rest(props, ["className"]);
|
|
28
|
+
return (React.createElement(ComponentBase, __assign({ className: classNames('ffe-card-body__card-name', className) }, rest)));
|
|
29
|
+
}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Element = _ref$element === void 0 ? 'p' : _ref$element,
|
|
12
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
-
return /*#__PURE__*/React.createElement(Element, _extends({
|
|
14
|
-
className: classNames(className)
|
|
15
|
-
}, rest));
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
16
11
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
import React from 'react';
|
|
24
|
+
export function ComponentBase(props) {
|
|
25
|
+
var _a = props.as, Comp = _a === void 0 ? 'p' : _a, rest = __rest(props, ["as"]);
|
|
26
|
+
return React.createElement(Comp, __assign({}, rest));
|
|
27
|
+
}
|
package/es/components/Subtext.js
CHANGED
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return /*#__PURE__*/React.createElement(ComponentBase, _extends({
|
|
13
|
-
className: classNames('ffe-card-body__subtext', className)
|
|
14
|
-
}, rest));
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
15
11
|
};
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
18
22
|
};
|
|
19
|
-
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import classNames from 'classnames';
|
|
25
|
+
import { ComponentBase } from './ComponentBase';
|
|
26
|
+
export function Subtext(props) {
|
|
27
|
+
var className = props.className, rest = __rest(props, ["className"]);
|
|
28
|
+
return (React.createElement(ComponentBase, __assign({ className: classNames('ffe-card-body__subtext', className) }, rest)));
|
|
29
|
+
}
|
package/es/components/Text.js
CHANGED
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return /*#__PURE__*/React.createElement(ComponentBase, _extends({
|
|
13
|
-
className: classNames('ffe-card-body__text', className)
|
|
14
|
-
}, rest));
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
15
11
|
};
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
18
22
|
};
|
|
19
|
-
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import classNames from 'classnames';
|
|
25
|
+
import { ComponentBase } from './ComponentBase';
|
|
26
|
+
export function Text(props) {
|
|
27
|
+
var className = props.className, rest = __rest(props, ["className"]);
|
|
28
|
+
return (React.createElement(ComponentBase, __assign({ className: classNames('ffe-card-body__text', className) }, rest)));
|
|
29
|
+
}
|