@sb1/ffe-cards-react 6.0.0 → 7.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/package.json +2 -2
- package/types/index.d.ts +18 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-cards-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "React implementation of ffe-react",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "def742a0783d63c9b6c6b3f266564f81abfb0544"
|
|
44
44
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -13,16 +13,6 @@ export interface CardBaseProps extends ComponentBaseProps {
|
|
|
13
13
|
to?: string;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export interface IconCardProps extends CardBaseProps {
|
|
17
|
-
icon: React.ReactNode;
|
|
18
|
-
condensed?: boolean;
|
|
19
|
-
greyCharcoal?: boolean;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ImageCardProps extends CardBaseProps {
|
|
23
|
-
image: React.ReactNode;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
16
|
export interface TitleProps extends ComponentBaseProps {
|
|
27
17
|
overflowEllipsis?: boolean;
|
|
28
18
|
}
|
|
@@ -33,15 +23,28 @@ export interface TextProps extends ComponentBaseProps {}
|
|
|
33
23
|
|
|
34
24
|
export interface CardNameProps extends ComponentBaseProps {}
|
|
35
25
|
|
|
36
|
-
export interface
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
26
|
+
export interface CardRenderProps {
|
|
27
|
+
CardName: React.FC<CardNameProps>;
|
|
28
|
+
Title: React.FC<TitleProps>;
|
|
29
|
+
Subtext: React.FC<SubtextProps>;
|
|
30
|
+
Text: React.FC<TextProps>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface ImageCardProps extends CardBaseProps {
|
|
34
|
+
image: React.ReactNode;
|
|
35
|
+
children?: React.ReactNode | ((props: CardRenderProps) => React.ReactNode);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface IconCardProps extends CardBaseProps {
|
|
39
|
+
icon: React.ReactNode;
|
|
40
|
+
condensed?: boolean;
|
|
41
|
+
greyCharcoal?: boolean;
|
|
42
|
+
children?: React.ReactNode | ((props: CardRenderProps) => React.ReactNode);
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
export interface TextCardProps extends CardBaseProps {
|
|
43
46
|
leftAlign?: boolean;
|
|
44
|
-
children: React.ReactNode |
|
|
47
|
+
children: React.ReactNode | ((props: CardRenderProps) => React.ReactNode);
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
declare class CardBase extends React.Component<CardBaseProps, any> {}
|