allaw-ui 5.3.7 → 5.3.9
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.
|
@@ -119,6 +119,21 @@
|
|
|
119
119
|
align-self: flex-start;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
.file-card-share-tag {
|
|
123
|
+
display: inline-flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
padding: 6px 12px;
|
|
126
|
+
border-radius: 20px;
|
|
127
|
+
background: rgba(37, 190, 235, 0.1);
|
|
128
|
+
border: 1px solid rgba(37, 190, 235, 0.2);
|
|
129
|
+
color: var(--bleu-allaw, #25beeb);
|
|
130
|
+
font-family: "Open Sans", sans-serif;
|
|
131
|
+
font-size: 12px;
|
|
132
|
+
font-weight: 600;
|
|
133
|
+
line-height: 1;
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
}
|
|
136
|
+
|
|
122
137
|
.file-card-icon-eye {
|
|
123
138
|
color: var(--Primary-Mid-black, var(--mid-grey, #728ea7));
|
|
124
139
|
}
|
|
@@ -151,6 +166,24 @@
|
|
|
151
166
|
border: 2px dashed var(--bleu-allaw, #25beeb);
|
|
152
167
|
}
|
|
153
168
|
|
|
169
|
+
.file-card.asked.no-details {
|
|
170
|
+
align-items: center;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.file-card.asked.no-details .file-card-left {
|
|
174
|
+
align-items: center;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.file-card.asked.no-details .file-card-info {
|
|
178
|
+
align-items: flex-start;
|
|
179
|
+
gap: 8px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.file-card.asked.no-details .file-card-right {
|
|
183
|
+
align-items: center;
|
|
184
|
+
justify-content: center;
|
|
185
|
+
}
|
|
186
|
+
|
|
154
187
|
.file-card-details {
|
|
155
188
|
color: var(--Primary-Mid-black, var(--primary-black, #171e25));
|
|
156
189
|
font-family: "Open Sans", sans-serif;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./FileCard.css";
|
|
3
3
|
import IconButton from "../../atoms/buttons/IconButton";
|
|
4
|
-
import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
|
|
5
4
|
var FileCard = function (props) {
|
|
6
5
|
var type = props.type, onCardClick = props.onCardClick, _a = props.shadow, shadow = _a === void 0 ? true : _a;
|
|
7
6
|
var formatFileSize = function (size) {
|
|
@@ -51,7 +50,8 @@ var FileCard = function (props) {
|
|
|
51
50
|
React.createElement("span", { className: "file-card-separator" }, "\u2022"),
|
|
52
51
|
React.createElement("span", { className: "file-card-size" }, formatFileSize(size))))),
|
|
53
52
|
shareWithPart && (React.createElement("div", { className: "file-card-right" },
|
|
54
|
-
React.createElement(
|
|
53
|
+
React.createElement("div", { className: "file-card-share-tag" },
|
|
54
|
+
React.createElement("span", null, "Partag\u00E9 avec le client"))))));
|
|
55
55
|
}
|
|
56
56
|
// Received type
|
|
57
57
|
if (type === "Received") {
|
|
@@ -81,16 +81,14 @@ var FileCard = function (props) {
|
|
|
81
81
|
// Asked type
|
|
82
82
|
if (type === "Asked") {
|
|
83
83
|
var _id = props.id, name_2 = props.name, details = props.details;
|
|
84
|
-
|
|
84
|
+
var hasDetails = details && details.trim().length > 0;
|
|
85
|
+
return (React.createElement("div", { className: "file-card".concat(shadow ? " with-shadow" : "", " asked").concat(!hasDetails ? " no-details" : ""), onClick: function () { return onCardClick && onCardClick(); }, style: { cursor: onCardClick ? "pointer" : "default" } },
|
|
85
86
|
React.createElement("div", { className: "file-card-left" },
|
|
86
87
|
React.createElement(IconButton, { style: "largeFilled", iconName: "allaw-icon-clock", color: "inherit" }),
|
|
87
88
|
React.createElement("div", { className: "file-card-info" },
|
|
88
89
|
React.createElement("span", { className: "file-card-type file-card-type-asked" }, "DEMAND\u00C9"),
|
|
89
90
|
React.createElement("p", { className: "file-card-title" }, name_2),
|
|
90
|
-
React.createElement("p", { className: "file-card-details" }, details)))
|
|
91
|
-
React.createElement("div", { className: "file-card-right" },
|
|
92
|
-
React.createElement("div", { className: "file-card-icon-eye" },
|
|
93
|
-
React.createElement("i", { className: "allaw-icon-eye" })))));
|
|
91
|
+
hasDetails && React.createElement("p", { className: "file-card-details" }, details)))));
|
|
94
92
|
}
|
|
95
93
|
return null;
|
|
96
94
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "allaw-ui",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.9",
|
|
4
4
|
"description": "Composants UI pour l'application Allaw",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
45
45
|
"@dnd-kit/sortable": "^10.0.0",
|
|
46
46
|
"date-fns": "^4.1.0",
|
|
47
|
-
"next": "14.2.5",
|
|
48
47
|
"react": "^17.0.0 || ^18.0.0",
|
|
49
48
|
"react-datepicker": "^7.5.0",
|
|
50
49
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
@@ -71,7 +70,7 @@
|
|
|
71
70
|
"cloc": "^2.0.0-cloc",
|
|
72
71
|
"css-loader": "^7.1.2",
|
|
73
72
|
"eslint": "^8",
|
|
74
|
-
"eslint-config-next": "
|
|
73
|
+
"eslint-config-next": "15.4.8",
|
|
75
74
|
"eslint-plugin-storybook": "^0.11.1",
|
|
76
75
|
"storybook": "^8.4.6",
|
|
77
76
|
"storybook-css-modules": "^1.0.8",
|