allaw-ui 3.2.6 → 3.2.8

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.
@@ -2,10 +2,12 @@
2
2
 
3
3
  .pro-card {
4
4
  display: flex;
5
- width: 371px;
5
+
6
6
  padding: 24px 16px;
7
- flex-direction: column;
8
- align-items: flex-start;
7
+ flex-direction: row;
8
+ flex-wrap: wrap;
9
+ justify-content: space-between;
10
+ align-items: center;
9
11
  gap: 16px;
10
12
  border-radius: 16px;
11
13
  background: var(--Primary-Blanc, #fff);
@@ -61,6 +63,21 @@
61
63
  border-radius: 50%;
62
64
  }
63
65
 
66
+ .pro-card-button-action {
67
+ background-color: #25beeb;
68
+ border-radius: 8px;
69
+ padding: 0.75rem 1rem;
70
+ color: #fff;
71
+ font-size: 14px;
72
+ display: flex;
73
+ flex-direction: row;
74
+ align-items: center;
75
+ gap: 0.5rem;
76
+ font-family: var(--font-open-sans, "Open Sans");
77
+ font-weight: 600;
78
+ cursor: pointer;
79
+ }
80
+
64
81
  .pro-card-verified-icon {
65
82
  position: relative;
66
83
  color: var(--primary-blue, #25beeb);
@@ -8,6 +8,7 @@ export interface ProCardProps {
8
8
  address: string;
9
9
  profileUrl: string;
10
10
  isPro?: boolean;
11
+ showButton?: boolean;
11
12
  }
12
13
  declare const ProCard: React.FC<ProCardProps>;
13
14
  export default ProCard;
@@ -2,9 +2,10 @@ import React from "react";
2
2
  import "./ProCard.css";
3
3
  import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
4
4
  import Image from "next/image";
5
+ import Link from "next/link";
5
6
  var NoPhoto = "/assets/NoPhoto.png";
6
7
  var ProCard = function (_a) {
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
+ 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, _c = _a.showButton, showButton = _c === void 0 ? false : _c;
8
9
  var uppercaseJob = job.toUpperCase();
9
10
  return (React.createElement("div", { className: "pro-card" },
10
11
  React.createElement("div", { className: "pro-card-content" },
@@ -20,6 +21,10 @@ var ProCard = function (_a) {
20
21
  React.createElement("a", { href: profileUrl }, "".concat(firstName, " ").concat(lastName))))),
21
22
  address && /[a-zA-Z0-9]/.test(address) && (React.createElement("div", { className: "pro-card-address" },
22
23
  React.createElement("i", { className: "icon allaw-icon-map-pin" }),
23
- React.createElement("span", null, address))))));
24
+ React.createElement("span", null, address)))),
25
+ showButton &&
26
+ React.createElement(Link, { href: profileUrl || "#", className: "pro-card-button-action" },
27
+ React.createElement("i", { className: "allaw-icon-calendar" }),
28
+ " Prendre rendez-vous ")));
24
29
  };
25
30
  export default ProCard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "3.2.6",
3
+ "version": "3.2.8",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",