allaw-ui 0.0.322 → 0.0.324

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.
@@ -40,6 +40,32 @@
40
40
  height: 74px;
41
41
  border-radius: 50%;
42
42
  border: 2px solid #e6edf5;
43
+ object-fit: cover;
44
+ background-color: #f0f0f0;
45
+ }
46
+
47
+ .pro-card-verified-icon-container {
48
+ position: absolute;
49
+ bottom: 0;
50
+ right: 0;
51
+ display: flex;
52
+ justify-content: center;
53
+ align-items: center;
54
+ }
55
+
56
+ .pro-card-verified-icon-background {
57
+ position: absolute;
58
+ width: 13px;
59
+ height: 13px;
60
+ background-color: white;
61
+ border-radius: 50%;
62
+ }
63
+
64
+ .pro-card-verified-icon {
65
+ position: relative;
66
+ color: var(--primary-blue, #25beeb);
67
+ font-size: 20px;
68
+ z-index: 1;
43
69
  }
44
70
 
45
71
  .pro-card-job-name {
@@ -73,8 +99,19 @@
73
99
  font-style: normal;
74
100
  font-weight: 600;
75
101
  line-height: normal;
102
+ white-space: nowrap;
103
+ overflow: hidden;
104
+ text-overflow: ellipsis;
105
+ max-width: 100%;
76
106
  }
77
107
 
78
108
  .pro-card-address .icon {
79
109
  font-size: 16px;
110
+ flex-shrink: 0;
111
+ }
112
+
113
+ .pro-card-address span {
114
+ overflow: hidden;
115
+ text-overflow: ellipsis;
116
+ white-space: nowrap;
80
117
  }
@@ -7,6 +7,7 @@ export interface ProCardProps {
7
7
  lastName: string;
8
8
  address: string;
9
9
  profileUrl: string;
10
+ isPro?: boolean;
10
11
  }
11
12
  declare const ProCard: React.FC<ProCardProps>;
12
13
  export default ProCard;
@@ -4,13 +4,16 @@ import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
4
4
  import Image from "next/image";
5
5
  var NoPhoto = "/assets/NoPhoto.png";
6
6
  var ProCard = function (_a) {
7
- var imageUrl = _a.imageUrl, job = _a.job, firstName = _a.firstName, lastName = _a.lastName, address = _a.address, profileUrl = _a.profileUrl;
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
8
  var uppercaseJob = job.toUpperCase();
9
9
  return (React.createElement("div", { className: "pro-card" },
10
10
  React.createElement("div", { className: "pro-card-content" },
11
11
  React.createElement("div", { className: "pro-card-top" },
12
12
  React.createElement("div", { className: "pro-card-image-container" },
13
- React.createElement(Image, { src: imageUrl || NoPhoto, alt: "".concat(firstName, " ").concat(lastName), width: 74, height: 74, className: "pro-card-avatar" })),
13
+ React.createElement(Image, { src: imageUrl || NoPhoto, alt: "".concat(firstName, " ").concat(lastName), width: 74, height: 74, className: "pro-card-avatar" }),
14
+ isPro && (React.createElement("div", { className: "pro-card-verified-icon-container" },
15
+ React.createElement("div", { className: "pro-card-verified-icon-background" }),
16
+ React.createElement("i", { className: "icon allaw-icon-verified pro-card-verified-icon" })))),
14
17
  React.createElement("div", { className: "pro-card-job-name" },
15
18
  React.createElement(OtherStatusTag, { label: uppercaseJob, type: "information" }),
16
19
  React.createElement("h3", { className: "pro-card-name" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "0.0.322",
3
+ "version": "0.0.324",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",