allaw-ui 5.5.3 → 5.5.4
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.
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
backdrop-filter: blur(6px) saturate(140%);
|
|
22
22
|
-webkit-backdrop-filter: blur(6px) saturate(140%);
|
|
23
23
|
position: relative;
|
|
24
|
-
overflow:
|
|
24
|
+
overflow: visible;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.case-card-wrapper::before {
|
|
@@ -34,6 +34,32 @@
|
|
|
34
34
|
z-index: 1;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
.case-card-notification-badge {
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: -10px;
|
|
40
|
+
right: -10px;
|
|
41
|
+
z-index: 3;
|
|
42
|
+
min-width: 22px;
|
|
43
|
+
height: 22px;
|
|
44
|
+
padding: 0 7px;
|
|
45
|
+
border-radius: 999px;
|
|
46
|
+
background: var(--bleu-allaw, #25beeb);
|
|
47
|
+
color: #ffffff;
|
|
48
|
+
border: 3px solid rgba(255, 255, 255, 1);
|
|
49
|
+
box-shadow: 0 6px 18px rgba(23, 30, 37, 0.18),
|
|
50
|
+
0 2px 6px rgba(23, 30, 37, 0.12);
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
font-family: "Open Sans", sans-serif;
|
|
55
|
+
font-size: 12px;
|
|
56
|
+
font-weight: 700;
|
|
57
|
+
line-height: 1;
|
|
58
|
+
letter-spacing: 0.2px;
|
|
59
|
+
user-select: none;
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
37
63
|
.case-card-wrapper:hover {
|
|
38
64
|
box-shadow: 0 6px 18px 0 rgba(37, 190, 235, 0.13),
|
|
39
65
|
0 2px 8px 0 rgba(114, 142, 167, 0.08);
|
|
@@ -4,8 +4,13 @@ import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
|
|
|
4
4
|
import CardDate from "../../atoms/typography/CardDate";
|
|
5
5
|
import ProgressBar from "../../atoms/progressBars/ProgressBar";
|
|
6
6
|
var CaseCard = function (_a) {
|
|
7
|
-
var clientName = _a.clientName, title = _a.title, nextAppointment = _a.nextAppointment, categories = _a.categories, variant = _a.variant,
|
|
7
|
+
var clientName = _a.clientName, title = _a.title, _b = _a.notificationCount, notificationCount = _b === void 0 ? 0 : _b, nextAppointment = _a.nextAppointment, categories = _a.categories, variant = _a.variant, _c = _a.categoryLabelLimit, categoryLabelLimit = _c === void 0 ? 20 : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.dateStyle, dateStyle = _e === void 0 ? "hybride" : _e, dateLabel = _a.dateLabel, _f = _a.barColor, barColor = _f === void 0 ? "blue" : _f, _g = _a.showYear, showYear = _g === void 0 ? true : _g, _h = _a.steps, steps = _h === void 0 ? 100 : _h, _j = _a.currentStep, currentStep = _j === void 0 ? 50 : _j, _k = _a.hideProgressBar, hideProgressBar = _k === void 0 ? false : _k;
|
|
8
|
+
var normalizedNotificationCount = Math.max(0, Math.floor(Number.isFinite(notificationCount) ? notificationCount : 0));
|
|
9
|
+
var notificationLabel = normalizedNotificationCount > 99
|
|
10
|
+
? "99+"
|
|
11
|
+
: String(normalizedNotificationCount);
|
|
8
12
|
return (React.createElement("div", { className: "case-card-wrapper case-card-".concat(variant) },
|
|
13
|
+
normalizedNotificationCount > 0 && (React.createElement("div", { className: "case-card-notification-badge", "aria-label": "".concat(notificationLabel, " notification").concat(normalizedNotificationCount > 1 ? "s" : ""), title: "".concat(notificationLabel, " notification").concat(normalizedNotificationCount > 1 ? "s" : "") }, notificationLabel)),
|
|
9
14
|
React.createElement("div", { className: "case-card-content ".concat(hideProgressBar ? "case-card-content-no-progress" : "") },
|
|
10
15
|
React.createElement("div", { className: "case-card-header" },
|
|
11
16
|
React.createElement("h2", { className: "case-card-title ".concat(isDisabled ? "closed" : ""), title: title }, title),
|