@sb1/ffe-cards-react 19.1.8 → 19.2.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 +2 -1
- package/es/GroupCard/GroupCard.js +2 -1
- package/es/IconCard/IconCard.js +2 -2
- package/es/IllustrationCard/IllustrationCard.js +2 -2
- package/es/ImageCard/ImageCard.js +5 -2
- package/es/TextCard/TextCard.js +6 -2
- package/lib/CardBase.js +2 -1
- package/lib/GroupCard/GroupCard.js +2 -1
- package/lib/IconCard/IconCard.js +2 -2
- package/lib/IllustrationCard/IllustrationCard.js +2 -2
- package/lib/ImageCard/ImageCard.js +5 -2
- package/lib/TextCard/TextCard.js +6 -2
- package/package.json +4 -5
- package/types/CardBase.d.ts +4 -0
- package/types/GroupCard/GroupCard.d.ts +4 -0
- package/types/IconCard/IconCard.d.ts +4 -0
- package/types/IllustrationCard/IllustrationCard.d.ts +4 -0
- package/types/ImageCard/ImageCard.d.ts +4 -0
- package/types/TextCard/TextCard.d.ts +4 -0
package/es/CardBase.js
CHANGED
|
@@ -26,12 +26,13 @@ import { WithCardAction } from './components';
|
|
|
26
26
|
import { fixedForwardRef } from './fixedForwardRef';
|
|
27
27
|
function CardBaseWithForwardRef(props, ref) {
|
|
28
28
|
var _a;
|
|
29
|
-
var className = props.className, noMargin = props.noMargin, textCenter = props.textCenter, _b = props.bgColor, bgColor = _b === void 0 ? 'primary' : _b, noPadding = props.noPadding, children = props.children, rest = __rest(props, ["className", "noMargin", "textCenter", "bgColor", "noPadding", "children"]);
|
|
29
|
+
var className = props.className, noMargin = props.noMargin, textCenter = props.textCenter, _b = props.bgColor, bgColor = _b === void 0 ? 'primary' : _b, noPadding = props.noPadding, _c = props.appearance, appearance = _c === void 0 ? 'default' : _c, children = props.children, rest = __rest(props, ["className", "noMargin", "textCenter", "bgColor", "noPadding", "appearance", "children"]);
|
|
30
30
|
return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-card-base", className: classNames('ffe-card-base', className, (_a = {},
|
|
31
31
|
_a["ffe-card-base--bg-".concat(bgColor)] = bgColor,
|
|
32
32
|
_a['ffe-card-base--no-margin'] = noMargin,
|
|
33
33
|
_a['ffe-card-base--text-center'] = textCenter,
|
|
34
34
|
_a['ffe-card-base--no-padding'] = noPadding,
|
|
35
|
+
_a['ffe-default-mode'] = appearance === 'default',
|
|
35
36
|
_a)) }, rest, { ref: ref }), function (_a) {
|
|
36
37
|
var CardAction = _a.CardAction;
|
|
37
38
|
return typeof children === 'function'
|
|
@@ -25,11 +25,12 @@ import React from 'react';
|
|
|
25
25
|
import { fixedForwardRef } from '../fixedForwardRef';
|
|
26
26
|
function GroupCardWithForwardRef(props, ref) {
|
|
27
27
|
var _a;
|
|
28
|
-
var className = props.className, children = props.children, _b = props.bgColor, bgColor = _b === void 0 ? 'primary' : _b, noMargin = props.noMargin, _c = props.as, Comp =
|
|
28
|
+
var className = props.className, children = props.children, _b = props.bgColor, bgColor = _b === void 0 ? 'primary' : _b, noMargin = props.noMargin, _c = props.appearance, appearance = _c === void 0 ? 'default' : _c, _d = props.as, Comp = _d === void 0 ? 'div' : _d, rest = __rest(props, ["className", "children", "bgColor", "noMargin", "appearance", "as"]);
|
|
29
29
|
return (React.createElement(Comp, __assign({ className: classNames('ffe-group-card', (_a = {
|
|
30
30
|
'ffe-group-card--no-margin': noMargin
|
|
31
31
|
},
|
|
32
32
|
_a["ffe-group-card--bg-".concat(bgColor)] = bgColor,
|
|
33
|
+
_a['ffe-default-mode'] = appearance === 'default',
|
|
33
34
|
_a), className), role: Comp === 'div' ? 'group' : undefined }, rest, { ref: ref }), children));
|
|
34
35
|
}
|
|
35
36
|
export var GroupCard = fixedForwardRef(GroupCardWithForwardRef);
|
package/es/IconCard/IconCard.js
CHANGED
|
@@ -25,8 +25,8 @@ import React from 'react';
|
|
|
25
25
|
import { CardName, Subtext, Text, Title, WithCardAction } from '../components';
|
|
26
26
|
import { fixedForwardRef } from '../fixedForwardRef';
|
|
27
27
|
function IconCardWithForwardRef(props, ref) {
|
|
28
|
-
var className = props.className, condensed = props.condensed, icon = props.icon, rightIcon = props.rightIcon, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "condensed", "icon", "rightIcon", "noMargin", "children"]);
|
|
29
|
-
return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-icon-card", className: classNames('ffe-icon-card', { 'ffe-icon-card--condensed': condensed }, { 'ffe-icon-card--no-margin': noMargin }, className) }, rest, { ref: ref }), function (_a) {
|
|
28
|
+
var className = props.className, condensed = props.condensed, icon = props.icon, rightIcon = props.rightIcon, noMargin = props.noMargin, _a = props.appearance, appearance = _a === void 0 ? 'default' : _a, children = props.children, rest = __rest(props, ["className", "condensed", "icon", "rightIcon", "noMargin", "appearance", "children"]);
|
|
29
|
+
return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-icon-card", className: classNames('ffe-icon-card', { 'ffe-icon-card--condensed': condensed }, { 'ffe-icon-card--no-margin': noMargin }, { 'ffe-default-mode': appearance === 'default' }, className) }, rest, { ref: ref }), function (_a) {
|
|
30
30
|
var CardAction = _a.CardAction;
|
|
31
31
|
var bodyElement = (React.createElement("div", { className: "ffe-icon-card__body" }, typeof children === 'function'
|
|
32
32
|
? children({
|
|
@@ -25,10 +25,10 @@ import classNames from 'classnames';
|
|
|
25
25
|
import { WithCardAction, Text, Subtext, Title, CardName } from '../components';
|
|
26
26
|
import { fixedForwardRef } from '../fixedForwardRef';
|
|
27
27
|
function IllustrationCardWithForwardRef(props, ref) {
|
|
28
|
-
var className = props.className, condensed = props.condensed, img = props.img, illustrationPosition = props.illustrationPosition, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "condensed", "img", "illustrationPosition", "noMargin", "children"]);
|
|
28
|
+
var className = props.className, condensed = props.condensed, img = props.img, illustrationPosition = props.illustrationPosition, noMargin = props.noMargin, _a = props.appearance, appearance = _a === void 0 ? 'default' : _a, children = props.children, rest = __rest(props, ["className", "condensed", "img", "illustrationPosition", "noMargin", "appearance", "children"]);
|
|
29
29
|
return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-illustration-card", className: classNames('ffe-illustration-card', { 'ffe-illustration-card--condensed': condensed }, { 'ffe-illustration-card--no-margin': noMargin }, {
|
|
30
30
|
'ffe-illustration-card--right': illustrationPosition === 'right',
|
|
31
|
-
}, className) }, rest, { ref: ref }), function (_a) {
|
|
31
|
+
}, { ' ffe-default-mode': appearance === 'default' }, className) }, rest, { ref: ref }), function (_a) {
|
|
32
32
|
var CardAction = _a.CardAction;
|
|
33
33
|
var illustrationElement = (React.createElement("div", { className: classNames('ffe-illustration-card__illustration') }, img));
|
|
34
34
|
var bodyElement = (React.createElement("div", { className: "ffe-illustration-card__body" }, typeof children === 'function'
|
|
@@ -25,8 +25,11 @@ import classNames from 'classnames';
|
|
|
25
25
|
import { CardName, Subtext, Text, Title, WithCardAction } from '../components';
|
|
26
26
|
import { fixedForwardRef } from '../fixedForwardRef';
|
|
27
27
|
function ImageCardWithForwardRef(props, ref) {
|
|
28
|
-
var className = props.className, imageSrc = props.imageSrc, imageAltText = props.imageAltText, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "imageSrc", "imageAltText", "noMargin", "children"]);
|
|
29
|
-
return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-image-card", className: classNames('ffe-image-card', {
|
|
28
|
+
var className = props.className, imageSrc = props.imageSrc, imageAltText = props.imageAltText, noMargin = props.noMargin, _a = props.appearance, appearance = _a === void 0 ? 'default' : _a, children = props.children, rest = __rest(props, ["className", "imageSrc", "imageAltText", "noMargin", "appearance", "children"]);
|
|
29
|
+
return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-image-card", className: classNames('ffe-image-card', {
|
|
30
|
+
'ffe-image-card--no-margin': noMargin,
|
|
31
|
+
'ffe-default-mode': appearance === 'default',
|
|
32
|
+
}, className) }, rest, { ref: ref }), function (_a) {
|
|
30
33
|
var CardAction = _a.CardAction;
|
|
31
34
|
return (React.createElement(React.Fragment, null,
|
|
32
35
|
React.createElement("div", { className: "ffe-image-card__image-container" },
|
package/es/TextCard/TextCard.js
CHANGED
|
@@ -25,8 +25,12 @@ import classNames from 'classnames';
|
|
|
25
25
|
import { CardName, Subtext, Text, Title, WithCardAction } from '../components';
|
|
26
26
|
import { fixedForwardRef } from '../fixedForwardRef';
|
|
27
27
|
function TextCardWithForwardRef(props, ref) {
|
|
28
|
-
var className = props.className, leftAlign = props.leftAlign, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "leftAlign", "noMargin", "children"]);
|
|
29
|
-
return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-text-card", className: classNames('ffe-text-card', {
|
|
28
|
+
var className = props.className, leftAlign = props.leftAlign, noMargin = props.noMargin, _a = props.appearance, appearance = _a === void 0 ? 'default' : _a, children = props.children, rest = __rest(props, ["className", "leftAlign", "noMargin", "appearance", "children"]);
|
|
29
|
+
return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-text-card", className: classNames('ffe-text-card', {
|
|
30
|
+
'ffe-text-card--left-align': leftAlign,
|
|
31
|
+
'ffe-text-card--no-margin': noMargin,
|
|
32
|
+
'ffe-default-mode': appearance === 'default',
|
|
33
|
+
}, className) }, rest, { ref: ref }), function (_a) {
|
|
30
34
|
var CardAction = _a.CardAction;
|
|
31
35
|
return typeof children === 'function'
|
|
32
36
|
? children({ Text: Text, Subtext: Subtext, Title: Title, CardName: CardName, CardAction: CardAction })
|
package/lib/CardBase.js
CHANGED
|
@@ -32,12 +32,13 @@ var components_1 = require("./components");
|
|
|
32
32
|
var fixedForwardRef_1 = require("./fixedForwardRef");
|
|
33
33
|
function CardBaseWithForwardRef(props, ref) {
|
|
34
34
|
var _a;
|
|
35
|
-
var className = props.className, noMargin = props.noMargin, textCenter = props.textCenter, _b = props.bgColor, bgColor = _b === void 0 ? 'primary' : _b, noPadding = props.noPadding, children = props.children, rest = __rest(props, ["className", "noMargin", "textCenter", "bgColor", "noPadding", "children"]);
|
|
35
|
+
var className = props.className, noMargin = props.noMargin, textCenter = props.textCenter, _b = props.bgColor, bgColor = _b === void 0 ? 'primary' : _b, noPadding = props.noPadding, _c = props.appearance, appearance = _c === void 0 ? 'default' : _c, children = props.children, rest = __rest(props, ["className", "noMargin", "textCenter", "bgColor", "noPadding", "appearance", "children"]);
|
|
36
36
|
return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-card-base", className: (0, classnames_1.default)('ffe-card-base', className, (_a = {},
|
|
37
37
|
_a["ffe-card-base--bg-".concat(bgColor)] = bgColor,
|
|
38
38
|
_a['ffe-card-base--no-margin'] = noMargin,
|
|
39
39
|
_a['ffe-card-base--text-center'] = textCenter,
|
|
40
40
|
_a['ffe-card-base--no-padding'] = noPadding,
|
|
41
|
+
_a['ffe-default-mode'] = appearance === 'default',
|
|
41
42
|
_a)) }, rest, { ref: ref }), function (_a) {
|
|
42
43
|
var CardAction = _a.CardAction;
|
|
43
44
|
return typeof children === 'function'
|
|
@@ -31,11 +31,12 @@ var react_1 = __importDefault(require("react"));
|
|
|
31
31
|
var fixedForwardRef_1 = require("../fixedForwardRef");
|
|
32
32
|
function GroupCardWithForwardRef(props, ref) {
|
|
33
33
|
var _a;
|
|
34
|
-
var className = props.className, children = props.children, _b = props.bgColor, bgColor = _b === void 0 ? 'primary' : _b, noMargin = props.noMargin, _c = props.as, Comp =
|
|
34
|
+
var className = props.className, children = props.children, _b = props.bgColor, bgColor = _b === void 0 ? 'primary' : _b, noMargin = props.noMargin, _c = props.appearance, appearance = _c === void 0 ? 'default' : _c, _d = props.as, Comp = _d === void 0 ? 'div' : _d, rest = __rest(props, ["className", "children", "bgColor", "noMargin", "appearance", "as"]);
|
|
35
35
|
return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-group-card', (_a = {
|
|
36
36
|
'ffe-group-card--no-margin': noMargin
|
|
37
37
|
},
|
|
38
38
|
_a["ffe-group-card--bg-".concat(bgColor)] = bgColor,
|
|
39
|
+
_a['ffe-default-mode'] = appearance === 'default',
|
|
39
40
|
_a), className), role: Comp === 'div' ? 'group' : undefined }, rest, { ref: ref }), children));
|
|
40
41
|
}
|
|
41
42
|
exports.GroupCard = (0, fixedForwardRef_1.fixedForwardRef)(GroupCardWithForwardRef);
|
package/lib/IconCard/IconCard.js
CHANGED
|
@@ -31,8 +31,8 @@ var react_1 = __importDefault(require("react"));
|
|
|
31
31
|
var components_1 = require("../components");
|
|
32
32
|
var fixedForwardRef_1 = require("../fixedForwardRef");
|
|
33
33
|
function IconCardWithForwardRef(props, ref) {
|
|
34
|
-
var className = props.className, condensed = props.condensed, icon = props.icon, rightIcon = props.rightIcon, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "condensed", "icon", "rightIcon", "noMargin", "children"]);
|
|
35
|
-
return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-icon-card", className: (0, classnames_1.default)('ffe-icon-card', { 'ffe-icon-card--condensed': condensed }, { 'ffe-icon-card--no-margin': noMargin }, className) }, rest, { ref: ref }), function (_a) {
|
|
34
|
+
var className = props.className, condensed = props.condensed, icon = props.icon, rightIcon = props.rightIcon, noMargin = props.noMargin, _a = props.appearance, appearance = _a === void 0 ? 'default' : _a, children = props.children, rest = __rest(props, ["className", "condensed", "icon", "rightIcon", "noMargin", "appearance", "children"]);
|
|
35
|
+
return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-icon-card", className: (0, classnames_1.default)('ffe-icon-card', { 'ffe-icon-card--condensed': condensed }, { 'ffe-icon-card--no-margin': noMargin }, { 'ffe-default-mode': appearance === 'default' }, className) }, rest, { ref: ref }), function (_a) {
|
|
36
36
|
var CardAction = _a.CardAction;
|
|
37
37
|
var bodyElement = (react_1.default.createElement("div", { className: "ffe-icon-card__body" }, typeof children === 'function'
|
|
38
38
|
? children({
|
|
@@ -31,10 +31,10 @@ var classnames_1 = __importDefault(require("classnames"));
|
|
|
31
31
|
var components_1 = require("../components");
|
|
32
32
|
var fixedForwardRef_1 = require("../fixedForwardRef");
|
|
33
33
|
function IllustrationCardWithForwardRef(props, ref) {
|
|
34
|
-
var className = props.className, condensed = props.condensed, img = props.img, illustrationPosition = props.illustrationPosition, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "condensed", "img", "illustrationPosition", "noMargin", "children"]);
|
|
34
|
+
var className = props.className, condensed = props.condensed, img = props.img, illustrationPosition = props.illustrationPosition, noMargin = props.noMargin, _a = props.appearance, appearance = _a === void 0 ? 'default' : _a, children = props.children, rest = __rest(props, ["className", "condensed", "img", "illustrationPosition", "noMargin", "appearance", "children"]);
|
|
35
35
|
return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-illustration-card", className: (0, classnames_1.default)('ffe-illustration-card', { 'ffe-illustration-card--condensed': condensed }, { 'ffe-illustration-card--no-margin': noMargin }, {
|
|
36
36
|
'ffe-illustration-card--right': illustrationPosition === 'right',
|
|
37
|
-
}, className) }, rest, { ref: ref }), function (_a) {
|
|
37
|
+
}, { ' ffe-default-mode': appearance === 'default' }, className) }, rest, { ref: ref }), function (_a) {
|
|
38
38
|
var CardAction = _a.CardAction;
|
|
39
39
|
var illustrationElement = (react_1.default.createElement("div", { className: (0, classnames_1.default)('ffe-illustration-card__illustration') }, img));
|
|
40
40
|
var bodyElement = (react_1.default.createElement("div", { className: "ffe-illustration-card__body" }, typeof children === 'function'
|
|
@@ -31,8 +31,11 @@ var classnames_1 = __importDefault(require("classnames"));
|
|
|
31
31
|
var components_1 = require("../components");
|
|
32
32
|
var fixedForwardRef_1 = require("../fixedForwardRef");
|
|
33
33
|
function ImageCardWithForwardRef(props, ref) {
|
|
34
|
-
var className = props.className, imageSrc = props.imageSrc, imageAltText = props.imageAltText, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "imageSrc", "imageAltText", "noMargin", "children"]);
|
|
35
|
-
return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-image-card", className: (0, classnames_1.default)('ffe-image-card', {
|
|
34
|
+
var className = props.className, imageSrc = props.imageSrc, imageAltText = props.imageAltText, noMargin = props.noMargin, _a = props.appearance, appearance = _a === void 0 ? 'default' : _a, children = props.children, rest = __rest(props, ["className", "imageSrc", "imageAltText", "noMargin", "appearance", "children"]);
|
|
35
|
+
return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-image-card", className: (0, classnames_1.default)('ffe-image-card', {
|
|
36
|
+
'ffe-image-card--no-margin': noMargin,
|
|
37
|
+
'ffe-default-mode': appearance === 'default',
|
|
38
|
+
}, className) }, rest, { ref: ref }), function (_a) {
|
|
36
39
|
var CardAction = _a.CardAction;
|
|
37
40
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
38
41
|
react_1.default.createElement("div", { className: "ffe-image-card__image-container" },
|
package/lib/TextCard/TextCard.js
CHANGED
|
@@ -31,8 +31,12 @@ var classnames_1 = __importDefault(require("classnames"));
|
|
|
31
31
|
var components_1 = require("../components");
|
|
32
32
|
var fixedForwardRef_1 = require("../fixedForwardRef");
|
|
33
33
|
function TextCardWithForwardRef(props, ref) {
|
|
34
|
-
var className = props.className, leftAlign = props.leftAlign, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "leftAlign", "noMargin", "children"]);
|
|
35
|
-
return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-text-card", className: (0, classnames_1.default)('ffe-text-card', {
|
|
34
|
+
var className = props.className, leftAlign = props.leftAlign, noMargin = props.noMargin, _a = props.appearance, appearance = _a === void 0 ? 'default' : _a, children = props.children, rest = __rest(props, ["className", "leftAlign", "noMargin", "appearance", "children"]);
|
|
35
|
+
return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-text-card", className: (0, classnames_1.default)('ffe-text-card', {
|
|
36
|
+
'ffe-text-card--left-align': leftAlign,
|
|
37
|
+
'ffe-text-card--no-margin': noMargin,
|
|
38
|
+
'ffe-default-mode': appearance === 'default',
|
|
39
|
+
}, className) }, rest, { ref: ref }), function (_a) {
|
|
36
40
|
var CardAction = _a.CardAction;
|
|
37
41
|
return typeof children === 'function'
|
|
38
42
|
? children({ Text: components_1.Text, Subtext: components_1.Subtext, Title: components_1.Title, CardName: components_1.CardName, CardAction: CardAction })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-cards-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.2.0",
|
|
4
4
|
"description": "React implementation of ffe-react",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"test:watch": "ffe-buildtool jest --watch"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@sb1/ffe-cards": "^23.
|
|
29
|
+
"@sb1/ffe-cards": "^23.1.0",
|
|
30
30
|
"classnames": "^2.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@sb1/ffe-buildtool": "^0.10.0",
|
|
34
|
-
"@sb1/ffe-icons-react": "^12.0.
|
|
34
|
+
"@sb1/ffe-icons-react": "^12.0.1",
|
|
35
35
|
"react": "^18.2.0",
|
|
36
36
|
"react-dom": "^18.2.0"
|
|
37
37
|
},
|
|
@@ -41,6 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"
|
|
45
|
-
"gitHead": "63920179c154928be7b054d8f9ce3899cc0f9180"
|
|
44
|
+
"gitHead": "fe9b0022719dca5a50cc6b135f554819f5708075"
|
|
46
45
|
}
|
package/types/CardBase.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export type CardBaseProps<As extends ElementType = 'div'> = Omit<ComponentAsProp
|
|
|
17
17
|
* [Read more in the upgrade guide](https://sparebank1.github.io/designsystem/?path=/docs/introduksjon-changelog--docs#2025---februar---semantiske-farger) */
|
|
18
18
|
bgDarkmodeColor?: never;
|
|
19
19
|
noPadding?: boolean;
|
|
20
|
+
/** Avgjør utseende i kontekst accent. Hvis man ønsker et blått utseende i kontekst accent, velg appearance: 'accent' */
|
|
21
|
+
appearance?: 'default' | 'accent';
|
|
20
22
|
children: WithCardActionProps['children'] | React.ReactNode;
|
|
21
23
|
};
|
|
22
24
|
export declare const CardBase: <As extends ElementType>(props: Omit<ComponentAsPropParams<As>, "children"> & {
|
|
@@ -35,5 +37,7 @@ export declare const CardBase: <As extends ElementType>(props: Omit<ComponentAsP
|
|
|
35
37
|
* [Read more in the upgrade guide](https://sparebank1.github.io/designsystem/?path=/docs/introduksjon-changelog--docs#2025---februar---semantiske-farger) */
|
|
36
38
|
bgDarkmodeColor?: never;
|
|
37
39
|
noPadding?: boolean;
|
|
40
|
+
/** Avgjør utseende i kontekst accent. Hvis man ønsker et blått utseende i kontekst accent, velg appearance: 'accent' */
|
|
41
|
+
appearance?: "default" | "accent";
|
|
38
42
|
children: WithCardActionProps["children"] | React.ReactNode;
|
|
39
43
|
} & React.RefAttributes<any>) => React.JSX.Element;
|
|
@@ -18,6 +18,8 @@ export type GroupCardProps<As extends ElementType = 'div'> = Omit<ComponentAsPro
|
|
|
18
18
|
bgDarkmodeColor?: never;
|
|
19
19
|
/** No margin on card */
|
|
20
20
|
noMargin?: boolean;
|
|
21
|
+
/** Avgjør utseende i kontekst accent. Hvis man ønsker et blått utseende i kontekst accent, velg appearance: 'accent' */
|
|
22
|
+
appearance?: 'default' | 'accent';
|
|
21
23
|
};
|
|
22
24
|
export declare const GroupCard: <As extends ElementType>(props: Omit<ComponentAsPropParams<As>, "children"> & {
|
|
23
25
|
/** The children of the GroupCard component */
|
|
@@ -37,4 +39,6 @@ export declare const GroupCard: <As extends ElementType>(props: Omit<ComponentAs
|
|
|
37
39
|
bgDarkmodeColor?: never;
|
|
38
40
|
/** No margin on card */
|
|
39
41
|
noMargin?: boolean;
|
|
42
|
+
/** Avgjør utseende i kontekst accent. Hvis man ønsker et blått utseende i kontekst accent, velg appearance: 'accent' */
|
|
43
|
+
appearance?: "default" | "accent";
|
|
40
44
|
} & React.RefAttributes<any>) => React.JSX.Element;
|
|
@@ -8,6 +8,8 @@ export type IconCardProps<As extends ElementType = 'div'> = Omit<ComponentAsProp
|
|
|
8
8
|
condensed?: boolean;
|
|
9
9
|
/** No margin on card */
|
|
10
10
|
noMargin?: boolean;
|
|
11
|
+
/** Avgjør utseende i kontekst accent. Hvis man ønsker et blått utseende i kontekst accent, velg appearance: 'accent' */
|
|
12
|
+
appearance?: 'default' | 'accent';
|
|
11
13
|
children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
|
|
12
14
|
};
|
|
13
15
|
export declare const IconCard: <As extends ElementType>(props: Omit<ComponentAsPropParams<As>, "children"> & {
|
|
@@ -18,5 +20,7 @@ export declare const IconCard: <As extends ElementType>(props: Omit<ComponentAsP
|
|
|
18
20
|
condensed?: boolean;
|
|
19
21
|
/** No margin on card */
|
|
20
22
|
noMargin?: boolean;
|
|
23
|
+
/** Avgjør utseende i kontekst accent. Hvis man ønsker et blått utseende i kontekst accent, velg appearance: 'accent' */
|
|
24
|
+
appearance?: "default" | "accent";
|
|
21
25
|
children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
|
|
22
26
|
} & React.RefAttributes<any>) => React.JSX.Element;
|
|
@@ -9,6 +9,8 @@ export type IllustrationCardProps<As extends ElementType = 'div'> = Omit<Compone
|
|
|
9
9
|
illustrationPosition?: 'right' | 'left';
|
|
10
10
|
/** No margin on card */
|
|
11
11
|
noMargin?: boolean;
|
|
12
|
+
/** Avgjør utseende i kontekst accent. Hvis man ønsker et blått utseende i kontekst accent, velg appearance: 'accent' */
|
|
13
|
+
appearance?: 'default' | 'accent';
|
|
12
14
|
children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
|
|
13
15
|
};
|
|
14
16
|
export declare const IllustrationCard: <As extends ElementType>(props: Omit<ComponentAsPropParams<As>, "children"> & {
|
|
@@ -20,5 +22,7 @@ export declare const IllustrationCard: <As extends ElementType>(props: Omit<Comp
|
|
|
20
22
|
illustrationPosition?: "right" | "left";
|
|
21
23
|
/** No margin on card */
|
|
22
24
|
noMargin?: boolean;
|
|
25
|
+
/** Avgjør utseende i kontekst accent. Hvis man ønsker et blått utseende i kontekst accent, velg appearance: 'accent' */
|
|
26
|
+
appearance?: "default" | "accent";
|
|
23
27
|
children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
|
|
24
28
|
} & React.RefAttributes<any>) => React.JSX.Element;
|
|
@@ -7,6 +7,8 @@ export type ImageCardProps<As extends ElementType = 'div'> = Omit<ComponentAsPro
|
|
|
7
7
|
imageAltText: string;
|
|
8
8
|
/** No margin on card */
|
|
9
9
|
noMargin?: boolean;
|
|
10
|
+
/** Avgjør utseende i kontekst accent. Hvis man ønsker et blått utseende i kontekst accent, velg appearance: 'accent' */
|
|
11
|
+
appearance?: 'default' | 'accent';
|
|
10
12
|
children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
|
|
11
13
|
};
|
|
12
14
|
export declare const ImageCard: <As extends ElementType>(props: Omit<ComponentAsPropParams<As>, "children"> & {
|
|
@@ -16,5 +18,7 @@ export declare const ImageCard: <As extends ElementType>(props: Omit<ComponentAs
|
|
|
16
18
|
imageAltText: string;
|
|
17
19
|
/** No margin on card */
|
|
18
20
|
noMargin?: boolean;
|
|
21
|
+
/** Avgjør utseende i kontekst accent. Hvis man ønsker et blått utseende i kontekst accent, velg appearance: 'accent' */
|
|
22
|
+
appearance?: "default" | "accent";
|
|
19
23
|
children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
|
|
20
24
|
} & React.RefAttributes<any>) => React.JSX.Element;
|
|
@@ -5,6 +5,8 @@ export type TextCardProps<As extends ElementType = 'div'> = Omit<ComponentAsProp
|
|
|
5
5
|
leftAlign?: boolean;
|
|
6
6
|
/** No margin on card */
|
|
7
7
|
noMargin?: boolean;
|
|
8
|
+
/** Avgjør utseende i kontekst accent. Hvis man ønsker et blått utseende i kontekst accent, velg appearance: 'accent' */
|
|
9
|
+
appearance?: 'default' | 'accent';
|
|
8
10
|
/** Function that's passed available subcomponents as arguments, or regular children */
|
|
9
11
|
children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
|
|
10
12
|
};
|
|
@@ -13,6 +15,8 @@ export declare const TextCard: <As extends ElementType>(props: Omit<ComponentAsP
|
|
|
13
15
|
leftAlign?: boolean;
|
|
14
16
|
/** No margin on card */
|
|
15
17
|
noMargin?: boolean;
|
|
18
|
+
/** Avgjør utseende i kontekst accent. Hvis man ønsker et blått utseende i kontekst accent, velg appearance: 'accent' */
|
|
19
|
+
appearance?: "default" | "accent";
|
|
16
20
|
/** Function that's passed available subcomponents as arguments, or regular children */
|
|
17
21
|
children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
|
|
18
22
|
} & React.RefAttributes<any>) => React.JSX.Element;
|