allaw-ui 4.8.1 → 4.8.2
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/dist/components/molecules/documentCard/DocumentCard.d.ts +1 -1
- package/dist/components/molecules/documentCard/DocumentCard.js +3 -0
- package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +1 -0
- package/dist/components/molecules/documentCard/DocumentCard.stories.js +8 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export interface DocumentCardProps {
|
|
|
4
4
|
type: "document" | "note" | "invoice" | "waiting" | "payment" | undefined;
|
|
5
5
|
title: string;
|
|
6
6
|
date: Date | undefined;
|
|
7
|
-
status: "sent" | "received" | "refunded" | "partialyRefunded" | "internal" | "notRequired" | "waiting" | "expired" | "canceled" | "failed" | "processing" | "maxAttemptsReached";
|
|
7
|
+
status: "sent" | "received" | "refunded" | "partialyRefunded" | "internal" | "notRequired" | "waiting" | "expired" | "canceled" | "failed" | "processing" | "maxAttemptsReached" | "clea";
|
|
8
8
|
documents?: {
|
|
9
9
|
[key: string]: boolean;
|
|
10
10
|
};
|
|
@@ -46,6 +46,8 @@ var DocumentCard = function (_a) {
|
|
|
46
46
|
return "EN COURS";
|
|
47
47
|
case "maxAttemptsReached":
|
|
48
48
|
return "ÉCHOUÉ";
|
|
49
|
+
case "clea":
|
|
50
|
+
return "REÇU DE CLÉA";
|
|
49
51
|
default:
|
|
50
52
|
return "INTERNE";
|
|
51
53
|
}
|
|
@@ -81,6 +83,7 @@ var DocumentCard = function (_a) {
|
|
|
81
83
|
case "sent":
|
|
82
84
|
case "notRequired":
|
|
83
85
|
case "waiting":
|
|
86
|
+
case "clea":
|
|
84
87
|
return "blue";
|
|
85
88
|
case "processing":
|
|
86
89
|
return "orange";
|
|
@@ -64,6 +64,7 @@ export const Default: any;
|
|
|
64
64
|
export const Note: any;
|
|
65
65
|
export const Invoice: any;
|
|
66
66
|
export const Waiting: any;
|
|
67
|
+
export const Clea: any;
|
|
67
68
|
import DocumentCard from "./DocumentCard";
|
|
68
69
|
declare const defaultDocuments: {
|
|
69
70
|
"Carte d'identit\u00E9 des \u00E9poux": boolean;
|
|
@@ -43,6 +43,7 @@ export default {
|
|
|
43
43
|
"failed",
|
|
44
44
|
"processing",
|
|
45
45
|
"maxAttemptsReached",
|
|
46
|
+
"clea",
|
|
46
47
|
],
|
|
47
48
|
},
|
|
48
49
|
},
|
|
@@ -98,3 +99,10 @@ Waiting.args = {
|
|
|
98
99
|
date: new Date("2023-08-30"),
|
|
99
100
|
status: "received",
|
|
100
101
|
};
|
|
102
|
+
export var Clea = Template.bind({});
|
|
103
|
+
Clea.args = {
|
|
104
|
+
type: "document",
|
|
105
|
+
title: "Document reçu de Cléa",
|
|
106
|
+
date: new Date("2023-09-15"),
|
|
107
|
+
status: "clea",
|
|
108
|
+
};
|