allaw-ui 1.0.13 → 1.0.16
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/atoms/buttons/TabNavigation.css +10 -2
- package/dist/components/atoms/buttons/TabNavigation.d.ts +1 -0
- package/dist/components/atoms/buttons/TabNavigation.js +2 -2
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.d.ts +1 -1
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.js +2 -2
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.d.ts +1 -1
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.js +3 -3
- package/dist/components/molecules/loadingBox/LoadingBox.css +7 -8
- package/dist/components/molecules/loadingBox/LoadingBox.d.ts +9 -6
- package/dist/components/molecules/loadingBox/LoadingBox.js +8 -4
- package/package.json +1 -1
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
align-items: flex-start;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
.tab-navigation.small .tab-label {
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.tab-navigation.normal .tab-label {
|
|
11
|
+
font-size: 18px;
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
.tab-item {
|
|
7
15
|
display: flex;
|
|
8
16
|
padding: 0px 16px 10px 16px;
|
|
@@ -15,6 +23,7 @@
|
|
|
15
23
|
|
|
16
24
|
.tab-item.active {
|
|
17
25
|
border-bottom: 2px solid #000;
|
|
26
|
+
padding-bottom: 9px;
|
|
18
27
|
color: var(--Primary-Mid-black, var(--primary-black, #171e25));
|
|
19
28
|
}
|
|
20
29
|
|
|
@@ -25,7 +34,6 @@
|
|
|
25
34
|
|
|
26
35
|
.tab-label {
|
|
27
36
|
font-family: "Poppins", sans-serif;
|
|
28
|
-
font-size: 14px;
|
|
29
37
|
font-style: normal;
|
|
30
38
|
font-weight: 600;
|
|
31
39
|
line-height: 1;
|
|
@@ -38,6 +46,6 @@
|
|
|
38
46
|
background-color: #ef1a1a;
|
|
39
47
|
border-radius: 50%;
|
|
40
48
|
position: absolute;
|
|
41
|
-
top:
|
|
49
|
+
top: 6px;
|
|
42
50
|
right: 6px;
|
|
43
51
|
}
|
|
@@ -2,8 +2,8 @@ import React from "react";
|
|
|
2
2
|
import "./TabNavigation.css";
|
|
3
3
|
import "../../../styles/global.css";
|
|
4
4
|
var TabNavigation = function (_a) {
|
|
5
|
-
var tabs = _a.tabs, onTabClick = _a.onTabClick;
|
|
6
|
-
return (React.createElement("div", { className: "tab-navigation" }, tabs.map(function (tab, index) { return (React.createElement("div", { key: index, className: "tab-item ".concat(tab.isActive ? "active" : "inactive"), onClick: function () { return onTabClick(index); } },
|
|
5
|
+
var tabs = _a.tabs, onTabClick = _a.onTabClick, _b = _a.size, size = _b === void 0 ? "normal" : _b;
|
|
6
|
+
return (React.createElement("div", { className: "tab-navigation ".concat(size) }, tabs.map(function (tab, index) { return (React.createElement("div", { key: index, className: "tab-item ".concat(tab.isActive ? "active" : "inactive"), onClick: function () { return onTabClick(index); } },
|
|
7
7
|
React.createElement("span", { className: "tab-label" }, tab.label),
|
|
8
8
|
tab.hasNotification && React.createElement("span", { className: "tab-notification-dot" }))); })));
|
|
9
9
|
};
|
|
@@ -7,5 +7,5 @@ export type CaseLinkCardProps = {
|
|
|
7
7
|
isLoading?: boolean;
|
|
8
8
|
onCaseCardClick?: () => any;
|
|
9
9
|
};
|
|
10
|
-
declare function CaseLinkCard({ proName, caseName, createdDate, onCaseCardClick, isLoading }: CaseLinkCardProps): React.JSX.Element;
|
|
10
|
+
declare function CaseLinkCard({ proName, caseName, createdDate, onCaseCardClick, isLoading, }: CaseLinkCardProps): React.JSX.Element;
|
|
11
11
|
export default CaseLinkCard;
|
|
@@ -14,7 +14,7 @@ function CaseLinkCard(_a) {
|
|
|
14
14
|
var formatProName = function (name) {
|
|
15
15
|
return "Ma\u00EEtre ".concat(name).toUpperCase();
|
|
16
16
|
};
|
|
17
|
-
return !isLoading ? React.createElement("div", { className: "case-card-link", onClick: function () { return onCaseCardClick && onCaseCardClick(); }, style: { cursor: onCaseCardClick ? "pointer" : "default" } },
|
|
17
|
+
return !isLoading ? (React.createElement("div", { className: "case-card-link", onClick: function () { return onCaseCardClick && onCaseCardClick(); }, style: { cursor: onCaseCardClick ? "pointer" : "default" } },
|
|
18
18
|
React.createElement("div", { className: "case-card-link-folder-icon" },
|
|
19
19
|
React.createElement("i", { className: "allaw-icon-folder", style: { fontSize: "20px" } })),
|
|
20
20
|
React.createElement("div", { className: "case-card-link-right" },
|
|
@@ -25,6 +25,6 @@ function CaseLinkCard(_a) {
|
|
|
25
25
|
React.createElement("div", { className: "case-card-link-info-col" },
|
|
26
26
|
React.createElement(Paragraph, { variant: "bold", size: "default", text: caseName, maxLines: 1 }),
|
|
27
27
|
React.createElement(SmallTitle, { variant: "medium12", color: "mid-grey", text: formatProName(proName) })),
|
|
28
|
-
React.createElement("i", { className: "allaw-icon-arrow-right" })))) : React.createElement(LoadingBox, {
|
|
28
|
+
React.createElement("i", { className: "allaw-icon-arrow-right" }))))) : (React.createElement(LoadingBox, { boxHeight: "100px", boxRadius: "8px", boxWidth: "100%" }));
|
|
29
29
|
}
|
|
30
30
|
export default CaseLinkCard;
|
|
@@ -9,5 +9,5 @@ export type ClientLinkCardProps = {
|
|
|
9
9
|
company?: string;
|
|
10
10
|
onClientCardClick?: () => any;
|
|
11
11
|
};
|
|
12
|
-
declare function ClientLinkCard({ clientFirstName, isLoading, clientName, clientMail, company, onClientCardClick }: ClientLinkCardProps): React.JSX.Element;
|
|
12
|
+
declare function ClientLinkCard({ clientFirstName, isLoading, clientName, clientMail, company, onClientCardClick, }: ClientLinkCardProps): React.JSX.Element;
|
|
13
13
|
export default ClientLinkCard;
|
|
@@ -5,12 +5,12 @@ import "../../../styles/icons.css";
|
|
|
5
5
|
import LoadingBox from "../loadingBox/LoadingBox";
|
|
6
6
|
function ClientLinkCard(_a) {
|
|
7
7
|
var clientFirstName = _a.clientFirstName, isLoading = _a.isLoading, clientName = _a.clientName, clientMail = _a.clientMail, company = _a.company, onClientCardClick = _a.onClientCardClick;
|
|
8
|
-
return !isLoading ? React.createElement("div", { className: "client-link-card", style: { cursor: onClientCardClick ? "pointer" : "default" }, onClick: function () { return onClientCardClick && onClientCardClick(); } },
|
|
8
|
+
return !isLoading ? (React.createElement("div", { className: "client-link-card", style: { cursor: onClientCardClick ? "pointer" : "default" }, onClick: function () { return onClientCardClick && onClientCardClick(); } },
|
|
9
9
|
React.createElement("div", { className: "client-link-card-left" },
|
|
10
10
|
React.createElement(Paragraph, { variant: "semiBold", text: "".concat(clientFirstName, " ").concat(clientName === null || clientName === void 0 ? void 0 : clientName.toUpperCase()), size: "default", maxLines: 1, color: "noir" }),
|
|
11
11
|
React.createElement(SmallTitle, { variant: "medium12", color: "mid-grey", text: clientMail === null || clientMail === void 0 ? void 0 : clientMail.toLowerCase() })),
|
|
12
12
|
React.createElement("div", { className: "client-link-card-right" },
|
|
13
|
-
company && React.createElement("span", { className: "client-link-card-office-tag" }, company),
|
|
14
|
-
React.createElement("i", { className: "allaw-icon-arrow-right" }))) : React.createElement(LoadingBox, {
|
|
13
|
+
company && (React.createElement("span", { className: "client-link-card-office-tag" }, company)),
|
|
14
|
+
React.createElement("i", { className: "allaw-icon-arrow-right" })))) : (React.createElement(LoadingBox, { boxHeight: "91px", boxRadius: "16px", boxWidth: "100%" }));
|
|
15
15
|
}
|
|
16
16
|
export default ClientLinkCard;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
.loading-box {
|
|
2
|
-
|
|
2
|
+
animation: skeleton-loading 1s linear infinite alternate;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
@keyframes skeleton-loading {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
100% {
|
|
10
|
-
background-color: hsl(200, 20%, 95%);
|
|
11
|
-
}
|
|
6
|
+
0% {
|
|
7
|
+
background-color: hsl(200, 20%, 80%);
|
|
12
8
|
}
|
|
13
|
-
|
|
9
|
+
100% {
|
|
10
|
+
background-color: hsl(200, 20%, 95%);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./LoadingBox.css";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
boxWidth
|
|
6
|
-
boxRadius
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export interface LoadingBoxProps {
|
|
4
|
+
boxHeight?: string;
|
|
5
|
+
boxWidth?: string;
|
|
6
|
+
boxRadius?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
width?: string;
|
|
9
|
+
borderRadius?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const LoadingBox: React.FC<LoadingBoxProps>;
|
|
9
12
|
export default LoadingBox;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./LoadingBox.css";
|
|
3
|
-
function
|
|
4
|
-
var
|
|
5
|
-
return React.createElement("div", { className: "loading-box", style: {
|
|
6
|
-
|
|
3
|
+
var LoadingBox = function (_a) {
|
|
4
|
+
var boxHeight = _a.boxHeight, boxWidth = _a.boxWidth, boxRadius = _a.boxRadius, _b = _a.height, height = _b === void 0 ? "100px" : _b, _c = _a.width, width = _c === void 0 ? "100px" : _c, _d = _a.borderRadius, borderRadius = _d === void 0 ? "8px" : _d;
|
|
5
|
+
return (React.createElement("div", { className: "loading-box", style: {
|
|
6
|
+
height: boxHeight || height,
|
|
7
|
+
width: boxWidth || width,
|
|
8
|
+
borderRadius: boxRadius || borderRadius,
|
|
9
|
+
} }));
|
|
10
|
+
};
|
|
7
11
|
export default LoadingBox;
|