@sb1/ffe-cards-react 14.0.0 → 15.0.1
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 -40
- 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 -47
- 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 -87
- package/types/types.d.ts +15 -0
package/es/components/Title.js
CHANGED
|
@@ -1,25 +1,31 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_ref$overflowEllipsis = _ref.overflowEllipsis,
|
|
12
|
-
overflowEllipsis = _ref$overflowEllipsis === void 0 ? false : _ref$overflowEllipsis,
|
|
13
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
-
return /*#__PURE__*/React.createElement(ComponentBase, _extends({
|
|
15
|
-
className: classNames('ffe-card-body__title', {
|
|
16
|
-
'ffe-card-body__title--overflow-ellipsis': overflowEllipsis
|
|
17
|
-
}, className)
|
|
18
|
-
}, 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);
|
|
19
11
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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;
|
|
24
22
|
};
|
|
25
|
-
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import classNames from 'classnames';
|
|
25
|
+
import { ComponentBase } from './ComponentBase';
|
|
26
|
+
export function Title(props) {
|
|
27
|
+
var className = props.className, overflowEllipsis = props.overflowEllipsis, rest = __rest(props, ["className", "overflowEllipsis"]);
|
|
28
|
+
return (React.createElement(ComponentBase, __assign({ className: classNames('ffe-card-body__title', {
|
|
29
|
+
'ffe-card-body__title--overflow-ellipsis': overflowEllipsis,
|
|
30
|
+
}, className) }, rest)));
|
|
31
|
+
}
|
package/es/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
1
|
+
export { CardName } from './CardName';
|
|
2
|
+
export { Subtext } from './Subtext';
|
|
3
|
+
export { Text } from './Text';
|
|
4
|
+
export { Title } from './Title';
|
package/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
1
|
+
export { CardBase } from './CardBase';
|
|
2
|
+
export { TextCard } from './TextCard/TextCard';
|
|
3
|
+
export { IconCard } from './IconCard/IconCard';
|
|
4
|
+
export { ImageCard } from './ImageCard/ImageCard';
|
|
5
|
+
export { StippledCard } from './StippledCard/StippledCard';
|
package/es/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/CardBase.js
CHANGED
|
@@ -1,49 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
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); }
|
|
14
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
17
|
-
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; }
|
|
18
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
19
|
-
var CardBase = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
20
|
-
var className = props.className,
|
|
21
|
-
_props$element = props.element,
|
|
22
|
-
Element = _props$element === void 0 ? 'a' : _props$element,
|
|
23
|
-
bgColor = props.bgColor,
|
|
24
|
-
bgDarkmodeColor = props.bgDarkmodeColor,
|
|
25
|
-
_props$shadow = props.shadow,
|
|
26
|
-
shadow = _props$shadow === void 0 ? false : _props$shadow,
|
|
27
|
-
_props$noMargin = props.noMargin,
|
|
28
|
-
noMargin = _props$noMargin === void 0 ? false : _props$noMargin,
|
|
29
|
-
_props$textCenter = props.textCenter,
|
|
30
|
-
textCenter = _props$textCenter === void 0 ? false : _props$textCenter,
|
|
31
|
-
children = props.children,
|
|
32
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(Element, _extends({
|
|
34
|
-
className: (0, _classnames.default)('ffe-card-base', className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "ffe-card-base--bg-".concat(bgColor), bgColor), "ffe-card-base--dm-bg-".concat(bgDarkmodeColor), bgDarkmodeColor), 'ffe-card-base--box-shadow', shadow), 'ffe-card-base--no-margin', noMargin), 'ffe-card-base--text-center', textCenter)),
|
|
35
|
-
ref: ref
|
|
36
|
-
}, rest), children);
|
|
37
|
-
});
|
|
38
|
-
CardBase.propTypes = {
|
|
39
|
-
className: _propTypes.string,
|
|
40
|
-
bgColor: (0, _propTypes.oneOf)(['sand-30', 'sand-70', 'frost-30', 'syrin-30', 'syrin-70']),
|
|
41
|
-
bgDarkmodeColor: (0, _propTypes.oneOf)(['natt', 'svart', 'koksgraa']),
|
|
42
|
-
shadow: _propTypes.bool,
|
|
43
|
-
noMargin: _propTypes.bool,
|
|
44
|
-
textCenter: _propTypes.bool,
|
|
45
|
-
children: _propTypes.node,
|
|
46
|
-
/** The element to render the card as */
|
|
47
|
-
element: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.string, _propTypes.elementType])
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
48
12
|
};
|
|
49
|
-
var
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.CardBase = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var fixedForwardRef_1 = require("./fixedForwardRef");
|
|
31
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
32
|
+
function CardBaseWithForwardRef(props, ref) {
|
|
33
|
+
var _a;
|
|
34
|
+
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"]);
|
|
35
|
+
return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-card-base', className, (_a = {},
|
|
36
|
+
_a["ffe-card-base--bg-".concat(bgColor)] = bgColor,
|
|
37
|
+
_a["ffe-card-base--dm-bg-".concat(bgDarkmodeColor)] = bgDarkmodeColor,
|
|
38
|
+
_a['ffe-card-base--box-shadow'] = shadow,
|
|
39
|
+
_a['ffe-card-base--no-margin'] = noMargin,
|
|
40
|
+
_a['ffe-card-base--text-center'] = textCenter,
|
|
41
|
+
_a)) }, rest, { ref: ref })));
|
|
42
|
+
}
|
|
43
|
+
exports.CardBase = (0, fixedForwardRef_1.fixedForwardRef)(CardBaseWithForwardRef);
|
package/lib/IconCard/IconCard.js
CHANGED
|
@@ -1,53 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _excluded = ["className", "icon", "condensed", "element", "children"];
|
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
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); }
|
|
17
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
21
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
|
-
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; }
|
|
23
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
24
|
-
var IconCard = function IconCard(props) {
|
|
25
|
-
var className = props.className,
|
|
26
|
-
icon = props.icon,
|
|
27
|
-
condensed = props.condensed,
|
|
28
|
-
_props$element = props.element,
|
|
29
|
-
Element = _props$element === void 0 ? 'a' : _props$element,
|
|
30
|
-
children = props.children,
|
|
31
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
32
|
-
return /*#__PURE__*/_react.default.createElement(Element, _extends({
|
|
33
|
-
className: (0, _classnames.default)('ffe-icon-card', {
|
|
34
|
-
'ffe-icon-card--condensed': condensed
|
|
35
|
-
}, className)
|
|
36
|
-
}, rest), /*#__PURE__*/_react.default.cloneElement(icon, _objectSpread(_objectSpread({}, icon.props), {}, {
|
|
37
|
-
className: (0, _classnames.default)('ffe-icon-card__icon', icon.props.className)
|
|
38
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
39
|
-
className: "ffe-icon-card__body"
|
|
40
|
-
}, typeof children === 'function' ? children(components) : children));
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
41
12
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
52
23
|
};
|
|
53
|
-
var
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.IconCard = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var fixedForwardRef_1 = require("../fixedForwardRef");
|
|
31
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
32
|
+
var components_1 = require("../components");
|
|
33
|
+
function IconCardWithForwardRef(props, ref) {
|
|
34
|
+
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"]);
|
|
35
|
+
return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-icon-card', { 'ffe-icon-card--condensed': condensed }, className) }, rest, { ref: ref }),
|
|
36
|
+
react_1.default.cloneElement(icon, __assign(__assign({}, icon.props), { className: (0, classnames_1.default)('ffe-icon-card__icon', icon.props.className) })),
|
|
37
|
+
react_1.default.createElement("div", { className: "ffe-icon-card__body" }, typeof children === 'function'
|
|
38
|
+
? children({ Text: components_1.Text, Subtext: components_1.Subtext, Title: components_1.Title, CardName: components_1.CardName })
|
|
39
|
+
: children)));
|
|
40
|
+
}
|
|
41
|
+
exports.IconCard = (0, fixedForwardRef_1.fixedForwardRef)(IconCardWithForwardRef);
|
|
@@ -1,52 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _excluded = ["className", "imageSrc", "imageAltText", "element", "children"];
|
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
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); }
|
|
17
|
-
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; }
|
|
18
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
19
|
-
var ImageCard = function ImageCard(props) {
|
|
20
|
-
var className = props.className,
|
|
21
|
-
imageSrc = props.imageSrc,
|
|
22
|
-
imageAltText = props.imageAltText,
|
|
23
|
-
_props$element = props.element,
|
|
24
|
-
Element = _props$element === void 0 ? 'a' : _props$element,
|
|
25
|
-
children = props.children,
|
|
26
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(Element, _extends({
|
|
28
|
-
className: (0, _classnames.default)('ffe-image-card', className)
|
|
29
|
-
}, rest), /*#__PURE__*/_react.default.createElement("div", {
|
|
30
|
-
className: "ffe-image-card__image-container"
|
|
31
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
32
|
-
className: "ffe-image-card__image-overlay"
|
|
33
|
-
}), /*#__PURE__*/_react.default.createElement("img", {
|
|
34
|
-
src: imageSrc,
|
|
35
|
-
alt: imageAltText,
|
|
36
|
-
className: "ffe-image-card__image"
|
|
37
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
38
|
-
className: "ffe-image-card__body"
|
|
39
|
-
}, typeof children === 'function' ? children(components) : children));
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
40
12
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
51
23
|
};
|
|
52
|
-
var
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.ImageCard = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var fixedForwardRef_1 = require("../fixedForwardRef");
|
|
31
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
32
|
+
var components_1 = require("../components");
|
|
33
|
+
function ImageCardWithForwardRef(props, ref) {
|
|
34
|
+
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"]);
|
|
35
|
+
return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-image-card', className) }, rest, { ref: ref }),
|
|
36
|
+
react_1.default.createElement("div", { className: "ffe-image-card__image-container" },
|
|
37
|
+
react_1.default.createElement("div", { className: "ffe-image-card__image-overlay" }),
|
|
38
|
+
react_1.default.createElement("img", { src: imageSrc, alt: imageAltText, className: "ffe-image-card__image" })),
|
|
39
|
+
react_1.default.createElement("div", { className: "ffe-image-card__body" }, typeof children === 'function'
|
|
40
|
+
? children({ Text: components_1.Text, Subtext: components_1.Subtext, Title: components_1.Title, CardName: components_1.CardName })
|
|
41
|
+
: children)));
|
|
42
|
+
}
|
|
43
|
+
exports.ImageCard = (0, fixedForwardRef_1.fixedForwardRef)(ImageCardWithForwardRef);
|
|
@@ -1,54 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
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); }
|
|
14
|
-
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; }
|
|
15
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
16
|
-
var StippledCard = function StippledCard(_ref) {
|
|
17
|
-
var className = _ref.className,
|
|
18
|
-
_ref$element = _ref.element,
|
|
19
|
-
Element = _ref$element === void 0 ? 'a' : _ref$element,
|
|
20
|
-
children = _ref.children,
|
|
21
|
-
img = _ref.img,
|
|
22
|
-
condensed = _ref.condensed,
|
|
23
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
-
return /*#__PURE__*/_react.default.createElement(Element, _extends({
|
|
25
|
-
className: (0, _classnames.default)('ffe-stippled-card', {
|
|
26
|
-
'ffe-stippled-card--condensed': condensed
|
|
27
|
-
}, className)
|
|
28
|
-
}, rest), /*#__PURE__*/_react.default.createElement("div", {
|
|
29
|
-
className: (0, _classnames.default)('ffe-stippled-card__img', {
|
|
30
|
-
'ffe-stippled-card__img--icon': (img === null || img === void 0 ? void 0 : img.type) === 'icon'
|
|
31
|
-
}),
|
|
32
|
-
"aria-hidden": (img === null || img === void 0 ? void 0 : img.type) === 'icon'
|
|
33
|
-
}, img === null || img === void 0 ? void 0 : img.element), /*#__PURE__*/_react.default.createElement("div", null, typeof children === 'function' ? children({
|
|
34
|
-
CardName: _components.CardName,
|
|
35
|
-
Title: _components.Title,
|
|
36
|
-
Text: _components.Text,
|
|
37
|
-
Subtext: _components.Subtext
|
|
38
|
-
}) : children));
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
39
12
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}),
|
|
51
|
-
/** Smaller icon and less space */
|
|
52
|
-
condensed: _propTypes.bool
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
53
23
|
};
|
|
54
|
-
var
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.StippledCard = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var fixedForwardRef_1 = require("../fixedForwardRef");
|
|
31
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
32
|
+
var components_1 = require("../components");
|
|
33
|
+
function StippledCardWithForwardRef(props, ref) {
|
|
34
|
+
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"]);
|
|
35
|
+
return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-stippled-card', { 'ffe-stippled-card--condensed': condensed }, className) }, rest, { ref: ref }),
|
|
36
|
+
react_1.default.createElement("div", { className: (0, classnames_1.default)('ffe-stippled-card__img', {
|
|
37
|
+
'ffe-stippled-card__img--icon': (img === null || img === void 0 ? void 0 : img.type) === 'icon',
|
|
38
|
+
}), "aria-hidden": (img === null || img === void 0 ? void 0 : img.type) === 'icon' }, img === null || img === void 0 ? void 0 : img.element),
|
|
39
|
+
react_1.default.createElement("div", null, typeof children === 'function'
|
|
40
|
+
? children({ CardName: components_1.CardName, Title: components_1.Title, Text: components_1.Text, Subtext: components_1.Subtext })
|
|
41
|
+
: children)));
|
|
42
|
+
}
|
|
43
|
+
exports.StippledCard = (0, fixedForwardRef_1.fixedForwardRef)(StippledCardWithForwardRef);
|
package/lib/TextCard/TextCard.js
CHANGED
|
@@ -1,44 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _excluded = ["className", "leftAlign", "element", "children"];
|
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
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); }
|
|
17
|
-
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; }
|
|
18
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
19
|
-
var TextCard = function TextCard(props) {
|
|
20
|
-
var className = props.className,
|
|
21
|
-
leftAlign = props.leftAlign,
|
|
22
|
-
_props$element = props.element,
|
|
23
|
-
Element = _props$element === void 0 ? 'a' : _props$element,
|
|
24
|
-
children = props.children,
|
|
25
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
26
|
-
return /*#__PURE__*/_react.default.createElement(Element, _extends({
|
|
27
|
-
className: (0, _classnames.default)('ffe-text-card', {
|
|
28
|
-
'ffe-text-card--left-align': leftAlign
|
|
29
|
-
}, className)
|
|
30
|
-
}, rest), typeof children === 'function' ? children(components) : children);
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
31
12
|
};
|
|
32
|
-
|
|
33
|
-
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
34
23
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/** Left-aligned text on the card */
|
|
38
|
-
leftAlign: _propTypes.bool,
|
|
39
|
-
/** The element to render the card as */
|
|
40
|
-
element: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.string, _propTypes.elementType]),
|
|
41
|
-
/** Function that's passed available sub-components as arguments, or regular children */
|
|
42
|
-
children: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.node])
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
43
26
|
};
|
|
44
|
-
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.TextCard = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var fixedForwardRef_1 = require("../fixedForwardRef");
|
|
31
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
32
|
+
var components_1 = require("../components");
|
|
33
|
+
function TextCardWithForwardRef(props, ref) {
|
|
34
|
+
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"]);
|
|
35
|
+
return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-text-card', { 'ffe-text-card--left-align': leftAlign }, className) }, rest, { ref: ref }), typeof children === 'function'
|
|
36
|
+
? children({ Text: components_1.Text, Subtext: components_1.Subtext, Title: components_1.Title, CardName: components_1.CardName })
|
|
37
|
+
: children));
|
|
38
|
+
}
|
|
39
|
+
exports.TextCard = (0, fixedForwardRef_1.fixedForwardRef)(TextCardWithForwardRef);
|
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
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); }
|
|
14
|
-
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; }
|
|
15
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
16
|
-
var CardName = function CardName(_ref) {
|
|
17
|
-
var className = _ref.className,
|
|
18
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentBase.default, _extends({
|
|
20
|
-
className: (0, _classnames.default)('ffe-card-body__card-name', className)
|
|
21
|
-
}, rest));
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
22
12
|
};
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
25
23
|
};
|
|
26
|
-
var
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.CardName = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
31
|
+
var ComponentBase_1 = require("./ComponentBase");
|
|
32
|
+
function CardName(props) {
|
|
33
|
+
var className = props.className, rest = __rest(props, ["className"]);
|
|
34
|
+
return (react_1.default.createElement(ComponentBase_1.ComponentBase, __assign({ className: (0, classnames_1.default)('ffe-card-body__card-name', className) }, rest)));
|
|
35
|
+
}
|
|
36
|
+
exports.CardName = CardName;
|