allaw-ui 0.0.310 → 0.0.313

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.
@@ -11,6 +11,7 @@
11
11
  background-color 0.2s,
12
12
  opacity 0.2s;
13
13
  border: 0px;
14
+ cursor: pointer;
14
15
  }
15
16
 
16
17
  .primary-button-enabled {
@@ -10,6 +10,7 @@
10
10
  padding: 1rem 1.3rem;
11
11
  border-radius: 24px;
12
12
  border: 2px solid var(--noir);
13
+ cursor: pointer;
13
14
  transition:
14
15
  background-color 0.2s,
15
16
  opacity 0.2s,
@@ -0,0 +1,80 @@
1
+ @import "../../../styles/colors.css";
2
+
3
+ .pro-card {
4
+ display: flex;
5
+ width: 371px;
6
+ padding: 24px 16px;
7
+ flex-direction: column;
8
+ align-items: flex-start;
9
+ gap: 16px;
10
+ border-radius: 16px;
11
+ background: var(--Primary-Blanc, #fff);
12
+ box-shadow: 0px 1px 20px 0px rgba(213, 233, 246, 0.8);
13
+ }
14
+
15
+ .pro-card-content {
16
+ display: flex;
17
+ flex-direction: column;
18
+ justify-content: center;
19
+ align-items: flex-start;
20
+ gap: 18px;
21
+ align-self: stretch;
22
+ }
23
+
24
+ .pro-card-top {
25
+ display: flex;
26
+ align-items: center;
27
+ gap: 16px;
28
+ align-self: stretch;
29
+ }
30
+
31
+ .pro-card-image-container {
32
+ position: relative;
33
+ display: flex;
34
+ justify-content: center;
35
+ align-items: center;
36
+ }
37
+
38
+ .pro-card-avatar {
39
+ width: 74px;
40
+ height: 74px;
41
+ border-radius: 50%;
42
+ border: 2px solid #e6edf5;
43
+ }
44
+
45
+ .pro-card-job-name {
46
+ display: flex;
47
+ flex-direction: column;
48
+ align-items: flex-start;
49
+ gap: 12px;
50
+ flex: 1 0 0;
51
+ }
52
+
53
+ .pro-card-name {
54
+ margin: 0;
55
+ font-family: "Open Sans", sans-serif;
56
+ font-size: 18px;
57
+ font-weight: 700;
58
+ color: var(--Primary-Dark-grey, #456073);
59
+ }
60
+
61
+ .pro-card-name a {
62
+ color: inherit;
63
+ text-decoration: none;
64
+ }
65
+
66
+ .pro-card-address {
67
+ display: flex;
68
+ align-items: center;
69
+ gap: 8px;
70
+ color: var(--Primary-Dark-grey, #456073);
71
+ font-family: "Open Sans", sans-serif;
72
+ font-size: 14px;
73
+ font-style: normal;
74
+ font-weight: 600;
75
+ line-height: normal;
76
+ }
77
+
78
+ .pro-card-address .icon {
79
+ font-size: 16px;
80
+ }
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import "./ProCard.css";
3
+ export interface ProCardProps {
4
+ imageUrl?: string;
5
+ job: string;
6
+ firstName: string;
7
+ lastName: string;
8
+ address: string;
9
+ profileUrl: string;
10
+ }
11
+ declare const ProCard: React.FC<ProCardProps>;
12
+ export default ProCard;
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import "./ProCard.css";
3
+ import Image from "next/image";
4
+ import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
5
+ var NoPhoto = "/assets/NoPhoto.png";
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;
8
+ var uppercaseJob = job.toUpperCase();
9
+ return (React.createElement("div", { className: "pro-card" },
10
+ React.createElement("div", { className: "pro-card-content" },
11
+ React.createElement("div", { className: "pro-card-top" },
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" })),
14
+ React.createElement("div", { className: "pro-card-job-name" },
15
+ React.createElement(OtherStatusTag, { label: uppercaseJob, type: "information" }),
16
+ React.createElement("h3", { className: "pro-card-name" },
17
+ React.createElement("a", { href: profileUrl }, "".concat(firstName, " ").concat(lastName))))),
18
+ React.createElement("div", { className: "pro-card-address" },
19
+ React.createElement("i", { className: "icon allaw-icon-map-pin" }),
20
+ React.createElement("span", null, address)))));
21
+ };
22
+ export default ProCard;
@@ -0,0 +1,2 @@
1
+ export { default as ProCard } from "./ProCard";
2
+ export type { ProCardProps } from "./ProCard";
@@ -0,0 +1 @@
1
+ export { default as ProCard } from "./ProCard";
package/dist/index.d.ts CHANGED
@@ -35,3 +35,4 @@ export { default as EmployeeCard } from "./components/molecules/employeeCard/Emp
35
35
  export { default as Stepper } from "./components/molecules/stepper/Stepper";
36
36
  export { default as CheckboxForm } from "./components/molecules/checkboxForm/CheckboxForm";
37
37
  export { default as Breadcrumb } from "./components/molecules/breadcrumb/Breadcrumb";
38
+ export { default as ProCard } from "./components/molecules/proCard/ProCard";
package/dist/index.js CHANGED
@@ -52,3 +52,5 @@ export { default as Stepper } from "./components/molecules/stepper/Stepper";
52
52
  export { default as CheckboxForm } from "./components/molecules/checkboxForm/CheckboxForm";
53
53
  // Breadcrumb
54
54
  export { default as Breadcrumb } from "./components/molecules/breadcrumb/Breadcrumb";
55
+ // ProCard
56
+ export { default as ProCard } from "./components/molecules/proCard/ProCard";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "0.0.310",
3
+ "version": "0.0.313",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",