@sb1/ffe-lists-react 12.0.28 → 13.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/DetailListCard.js +1 -2
- package/lib/DetailListCard.js +1 -2
- package/package.json +5 -5
- package/types/DetailListCard.d.ts +12 -2
package/es/DetailListCard.js
CHANGED
|
@@ -24,9 +24,8 @@ import React from 'react';
|
|
|
24
24
|
import classNames from 'classnames';
|
|
25
25
|
export var DetailListCard = function (_a) {
|
|
26
26
|
var _b;
|
|
27
|
-
var className = _a.className, bgColor = _a.bgColor,
|
|
27
|
+
var className = _a.className, bgColor = _a.bgColor, children = _a.children, rest = __rest(_a, ["className", "bgColor", "children"]);
|
|
28
28
|
return (React.createElement("dl", __assign({ className: classNames('ffe-detail-list-card', className, (_b = {},
|
|
29
29
|
_b["ffe-detail-list-card--bg-".concat(bgColor)] = bgColor,
|
|
30
|
-
_b["ffe-detail-list-card--dm-bg-".concat(bgDarkmodeColor)] = bgDarkmodeColor,
|
|
31
30
|
_b)) }, rest), children));
|
|
32
31
|
};
|
package/lib/DetailListCard.js
CHANGED
|
@@ -30,10 +30,9 @@ var react_1 = __importDefault(require("react"));
|
|
|
30
30
|
var classnames_1 = __importDefault(require("classnames"));
|
|
31
31
|
var DetailListCard = function (_a) {
|
|
32
32
|
var _b;
|
|
33
|
-
var className = _a.className, bgColor = _a.bgColor,
|
|
33
|
+
var className = _a.className, bgColor = _a.bgColor, children = _a.children, rest = __rest(_a, ["className", "bgColor", "children"]);
|
|
34
34
|
return (react_1.default.createElement("dl", __assign({ className: (0, classnames_1.default)('ffe-detail-list-card', className, (_b = {},
|
|
35
35
|
_b["ffe-detail-list-card--bg-".concat(bgColor)] = bgColor,
|
|
36
|
-
_b["ffe-detail-list-card--dm-bg-".concat(bgDarkmodeColor)] = bgDarkmodeColor,
|
|
37
36
|
_b)) }, rest), children));
|
|
38
37
|
};
|
|
39
38
|
exports.DetailListCard = DetailListCard;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-lists-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "React implementation of ffe-lists",
|
|
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-icons-react": "^11.0.
|
|
30
|
-
"@sb1/ffe-lists": "^
|
|
29
|
+
"@sb1/ffe-icons-react": "^11.0.19",
|
|
30
|
+
"@sb1/ffe-lists": "^18.0.0",
|
|
31
31
|
"classnames": "^2.3.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@sb1/ffe-buildtool": "^0.
|
|
34
|
+
"@sb1/ffe-buildtool": "^0.10.0",
|
|
35
35
|
"react": "^18.2.0",
|
|
36
36
|
"react-dom": "^18.2.0"
|
|
37
37
|
},
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "5a72f08b0873cc96b0d439dd029839db4d5d4ea9"
|
|
45
45
|
}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export type BackgroundColor = 'primary' | 'secondary' | 'tertiary';
|
|
2
3
|
export interface DetailListCardProps extends React.ComponentPropsWithoutRef<'dl'> {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Property has new values that work with dark and accent mode as part of the Semantic Color update
|
|
6
|
+
* Possible values: `primary` `secondary` `tertiary`
|
|
7
|
+
* [Read more in the upgrade guide](https://sparebank1.github.io/designsystem/?path=/docs/introduksjon-changelog--docs#2025---februar---semantiske-farger)
|
|
8
|
+
*/
|
|
9
|
+
bgColor?: BackgroundColor;
|
|
10
|
+
/** @deprecated as part of update to Semantic Colors
|
|
11
|
+
*
|
|
12
|
+
* Property is replaced by the updated values for `bgColor` that works on dark mode
|
|
13
|
+
* [Read more in the upgrade guide](https://sparebank1.github.io/designsystem/?path=/docs/introduksjon-changelog--docs#2025---februar---semantiske-farger) */
|
|
14
|
+
bgDarkmodeColor?: never;
|
|
5
15
|
}
|
|
6
16
|
export declare const DetailListCard: React.FC<DetailListCardProps>;
|