allaw-ui 1.0.62 → 1.0.64
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/caseCard/CaseCard.css +2 -2
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.css +66 -61
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.d.ts +1 -1
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.js +6 -6
- package/package.json +1 -1
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
transition: all 0.15s ease;
|
|
18
18
|
width: 100%;
|
|
19
|
-
border:
|
|
19
|
+
border: 2px solid var(--grey-venom, #e6edf5);
|
|
20
20
|
/* border: 1px solid var(-grey-venom, #e6edf5); */
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.case-card-wrapper:hover {
|
|
24
|
-
border-color: var(--bleu-allaw, #25beeb);
|
|
25
24
|
box-shadow: 0px 4px 12px rgba(15, 133, 168, 0.12);
|
|
26
25
|
transform: scale(1.01);
|
|
26
|
+
border: 2px solid var(--bleu-allaw, #25beeb);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.case-card-wrapper:active {
|
|
@@ -1,89 +1,94 @@
|
|
|
1
1
|
@import "../../../styles/colors.css";
|
|
2
2
|
|
|
3
3
|
.case-card-link {
|
|
4
|
-
|
|
4
|
+
display: flex;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
align-self: stretch;
|
|
8
|
+
border-radius: 16px;
|
|
9
|
+
background: var(--Primary-Light-grey, #f4f7fb);
|
|
10
|
+
display: flex;
|
|
11
|
+
padding: 16px;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 16px;
|
|
14
|
+
transition:
|
|
15
|
+
border-color 0.2s ease,
|
|
16
|
+
border-width 0.2s ease;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
.case-card-link-right {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
display: flex;
|
|
21
|
+
width: 100%;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
justify-content: flex-end;
|
|
24
|
+
align-items: flex-start;
|
|
25
|
+
flex: 1 0 0;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
.case-card-no-folder-wrapper {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
border-radius: 16px;
|
|
31
|
+
border: 1px solid var(--Primary-Gris-de-fond, #e6edf5);
|
|
32
|
+
background: #fff;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
width: 100%;
|
|
37
|
+
padding: 16px;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 56px;
|
|
40
|
+
height: 96px;
|
|
38
41
|
}
|
|
39
42
|
|
|
40
|
-
.case-card-no-folder-
|
|
41
|
-
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
gap: 8px;
|
|
44
|
-
|
|
43
|
+
.case-card-no-folder-wrapper:hover {
|
|
44
|
+
border: 1px solid var(--bleu-allaw, #25beeb);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
.case-card-no-folder-right {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
gap: 8px;
|
|
51
|
+
}
|
|
47
52
|
|
|
48
53
|
.case-card-link-folder-icon {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
border-radius: 8px;
|
|
55
|
+
background: rgba(255, 255, 255, 0.9);
|
|
56
|
+
display: flex;
|
|
57
|
+
padding: 12px 14px;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
align-items: center;
|
|
61
|
+
align-self: stretch;
|
|
57
62
|
}
|
|
58
63
|
|
|
59
64
|
.case-card-link-no-folder-icon {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
border-radius: 8px;
|
|
66
|
+
background: #f4f7fb;
|
|
67
|
+
display: flex;
|
|
68
|
+
padding: 12px 14px;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
align-items: center;
|
|
72
|
+
align-self: stretch;
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
.case-card-link-info-row {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
display: flex;
|
|
77
|
+
width: 100%;
|
|
78
|
+
flex-direction: row;
|
|
79
|
+
justify-content: space-between;
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
.case-card-link-info-row-bottom {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
display: flex;
|
|
84
|
+
width: 100%;
|
|
85
|
+
flex-direction: row;
|
|
86
|
+
justify-content: space-between;
|
|
87
|
+
align-items: end;
|
|
83
88
|
}
|
|
84
89
|
|
|
85
90
|
.case-card-link-info-col {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
justify-content: space-between;
|
|
94
|
+
}
|
|
@@ -9,5 +9,5 @@ export type CaseLinkCardProps = {
|
|
|
9
9
|
onCaseCardClick?: () => any;
|
|
10
10
|
onCaseLinkRequest?: () => any;
|
|
11
11
|
};
|
|
12
|
-
declare function CaseLinkCard({ proName, caseName, createdDate, onCaseCardClick, isLoading, canLinkCase, onCaseLinkRequest }: CaseLinkCardProps): React.JSX.Element;
|
|
12
|
+
declare function CaseLinkCard({ proName, caseName, createdDate, onCaseCardClick, isLoading, canLinkCase, onCaseLinkRequest, }: CaseLinkCardProps): React.JSX.Element;
|
|
13
13
|
export default CaseLinkCard;
|
|
@@ -14,7 +14,7 @@ function CaseLinkCard(_a) {
|
|
|
14
14
|
var formatProName = function (name) {
|
|
15
15
|
return "Ma\u00EEtre ".concat(name).toUpperCase();
|
|
16
16
|
};
|
|
17
|
-
return !isLoading ? React.createElement(React.Fragment, null, caseName || (!onCaseLinkRequest && !canLinkCase) ? React.createElement(React.Fragment, null,
|
|
17
|
+
return !isLoading ? (React.createElement(React.Fragment, null, caseName || (!onCaseLinkRequest && !canLinkCase) ? (React.createElement(React.Fragment, null,
|
|
18
18
|
React.createElement("div", { className: "case-card-link", onClick: function () { return onCaseCardClick && onCaseCardClick(); }, style: { cursor: onCaseCardClick ? "pointer" : "default" } },
|
|
19
19
|
React.createElement("div", { className: "case-card-link-folder-icon" },
|
|
20
20
|
React.createElement("i", { className: "allaw-icon-folder", style: { fontSize: "20px" } })),
|
|
@@ -22,16 +22,16 @@ function CaseLinkCard(_a) {
|
|
|
22
22
|
React.createElement("div", { className: "case-card-link-right" },
|
|
23
23
|
React.createElement("div", { className: "case-card-link-info-row" },
|
|
24
24
|
React.createElement(SmallTitle, { text: "DOSSIER", variant: "semiBold12", color: "dark-grey" }),
|
|
25
|
-
createdDate && React.createElement(SmallTitle, { text: "Cr\u00E9\u00E9 le ".concat(formatDate(createdDate)), variant: "semiBold12", color: "dark-grey" })),
|
|
25
|
+
createdDate && (React.createElement(SmallTitle, { text: "Cr\u00E9\u00E9 le ".concat(formatDate(createdDate)), variant: "semiBold12", color: "dark-grey" }))),
|
|
26
26
|
React.createElement("div", { className: "case-card-link-info-row-bottom" },
|
|
27
27
|
React.createElement("div", { className: "case-card-link-info-col" },
|
|
28
28
|
React.createElement(Paragraph, { variant: "bold", size: "default", text: caseName, maxLines: 1 }),
|
|
29
|
-
proName && React.createElement(SmallTitle, { variant: "medium12", color: "mid-grey", text: formatProName(proName) })),
|
|
30
|
-
React.createElement("i", { className: "allaw-icon-arrow-right" })))))) : React.createElement("div", { className: "case-card-no-folder-wrapper", onClick: function () { return onCaseLinkRequest && onCaseLinkRequest(); } },
|
|
29
|
+
proName && (React.createElement(SmallTitle, { variant: "medium12", color: "mid-grey", text: formatProName(proName) }))),
|
|
30
|
+
React.createElement("i", { className: "allaw-icon-arrow-right" }))))))) : (React.createElement("div", { className: "case-card-no-folder-wrapper", onClick: function () { return onCaseLinkRequest && onCaseLinkRequest(); } },
|
|
31
31
|
React.createElement("div", { className: "case-card-no-folder-right" },
|
|
32
|
-
React.createElement(SmallTitle, { text: "
|
|
32
|
+
React.createElement(SmallTitle, { text: "AUNCUN DOSSIER LI\u00C9", variant: "semiBold12", color: "dark-grey" }),
|
|
33
33
|
React.createElement(Paragraph, { variant: "bold", size: "default", text: "Ajouter à un dossier", maxLines: 1 })),
|
|
34
34
|
React.createElement("div", { className: "case-card-link-no-folder-icon" },
|
|
35
|
-
React.createElement("i", { className: "allaw-icon-add", style: { fontSize: "18px" } })))) : React.createElement(LoadingBox, { boxHeight: "100px", boxRadius: "8px", boxWidth: "100%" });
|
|
35
|
+
React.createElement("i", { className: "allaw-icon-add", style: { fontSize: "18px" } })))))) : (React.createElement(LoadingBox, { boxHeight: "100px", boxRadius: "8px", boxWidth: "100%" }));
|
|
36
36
|
}
|
|
37
37
|
export default CaseLinkCard;
|