allaw-ui 1.0.17 → 1.0.18
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.
|
@@ -304,12 +304,19 @@
|
|
|
304
304
|
font-weight: 500;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
+
.editable-contact-card {
|
|
308
|
+
display: flex;
|
|
309
|
+
flex-direction: row;
|
|
310
|
+
justify-content: space-between;
|
|
311
|
+
width: 100%;
|
|
312
|
+
}
|
|
313
|
+
|
|
307
314
|
.contact-card.editable {
|
|
308
315
|
display: flex;
|
|
309
316
|
padding: 24px;
|
|
310
|
-
width:
|
|
317
|
+
width: 100%;
|
|
311
318
|
justify-content: space-between;
|
|
312
|
-
align-items:
|
|
319
|
+
align-items: stretch;
|
|
313
320
|
align-self: stretch;
|
|
314
321
|
border-radius: 16px;
|
|
315
322
|
border: 1px solid var(--Primary-Venom-grey, #e6edf5);
|
|
@@ -384,3 +391,12 @@
|
|
|
384
391
|
align-items: center;
|
|
385
392
|
gap: 16px;
|
|
386
393
|
}
|
|
394
|
+
|
|
395
|
+
.action-button-container {
|
|
396
|
+
display: flex;
|
|
397
|
+
flex-direction: column;
|
|
398
|
+
justify-content: center;
|
|
399
|
+
align-items: flex-end;
|
|
400
|
+
height: 100%;
|
|
401
|
+
align-self: stretch;
|
|
402
|
+
}
|
|
@@ -54,7 +54,7 @@ var ContactCard = function (_a) {
|
|
|
54
54
|
React.createElement("div", { className: "status-container" },
|
|
55
55
|
React.createElement(OtherStatusTag, { label: status, type: "readonly" }))));
|
|
56
56
|
case "editable":
|
|
57
|
-
return (React.createElement(
|
|
57
|
+
return (React.createElement("div", { className: "editable-contact-card" },
|
|
58
58
|
React.createElement("div", { className: "content-container" },
|
|
59
59
|
React.createElement("div", { className: "name-tag-container" },
|
|
60
60
|
React.createElement("h3", { className: "contact-name" }, name),
|
|
@@ -72,7 +72,8 @@ var ContactCard = function (_a) {
|
|
|
72
72
|
React.createElement("div", { className: "info-item" },
|
|
73
73
|
React.createElement("i", { className: "allaw-icon-mail info-icon" }),
|
|
74
74
|
React.createElement("span", { className: "info-text contact" }, email))))),
|
|
75
|
-
React.createElement(
|
|
75
|
+
React.createElement("div", { className: "action-button-container" },
|
|
76
|
+
React.createElement(IconButton, { style: "largeFilled", iconName: "allaw-icon-edit-2", onClick: onEdit }))));
|
|
76
77
|
}
|
|
77
78
|
};
|
|
78
79
|
return React.createElement("div", { className: "contact-card ".concat(size) }, renderContent());
|
|
@@ -5,6 +5,10 @@ import Image from "next/image";
|
|
|
5
5
|
var NoPhoto = "/assets/NoPhoto.png";
|
|
6
6
|
var ProCard = function (_a) {
|
|
7
7
|
var imageUrl = _a.imageUrl, job = _a.job, firstName = _a.firstName, lastName = _a.lastName, address = _a.address, profileUrl = _a.profileUrl, _b = _a.isPro, isPro = _b === void 0 ? false : _b;
|
|
8
|
+
console.log("Données reçues dans ProCard:", {
|
|
9
|
+
address: address,
|
|
10
|
+
hasAddress: Boolean(address && /[a-zA-Z0-9]/.test(address)),
|
|
11
|
+
});
|
|
8
12
|
var uppercaseJob = job.toUpperCase();
|
|
9
13
|
return (React.createElement("div", { className: "pro-card" },
|
|
10
14
|
React.createElement("div", { className: "pro-card-content" },
|