allaw-ui 1.0.71 → 1.0.72
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.
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Paragraph, SmallTitle } from "../../atoms/typography";
|
|
3
3
|
import FolderStatusTag from "../../atoms/tags/FolderStatusTag";
|
|
4
|
-
import
|
|
4
|
+
import "./caseCardCompact.css";
|
|
5
5
|
import "../../../styles/icons.css";
|
|
6
6
|
import LoadingBox from "../loadingBox/LoadingBox";
|
|
7
7
|
function CaseCardCompact(_a) {
|
|
8
8
|
var folderTitle = _a.folderTitle, folderStatus = _a.folderStatus, isLoading = _a.isLoading, clientName = _a.clientName, category = _a.category, _b = _a.showArrowOnHover, showArrowOnHover = _b === void 0 ? false : _b, onClientCardClick = _a.onClientCardClick, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c;
|
|
9
|
-
return !isLoading ? (React.createElement("div", { className: "
|
|
9
|
+
return !isLoading ? (React.createElement("div", { className: "case-card-compact ".concat(showArrowOnHover ? "case-card-compact--arrow-on-hover" : "", " ").concat(isSelected ? "case-card-compact--selected" : ""), style: {
|
|
10
10
|
cursor: onClientCardClick || isSelected ? "pointer" : "default",
|
|
11
11
|
}, onClick: onClientCardClick || (isSelected ? function () { } : undefined) },
|
|
12
|
-
React.createElement("div", { className:
|
|
13
|
-
React.createElement("span", { className:
|
|
12
|
+
React.createElement("div", { className: "case-card-compact-left" },
|
|
13
|
+
React.createElement("span", { className: "title-tag" },
|
|
14
14
|
React.createElement(Paragraph, { variant: "semiBold", text: folderTitle, size: "default", maxLines: 1, color: "noir" }),
|
|
15
15
|
React.createElement(FolderStatusTag, { status: folderStatus })),
|
|
16
16
|
React.createElement(SmallTitle, { variant: "medium12", color: "mid-grey", text: clientName || "" })),
|
|
17
|
-
React.createElement("div", { className: "
|
|
17
|
+
React.createElement("div", { className: "case-card-compact-right ".concat(!category ? "case-card-compact-right--centered" : "") },
|
|
18
|
+
category && (React.createElement("span", { className: "case-card-compact-office-tag" }, category)),
|
|
19
|
+
React.createElement("i", { className: "allaw-icon-arrow-right case-card-compact-arrow" })))) : (React.createElement(LoadingBox, { boxHeight: "91px", boxRadius: "16px", boxWidth: "100%" }));
|
|
18
20
|
}
|
|
19
21
|
export default CaseCardCompact;
|
package/dist/components/molecules/caseCardCompact/{caseCardCompact.module.css → caseCardCompact.css}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@import "../../../styles/colors.css";
|
|
2
2
|
|
|
3
|
-
.
|
|
3
|
+
.case-card-compact {
|
|
4
4
|
width: 100%;
|
|
5
5
|
display: flex;
|
|
6
6
|
padding: 16px;
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
border-width 0.2s ease;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
.case-card-compact:hover {
|
|
18
18
|
border-color: var(--bleu-allaw, #25beeb);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.
|
|
21
|
+
.case-card-compact--selected {
|
|
22
22
|
border-width: 2px;
|
|
23
23
|
border-color: var(--Primary-Bleu, #25beeb);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.
|
|
26
|
+
.case-card-compact-left {
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: column;
|
|
29
29
|
align-items: start;
|
|
30
30
|
gap: 8px;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.
|
|
33
|
+
.case-card-compact-right {
|
|
34
34
|
position: relative;
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
min-height: 45px;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.
|
|
42
|
+
.case-card-compact-right--centered .case-card-compact-arrow {
|
|
43
43
|
position: absolute;
|
|
44
44
|
top: 55%;
|
|
45
45
|
transform: translateY(-50%);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.
|
|
48
|
+
.case-card-compact-office-tag {
|
|
49
49
|
font-size: 13px;
|
|
50
50
|
font-family: "Open Sans", sans-serif;
|
|
51
51
|
font-weight: 600;
|
|
@@ -55,21 +55,21 @@
|
|
|
55
55
|
color: var(--Primary-Mid-black, #171e25);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.
|
|
58
|
+
.case-card-compact--arrow-on-hover .case-card-compact-arrow {
|
|
59
59
|
opacity: 0;
|
|
60
60
|
transition: opacity 0.2s ease;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.
|
|
63
|
+
.case-card-compact--arrow-on-hover:hover .case-card-compact-arrow {
|
|
64
64
|
opacity: 1;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.
|
|
67
|
+
.case-card-compact:active {
|
|
68
68
|
border-width: 2px;
|
|
69
69
|
border-color: var(--Primary-Bleu, #25beeb);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.
|
|
72
|
+
.title-tag {
|
|
73
73
|
display: flex;
|
|
74
74
|
flex-direction: row;
|
|
75
75
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "allaw-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.72",
|
|
4
4
|
"description": "Composants UI pour l'application Allaw",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
"@storybook/nextjs": "^8.2.8",
|
|
62
62
|
"@storybook/react": "^8.2.8",
|
|
63
63
|
"@storybook/test": "^8.2.8",
|
|
64
|
-
"@types/css-modules": "^1.0.5",
|
|
65
64
|
"@types/node": "^20",
|
|
66
65
|
"@types/react": "^18",
|
|
67
66
|
"@types/react-dom": "^18",
|