allaw-ui 1.0.176 → 1.0.178
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.
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.css +2 -4
- package/dist/components/molecules/contactCard/ContactCard.d.ts +1 -1
- package/dist/components/molecules/contactCard/ContactCard.js +22 -22
- package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +9 -0
- package/dist/components/molecules/contactCard/ContactCard.stories.js +9 -0
- package/dist/components/molecules/contactCard/{ContactCard.css → contactCard.module.css} +26 -28
- package/dist/components/molecules/documentCard/DocumentCard.css +4 -1
- package/dist/components/molecules/documentCard/DocumentCard.d.ts +1 -0
- package/dist/components/molecules/documentCard/DocumentCard.js +2 -2
- package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +6 -0
- package/dist/components/molecules/documentCard/DocumentCard.stories.js +2 -0
- package/dist/components/molecules/stepper/Stepper.css +4 -7
- package/package.json +1 -1
|
@@ -12,9 +12,7 @@
|
|
|
12
12
|
align-items: center;
|
|
13
13
|
gap: 16px;
|
|
14
14
|
|
|
15
|
-
transition:
|
|
16
|
-
border-color 0.2s ease,
|
|
17
|
-
border-width 0.2s ease;
|
|
15
|
+
transition: border-color 0.2s ease, border-width 0.2s ease;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
.case-card-link:hover {
|
|
@@ -90,7 +88,7 @@
|
|
|
90
88
|
width: 100%;
|
|
91
89
|
flex-direction: row;
|
|
92
90
|
justify-content: space-between;
|
|
93
|
-
align-items: end;
|
|
91
|
+
align-items: flex-end;
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
.case-card-link-info-col {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import "./ContactCard.css";
|
|
3
2
|
export interface ContactCardProps {
|
|
4
3
|
name: string;
|
|
5
4
|
status: string;
|
|
@@ -10,6 +9,7 @@ export interface ContactCardProps {
|
|
|
10
9
|
onClick?: () => void;
|
|
11
10
|
gender: "male" | "female";
|
|
12
11
|
actionIconName?: string;
|
|
12
|
+
clientLabel?: string;
|
|
13
13
|
}
|
|
14
14
|
declare const ContactCard: React.FC<ContactCardProps>;
|
|
15
15
|
export default ContactCard;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import "./
|
|
2
|
+
import styles from "./contactCard.module.css";
|
|
3
3
|
import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
|
|
4
4
|
import IconButton from "../../atoms/buttons/IconButton";
|
|
5
5
|
import Link from "next/link";
|
|
6
6
|
var ContactCard = function (_a) {
|
|
7
|
-
var name = _a.name, status = _a.status, phone = _a.phone, email = _a.email, isEditable = _a.isEditable, onEdit = _a.onEdit, onClick = _a.onClick, gender = _a.gender, _b = _a.actionIconName, actionIconName = _b === void 0 ? "allaw-icon-edit-2" : _b;
|
|
7
|
+
var name = _a.name, status = _a.status, phone = _a.phone, email = _a.email, isEditable = _a.isEditable, onEdit = _a.onEdit, onClick = _a.onClick, gender = _a.gender, _b = _a.actionIconName, actionIconName = _b === void 0 ? "allaw-icon-edit-2" : _b, clientLabel = _a.clientLabel;
|
|
8
8
|
var isPhoneEmpty = !phone || phone.trim() === "";
|
|
9
9
|
var isEmailEmpty = !email || email.trim() === "";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
var defaultClientLabel = gender === "male" ? "Client" : "Cliente";
|
|
11
|
+
var displayClientLabel = clientLabel || "".concat(defaultClientLabel, " de l'\u00E9tude");
|
|
12
|
+
return (React.createElement("div", { className: styles.contactCard, onClick: function () { return onClick && onClick(); }, style: { cursor: "pointer" } },
|
|
13
|
+
React.createElement("div", { className: styles.contentContainer },
|
|
14
|
+
React.createElement("div", { className: styles.nameTagContainer },
|
|
15
|
+
React.createElement("h3", { className: styles.contactName }, name),
|
|
14
16
|
React.createElement(OtherStatusTag, { label: status, type: "readonly" })),
|
|
15
|
-
React.createElement("div", { className:
|
|
16
|
-
React.createElement("div", { className:
|
|
17
|
-
React.createElement("i", { className: "allaw-icon-user
|
|
18
|
-
React.createElement("span", { className:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
React.createElement("
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
React.createElement("span", { className: "info-text contact ".concat(isEmailEmpty ? "empty-field" : "") }, isEmailEmpty ? ("Non renseigné") : (React.createElement(Link, { style: { color: "#171E25", textDecoration: "underline" }, href: "mailTo:".concat(email) }, email))))))),
|
|
28
|
-
isEditable && (React.createElement("div", { className: "action-button-container" },
|
|
17
|
+
React.createElement("div", { className: styles.infoContainer },
|
|
18
|
+
React.createElement("div", { className: styles.infoItem },
|
|
19
|
+
React.createElement("i", { className: "allaw-icon-user ".concat(styles.infoIcon) }),
|
|
20
|
+
React.createElement("span", { className: styles.infoText }, displayClientLabel)),
|
|
21
|
+
React.createElement("div", { className: styles.telephoneEmailItems },
|
|
22
|
+
React.createElement("div", { className: styles.infoItem },
|
|
23
|
+
React.createElement("i", { className: "allaw-icon-phone ".concat(styles.infoIcon, " ").concat(isPhoneEmpty ? styles.infoIconDisabled : "") }),
|
|
24
|
+
React.createElement("span", { className: "".concat(styles.infoText, " ").concat(styles.contact, " ").concat(isPhoneEmpty ? styles.emptyField : "") }, isPhoneEmpty ? ("Non renseigné") : (React.createElement(Link, { style: { color: "#171E25", textDecoration: "underline" }, href: "tel:".concat(phone) }, phone)))),
|
|
25
|
+
React.createElement("div", { className: styles.infoItem },
|
|
26
|
+
React.createElement("i", { className: "allaw-icon-mail ".concat(styles.infoIcon, " ").concat(isEmailEmpty ? styles.infoIconDisabled : "") }),
|
|
27
|
+
React.createElement("span", { className: "".concat(styles.infoText, " ").concat(styles.contact, " ").concat(isEmailEmpty ? styles.emptyField : "") }, isEmailEmpty ? ("Non renseigné") : (React.createElement(Link, { style: { color: "#171E25", textDecoration: "underline" }, href: "mailTo:".concat(email) }, email))))))),
|
|
28
|
+
isEditable && (React.createElement("div", { className: styles.actionButtonContainer },
|
|
29
29
|
React.createElement(IconButton, { style: "largeFilled", iconName: actionIconName, onClick: onEdit }))),
|
|
30
|
-
onClick && (React.createElement("div", { className:
|
|
31
|
-
React.createElement("i", { className: "allaw-icon-
|
|
30
|
+
onClick && (React.createElement("div", { className: styles.actionButtonContainer },
|
|
31
|
+
React.createElement("i", { className: "allaw-icon-right ".concat(styles.infoIcon) })))));
|
|
32
32
|
};
|
|
33
33
|
export default ContactCard;
|
|
@@ -37,6 +37,12 @@ declare namespace _default {
|
|
|
37
37
|
export { control_6 as control };
|
|
38
38
|
export let description: string;
|
|
39
39
|
}
|
|
40
|
+
namespace clientLabel {
|
|
41
|
+
let control_7: string;
|
|
42
|
+
export { control_7 as control };
|
|
43
|
+
let description_1: string;
|
|
44
|
+
export { description_1 as description };
|
|
45
|
+
}
|
|
40
46
|
}
|
|
41
47
|
export namespace args {
|
|
42
48
|
let name_1: string;
|
|
@@ -53,6 +59,8 @@ declare namespace _default {
|
|
|
53
59
|
export { gender_1 as gender };
|
|
54
60
|
let actionIconName_1: string;
|
|
55
61
|
export { actionIconName_1 as actionIconName };
|
|
62
|
+
let clientLabel_1: string;
|
|
63
|
+
export { clientLabel_1 as clientLabel };
|
|
56
64
|
}
|
|
57
65
|
export namespace parameters {
|
|
58
66
|
namespace backgrounds {
|
|
@@ -71,4 +79,5 @@ export const Editable: any;
|
|
|
71
79
|
export const WithCustomIcon: any;
|
|
72
80
|
export const EmptyFields: any;
|
|
73
81
|
export const PartiallyEmpty: any;
|
|
82
|
+
export const CustomClientLabel: any;
|
|
74
83
|
import ContactCard from "./ContactCard";
|
|
@@ -33,6 +33,10 @@ export default {
|
|
|
33
33
|
control: "text",
|
|
34
34
|
description: "Nom de l'icône pour le bouton d'action",
|
|
35
35
|
},
|
|
36
|
+
clientLabel: {
|
|
37
|
+
control: "text",
|
|
38
|
+
description: "Texte personnalisé pour 'Client/Cliente de l'étude'",
|
|
39
|
+
},
|
|
36
40
|
},
|
|
37
41
|
args: {
|
|
38
42
|
name: "Jane DOE",
|
|
@@ -42,6 +46,7 @@ export default {
|
|
|
42
46
|
isEditable: false,
|
|
43
47
|
gender: "female",
|
|
44
48
|
actionIconName: "allaw-icon-edit-2",
|
|
49
|
+
clientLabel: "",
|
|
45
50
|
},
|
|
46
51
|
parameters: {
|
|
47
52
|
backgrounds: {
|
|
@@ -75,3 +80,7 @@ PartiallyEmpty.args = {
|
|
|
75
80
|
phone: "06 12 34 56 78",
|
|
76
81
|
email: "",
|
|
77
82
|
};
|
|
83
|
+
export var CustomClientLabel = Template.bind({});
|
|
84
|
+
CustomClientLabel.args = {
|
|
85
|
+
clientLabel: "Utilisateur professionnel",
|
|
86
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@import "../../../styles/colors.css";
|
|
1
|
+
@import "../../../styles/colors.module.css";
|
|
2
2
|
|
|
3
|
-
.
|
|
3
|
+
.contactCard {
|
|
4
4
|
font-family: "Open Sans", sans-serif;
|
|
5
5
|
border-radius: 16px;
|
|
6
|
-
border: 1px solid var(--venom
|
|
7
|
-
background: var(--
|
|
6
|
+
border: 1px solid var(--grey-venom, #e6edf5);
|
|
7
|
+
background: var(--pure-white, #fff);
|
|
8
8
|
display: flex;
|
|
9
9
|
padding: 24px;
|
|
10
10
|
width: 100%;
|
|
@@ -12,18 +12,16 @@
|
|
|
12
12
|
align-items: stretch;
|
|
13
13
|
align-self: stretch;
|
|
14
14
|
border-radius: 16px;
|
|
15
|
-
border: 1px solid var(--Primary-Venom-grey, #e6edf5);
|
|
16
|
-
background: var(--Primary-Blanc, #fff);
|
|
17
15
|
}
|
|
18
16
|
|
|
19
|
-
.
|
|
17
|
+
.contentContainer {
|
|
20
18
|
display: flex;
|
|
21
19
|
flex-direction: row;
|
|
22
20
|
align-items: center;
|
|
23
21
|
gap: 24px;
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
.
|
|
24
|
+
.nameTagContainer {
|
|
27
25
|
display: flex;
|
|
28
26
|
flex-direction: column;
|
|
29
27
|
justify-content: center;
|
|
@@ -32,8 +30,8 @@
|
|
|
32
30
|
padding-left: 2px;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
|
-
.
|
|
36
|
-
color: var(--
|
|
33
|
+
.contactName {
|
|
34
|
+
color: var(--noir, #171e25);
|
|
37
35
|
font-family: Poppins;
|
|
38
36
|
font-size: 24px;
|
|
39
37
|
font-style: normal;
|
|
@@ -41,7 +39,7 @@
|
|
|
41
39
|
line-height: 24px;
|
|
42
40
|
}
|
|
43
41
|
|
|
44
|
-
.
|
|
42
|
+
.infoContainer {
|
|
45
43
|
display: flex;
|
|
46
44
|
flex-direction: column;
|
|
47
45
|
align-items: flex-start;
|
|
@@ -49,28 +47,28 @@
|
|
|
49
47
|
padding-left: 6px;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
|
-
.
|
|
50
|
+
.infoItem {
|
|
53
51
|
display: flex;
|
|
54
52
|
align-items: center;
|
|
55
53
|
gap: 8px;
|
|
56
54
|
}
|
|
57
55
|
|
|
58
|
-
.
|
|
56
|
+
.infoIcon {
|
|
59
57
|
width: 24px;
|
|
60
58
|
height: 24px;
|
|
61
|
-
color: #25beeb;
|
|
59
|
+
color: var(--bleu-allaw, #25beeb);
|
|
62
60
|
font-size: 20px;
|
|
63
61
|
display: flex;
|
|
64
62
|
justify-content: center;
|
|
65
63
|
align-items: center;
|
|
66
64
|
}
|
|
67
65
|
|
|
68
|
-
.
|
|
69
|
-
color: var(--
|
|
66
|
+
.infoIconDisabled {
|
|
67
|
+
color: var(--mid-grey, #728ea7);
|
|
70
68
|
}
|
|
71
69
|
|
|
72
|
-
.
|
|
73
|
-
color: var(--
|
|
70
|
+
.infoText {
|
|
71
|
+
color: var(--noir, #171e25);
|
|
74
72
|
font-family: "Open Sans";
|
|
75
73
|
font-size: 16px;
|
|
76
74
|
font-style: normal;
|
|
@@ -78,12 +76,12 @@
|
|
|
78
76
|
line-height: normal;
|
|
79
77
|
}
|
|
80
78
|
|
|
81
|
-
.
|
|
82
|
-
color: var(--
|
|
79
|
+
.infoText.contact.emptyField {
|
|
80
|
+
color: var(--mid-grey, #728ea7);
|
|
83
81
|
font-style: italic;
|
|
84
82
|
}
|
|
85
83
|
|
|
86
|
-
.
|
|
84
|
+
.telephoneEmailItems {
|
|
87
85
|
display: flex;
|
|
88
86
|
flex-direction: row;
|
|
89
87
|
justify-content: center;
|
|
@@ -92,7 +90,7 @@
|
|
|
92
90
|
}
|
|
93
91
|
|
|
94
92
|
@media (max-width: 800px) {
|
|
95
|
-
.
|
|
93
|
+
.telephoneEmailItems {
|
|
96
94
|
flex-direction: column;
|
|
97
95
|
align-items: flex-start;
|
|
98
96
|
gap: 10px;
|
|
@@ -100,16 +98,16 @@
|
|
|
100
98
|
}
|
|
101
99
|
|
|
102
100
|
@media (max-width: 600px) {
|
|
103
|
-
.
|
|
101
|
+
.contentContainer {
|
|
104
102
|
flex-direction: column;
|
|
105
103
|
}
|
|
106
|
-
.
|
|
104
|
+
.nameTagContainer {
|
|
107
105
|
align-items: flex-start;
|
|
108
106
|
width: 100%;
|
|
109
107
|
}
|
|
110
108
|
}
|
|
111
109
|
|
|
112
|
-
.
|
|
110
|
+
.actionButtonContainer {
|
|
113
111
|
display: flex;
|
|
114
112
|
flex-direction: column;
|
|
115
113
|
justify-content: center;
|
|
@@ -119,7 +117,7 @@
|
|
|
119
117
|
}
|
|
120
118
|
|
|
121
119
|
@media (max-width: 450px) {
|
|
122
|
-
.
|
|
120
|
+
.actionButtonContainer {
|
|
123
121
|
display: block;
|
|
124
122
|
position: absolute;
|
|
125
123
|
top: 24px;
|
|
@@ -128,7 +126,7 @@
|
|
|
128
126
|
}
|
|
129
127
|
}
|
|
130
128
|
|
|
131
|
-
.
|
|
132
|
-
color: var(--
|
|
129
|
+
.emptyField {
|
|
130
|
+
color: var(--mid-grey, #728ea7) !important;
|
|
133
131
|
font-style: italic;
|
|
134
132
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
border-radius: 8px;
|
|
10
10
|
border: 1px solid var(--venom-grey, #e6edf5);
|
|
11
11
|
background: var(--Primary-Blanc, #fff);
|
|
12
|
-
box-shadow: 0px 1px 9px 0px rgba(15, 133, 168, 0.08);
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
.document-card-left {
|
|
@@ -132,3 +131,7 @@
|
|
|
132
131
|
font-weight: 600;
|
|
133
132
|
line-height: normal;
|
|
134
133
|
}
|
|
134
|
+
|
|
135
|
+
.document-card.with-shadow {
|
|
136
|
+
box-shadow: 0px 1px 9px 0px rgba(15, 133, 168, 0.08);
|
|
137
|
+
}
|
|
@@ -4,7 +4,7 @@ import IconButton from "../../atoms/buttons/IconButton";
|
|
|
4
4
|
import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
|
|
5
5
|
import { Paragraph } from "../../atoms/typography";
|
|
6
6
|
var DocumentCard = function (_a) {
|
|
7
|
-
var _b = _a.type, type = _b === void 0 ? "document" : _b, title = _a.title, _c = _a.date, date = _c === void 0 ? new Date() : _c, onCardClick = _a.onCardClick, status = _a.status, _d = _a.documents, documents = _d === void 0 ? {} : _d, _e = _a.documentCount, documentCount = _e === void 0 ? "" : _e;
|
|
7
|
+
var _b = _a.type, type = _b === void 0 ? "document" : _b, title = _a.title, _c = _a.date, date = _c === void 0 ? new Date() : _c, onCardClick = _a.onCardClick, status = _a.status, _d = _a.documents, documents = _d === void 0 ? {} : _d, _e = _a.documentCount, documentCount = _e === void 0 ? "" : _e, _f = _a.shadow, shadow = _f === void 0 ? true : _f;
|
|
8
8
|
var getIconName = function () {
|
|
9
9
|
switch (type) {
|
|
10
10
|
case "document":
|
|
@@ -103,7 +103,7 @@ var DocumentCard = function (_a) {
|
|
|
103
103
|
React.createElement(IconButton, { style: "smallFilled", iconName: "allaw-icon-document" }),
|
|
104
104
|
React.createElement("span", { className: "document-count" }, documentCount))));
|
|
105
105
|
}
|
|
106
|
-
return (React.createElement("div", { className: "document-card", onClick: function () { return onCardClick && onCardClick(); }, style: { cursor: onCardClick ? "pointer" : "default" } },
|
|
106
|
+
return (React.createElement("div", { className: "document-card".concat(shadow ? " with-shadow" : ""), onClick: function () { return onCardClick && onCardClick(); }, style: { cursor: onCardClick ? "pointer" : "default" } },
|
|
107
107
|
React.createElement("div", { className: "document-card-left" },
|
|
108
108
|
React.createElement(IconButton, { style: "largeFilled", iconName: getIconName(), color: type == "payment" ? "#25BEEB" : "inherit" }),
|
|
109
109
|
React.createElement("div", { className: "document-card-info" },
|
|
@@ -36,11 +36,17 @@ declare namespace _default {
|
|
|
36
36
|
let control_5: string;
|
|
37
37
|
export { control_5 as control };
|
|
38
38
|
}
|
|
39
|
+
export namespace shadow {
|
|
40
|
+
let control_6: string;
|
|
41
|
+
export { control_6 as control };
|
|
42
|
+
}
|
|
39
43
|
}
|
|
40
44
|
export namespace args {
|
|
41
45
|
export { defaultDocuments as documents };
|
|
42
46
|
let documentCount_1: string;
|
|
43
47
|
export { documentCount_1 as documentCount };
|
|
48
|
+
let shadow_1: boolean;
|
|
49
|
+
export { shadow_1 as shadow };
|
|
44
50
|
}
|
|
45
51
|
export namespace parameters {
|
|
46
52
|
namespace backgrounds {
|
|
@@ -50,10 +50,12 @@ export default {
|
|
|
50
50
|
control: "object",
|
|
51
51
|
},
|
|
52
52
|
documentCount: { control: "text" },
|
|
53
|
+
shadow: { control: "boolean" },
|
|
53
54
|
},
|
|
54
55
|
args: {
|
|
55
56
|
documents: defaultDocuments,
|
|
56
57
|
documentCount: "1/3",
|
|
58
|
+
shadow: true,
|
|
57
59
|
},
|
|
58
60
|
parameters: {
|
|
59
61
|
backgrounds: {
|
|
@@ -69,9 +69,7 @@
|
|
|
69
69
|
align-items: center;
|
|
70
70
|
opacity: 0;
|
|
71
71
|
visibility: hidden;
|
|
72
|
-
transition:
|
|
73
|
-
opacity 0.3s ease,
|
|
74
|
-
visibility 0.3s ease;
|
|
72
|
+
transition: opacity 0.3s ease, visibility 0.3s ease;
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
.stepper-overlay.visible {
|
|
@@ -86,7 +84,7 @@
|
|
|
86
84
|
overflow-y: auto;
|
|
87
85
|
display: flex;
|
|
88
86
|
justify-content: center;
|
|
89
|
-
align-items: start;
|
|
87
|
+
align-items: flex-start;
|
|
90
88
|
font-family: "Open Sans", sans-serif;
|
|
91
89
|
font-size: 16px;
|
|
92
90
|
font-weight: 400;
|
|
@@ -94,9 +92,8 @@
|
|
|
94
92
|
letter-spacing: 0em;
|
|
95
93
|
}
|
|
96
94
|
|
|
97
|
-
|
|
98
95
|
@media (max-width: 800px) {
|
|
99
|
-
.stepper-container
|
|
96
|
+
.stepper-container {
|
|
100
97
|
height: 99dvh;
|
|
101
98
|
position: fixed;
|
|
102
99
|
bottom: 0;
|
|
@@ -105,4 +102,4 @@
|
|
|
105
102
|
border-bottom-left-radius: 0;
|
|
106
103
|
border-bottom-right-radius: 0;
|
|
107
104
|
}
|
|
108
|
-
}
|
|
105
|
+
}
|