allaw-ui 1.0.77 → 1.0.79
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 +8 -61
- package/dist/components/atoms/buttons/TabNavigation.d.ts +0 -1
- package/dist/components/atoms/buttons/TabNavigation.js +4 -4
- package/dist/components/atoms/buttons/TabNavigationRound.css +66 -0
- package/dist/components/atoms/buttons/TabNavigationRound.d.ts +14 -0
- package/dist/components/atoms/buttons/TabNavigationRound.js +10 -0
- package/dist/components/atoms/buttons/index.d.ts +2 -0
- package/dist/components/atoms/buttons/index.js +1 -0
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.css +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
.tab-navigation
|
|
1
|
+
.allaw-tab-navigation {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: flex-start;
|
|
4
4
|
gap: 8px;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.tab-navigation
|
|
7
|
+
.allaw-tab-navigation.small .allaw-tab-label {
|
|
8
8
|
font-size: 14px;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.tab-navigation
|
|
11
|
+
.allaw-tab-navigation.normal .allaw-tab-label {
|
|
12
12
|
font-size: 18px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
.tab-navigation-d:not(.tab-navigation--round) .tab-item-d {
|
|
15
|
+
.allaw-tab-navigation .allaw-tab-item {
|
|
17
16
|
display: flex;
|
|
18
17
|
padding: 0px 16px 10px 16px;
|
|
19
18
|
justify-content: center;
|
|
@@ -23,63 +22,19 @@
|
|
|
23
22
|
position: relative;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
.
|
|
25
|
+
.allaw-tab-navigation .allaw-tab-item.active {
|
|
27
26
|
border-bottom: 3px solid #000;
|
|
28
27
|
padding-bottom: 10px;
|
|
29
28
|
color: var(--Primary-Mid-black, var(--primary-black, #171e25));
|
|
30
29
|
}
|
|
31
30
|
|
|
32
|
-
.
|
|
31
|
+
.allaw-tab-navigation .allaw-tab-item.inactive {
|
|
33
32
|
border-bottom: 3px solid var(--grey-venom, #e6edf5);
|
|
34
33
|
color: var(--Tags-Mid-grey, var(--light-grey, #728ea7));
|
|
35
34
|
}
|
|
36
35
|
|
|
37
|
-
/* Round variant styles */
|
|
38
|
-
.tab-navigation-d.tab-navigation--round .tab-item-d {
|
|
39
|
-
display: flex;
|
|
40
|
-
height: 35px;
|
|
41
|
-
padding: 12px 24px;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
align-items: center;
|
|
44
|
-
gap: 8px;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
position: relative;
|
|
47
|
-
border-radius: 18px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* Round variant - inactive state - Augmentation de la spécificité */
|
|
51
|
-
.tab-navigation-d.tab-navigation--round .tab-item-d.inactive,
|
|
52
|
-
.tab-navigation-d.small.tab-navigation--round .tab-item-d.inactive,
|
|
53
|
-
.tab-navigation-d.normal.tab-navigation--round .tab-item-d.inactive {
|
|
54
|
-
background-color: var(--grey-light, #f6fcfe) !important;
|
|
55
|
-
color: var(--noir, #171e25) !important;
|
|
56
|
-
border: 1px solid var(--grey-venom, #e6edf5) !important;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* Round variant - active state - Augmentation de la spécificité */
|
|
60
|
-
.tab-navigation-d.tab-navigation--round .tab-item-d.active,
|
|
61
|
-
.tab-navigation-d.small.tab-navigation--round .tab-item-d.active,
|
|
62
|
-
.tab-navigation-d.normal.tab-navigation--round .tab-item-d.active {
|
|
63
|
-
background-color: var(--dark-grey, #456073) !important;
|
|
64
|
-
color: var(--pure-white, #fff) !important;
|
|
65
|
-
border: 1px solid var(--dark-grey, #456073) !important;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* Hover states - Augmentation de la spécificité */
|
|
69
|
-
.tab-navigation-d.tab-navigation--round .tab-item-d.inactive:hover,
|
|
70
|
-
.tab-navigation-d.small.tab-navigation--round .tab-item-d.inactive:hover,
|
|
71
|
-
.tab-navigation-d.normal.tab-navigation--round .tab-item-d.inactive:hover {
|
|
72
|
-
background-color: var(--grey-venom, #e6edf5) !important;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.tab-navigation-d.tab-navigation--round .tab-item-d.active:hover,
|
|
76
|
-
.tab-navigation-d.small.tab-navigation--round .tab-item-d.active:hover,
|
|
77
|
-
.tab-navigation-d.normal.tab-navigation--round .tab-item-d.active:hover {
|
|
78
|
-
background-color: #3c5364 !important;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
36
|
/* Label styles */
|
|
82
|
-
.tab-label
|
|
37
|
+
.allaw-tab-label {
|
|
83
38
|
font-family: "Open Sans", sans-serif;
|
|
84
39
|
font-style: normal;
|
|
85
40
|
font-weight: 500;
|
|
@@ -88,20 +43,12 @@
|
|
|
88
43
|
}
|
|
89
44
|
|
|
90
45
|
/* Notification styles */
|
|
91
|
-
.tab-notification-dot {
|
|
46
|
+
.allaw-tab-notification-dot {
|
|
92
47
|
width: 5px;
|
|
93
48
|
height: 5px;
|
|
94
49
|
background-color: #ef1a1a;
|
|
95
50
|
border-radius: 50%;
|
|
96
51
|
position: absolute;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.tab-navigation-d:not(.tab-navigation--round) .tab-notification-dot {
|
|
100
52
|
top: 7px;
|
|
101
53
|
right: 10px;
|
|
102
54
|
}
|
|
103
|
-
|
|
104
|
-
.tab-navigation-d.tab-navigation--round .tab-notification-dot {
|
|
105
|
-
top: 15px;
|
|
106
|
-
right: 10px;
|
|
107
|
-
}
|
|
@@ -2,9 +2,9 @@ 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, _b = _a.size, size = _b === void 0 ? "normal" : _b
|
|
6
|
-
return (React.createElement("div", { className: "tab-navigation
|
|
7
|
-
React.createElement("span", { className: "tab-label
|
|
8
|
-
tab.hasNotification && React.createElement("span", { className: "tab-notification-dot" }))); })));
|
|
5
|
+
var tabs = _a.tabs, onTabClick = _a.onTabClick, _b = _a.size, size = _b === void 0 ? "normal" : _b;
|
|
6
|
+
return (React.createElement("div", { className: "allaw-tab-navigation ".concat(size) }, tabs.map(function (tab, index) { return (React.createElement("div", { key: index, className: "allaw-tab-item ".concat(tab.isActive ? "active" : "inactive"), onClick: function () { return onTabClick(index); } },
|
|
7
|
+
React.createElement("span", { className: "allaw-tab-label" }, tab.label),
|
|
8
|
+
tab.hasNotification && (React.createElement("span", { className: "allaw-tab-notification-dot" })))); })));
|
|
9
9
|
};
|
|
10
10
|
export default TabNavigation;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.allaw-tab-navigation-round {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.allaw-tab-navigation-round.small .allaw-tab-label {
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.allaw-tab-navigation-round.normal .allaw-tab-label {
|
|
12
|
+
font-size: 18px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.allaw-tab-navigation-round .allaw-tab-item {
|
|
16
|
+
display: flex;
|
|
17
|
+
height: 35px;
|
|
18
|
+
padding: 12px 24px;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 8px;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
position: relative;
|
|
24
|
+
border-radius: 18px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.allaw-tab-navigation-round .allaw-tab-item.inactive {
|
|
28
|
+
background-color: var(--grey-light, #f6fcfe);
|
|
29
|
+
color: var(--noir, #171e25);
|
|
30
|
+
border: 1px solid var(--grey-venom, #e6edf5);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.allaw-tab-navigation-round .allaw-tab-item.active {
|
|
34
|
+
background-color: var(--dark-grey, #456073);
|
|
35
|
+
color: var(--pure-white, #fff);
|
|
36
|
+
border: 1px solid var(--dark-grey, #456073);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Hover states */
|
|
40
|
+
.allaw-tab-navigation-round .allaw-tab-item.inactive:hover {
|
|
41
|
+
background-color: var(--grey-venom, #e6edf5);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.allaw-tab-navigation-round .allaw-tab-item.active:hover {
|
|
45
|
+
background-color: #3c5364;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Label styles */
|
|
49
|
+
.allaw-tab-label {
|
|
50
|
+
font-family: "Open Sans", sans-serif;
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-weight: 500;
|
|
53
|
+
line-height: 1;
|
|
54
|
+
text-align: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Notification styles */
|
|
58
|
+
.allaw-tab-notification-dot {
|
|
59
|
+
width: 5px;
|
|
60
|
+
height: 5px;
|
|
61
|
+
background-color: #ef1a1a;
|
|
62
|
+
border-radius: 50%;
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 15px;
|
|
65
|
+
right: 10px;
|
|
66
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./TabNavigationRound.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
export interface TabNavigationRoundProps {
|
|
5
|
+
tabs: {
|
|
6
|
+
label: string;
|
|
7
|
+
isActive: boolean;
|
|
8
|
+
hasNotification: boolean;
|
|
9
|
+
}[];
|
|
10
|
+
onTabClick: (index: number) => void;
|
|
11
|
+
size?: "small" | "normal";
|
|
12
|
+
}
|
|
13
|
+
declare const TabNavigationRound: React.FC<TabNavigationRoundProps>;
|
|
14
|
+
export default TabNavigationRound;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./TabNavigationRound.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
var TabNavigationRound = function (_a) {
|
|
5
|
+
var tabs = _a.tabs, onTabClick = _a.onTabClick, _b = _a.size, size = _b === void 0 ? "normal" : _b;
|
|
6
|
+
return (React.createElement("div", { className: "allaw-tab-navigation-round ".concat(size) }, tabs.map(function (tab, index) { return (React.createElement("div", { key: index, className: "allaw-tab-item ".concat(tab.isActive ? "active" : "inactive"), onClick: function () { return onTabClick(index); } },
|
|
7
|
+
React.createElement("span", { className: "allaw-tab-label" }, tab.label),
|
|
8
|
+
tab.hasNotification && (React.createElement("span", { className: "allaw-tab-notification-dot" })))); })));
|
|
9
|
+
};
|
|
10
|
+
export default TabNavigationRound;
|
|
@@ -7,6 +7,7 @@ export { default as PendingDocuments } from "./PendingDocuments";
|
|
|
7
7
|
export { default as PrimaryButton } from "./PrimaryButton";
|
|
8
8
|
export { default as SecondaryButton } from "./SecondaryButton";
|
|
9
9
|
export { default as TabNavigation } from "./TabNavigation";
|
|
10
|
+
export { default as TabNavigationRound } from "./TabNavigationRound";
|
|
10
11
|
export { default as TertiaryButton } from "./TertiaryButton";
|
|
11
12
|
export { default as OAuthProviderButton } from "./OAuthProviderButton";
|
|
12
13
|
export type { FavoriteToggleProps } from "./FavoriteToggle";
|
|
@@ -17,6 +18,7 @@ export type { PendingDocumentsProps } from "./PendingDocuments";
|
|
|
17
18
|
export type { PrimaryButtonProps } from "./PrimaryButton";
|
|
18
19
|
export type { SecondaryButtonProps } from "./SecondaryButton";
|
|
19
20
|
export type { TabNavigationProps } from "./TabNavigation";
|
|
21
|
+
export type { TabNavigationRoundProps } from "./TabNavigationRound";
|
|
20
22
|
export type { TertiaryButtonProps } from "./TertiaryButton";
|
|
21
23
|
export type { OAuthProviderButtonProps } from "./OAuthProviderButton";
|
|
22
24
|
export type { FilterButtonPrimaryProps } from "./FilterButtonPrimary";
|
|
@@ -7,5 +7,6 @@ export { default as PendingDocuments } from "./PendingDocuments";
|
|
|
7
7
|
export { default as PrimaryButton } from "./PrimaryButton";
|
|
8
8
|
export { default as SecondaryButton } from "./SecondaryButton";
|
|
9
9
|
export { default as TabNavigation } from "./TabNavigation";
|
|
10
|
+
export { default as TabNavigationRound } from "./TabNavigationRound";
|
|
10
11
|
export { default as TertiaryButton } from "./TertiaryButton";
|
|
11
12
|
export { default as OAuthProviderButton } from "./OAuthProviderButton";
|
|
@@ -11,11 +11,16 @@
|
|
|
11
11
|
padding: 16px;
|
|
12
12
|
align-items: center;
|
|
13
13
|
gap: 16px;
|
|
14
|
+
|
|
14
15
|
transition:
|
|
15
16
|
border-color 0.2s ease,
|
|
16
17
|
border-width 0.2s ease;
|
|
17
18
|
}
|
|
18
19
|
|
|
20
|
+
.case-card-link:hover {
|
|
21
|
+
background-color: var(--active-grey, #e9eef5);
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
.case-card-link-right {
|
|
20
25
|
display: flex;
|
|
21
26
|
width: 100%;
|
|
@@ -23,6 +28,7 @@
|
|
|
23
28
|
justify-content: flex-end;
|
|
24
29
|
align-items: flex-start;
|
|
25
30
|
flex: 1 0 0;
|
|
31
|
+
cursor: pointer;
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
.case-card-no-folder-wrapper {
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { default as PendingDocuments } from "./components/atoms/buttons/PendingD
|
|
|
7
7
|
export { default as PrimaryButton } from "./components/atoms/buttons/PrimaryButton";
|
|
8
8
|
export { default as SecondaryButton } from "./components/atoms/buttons/SecondaryButton";
|
|
9
9
|
export { default as TabNavigation } from "./components/atoms/buttons/TabNavigation";
|
|
10
|
+
export { default as TabNavigationRound } from "./components/atoms/buttons/TabNavigationRound";
|
|
10
11
|
export { default as TertiaryButton } from "./components/atoms/buttons/TertiaryButton";
|
|
11
12
|
export { default as OAuthProviderButton } from "./components/atoms/buttons/OAuthProviderButton";
|
|
12
13
|
export { default as Checkbox } from "./components/atoms/checkboxes/Checkbox";
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export { default as PendingDocuments } from "./components/atoms/buttons/PendingD
|
|
|
9
9
|
export { default as PrimaryButton } from "./components/atoms/buttons/PrimaryButton";
|
|
10
10
|
export { default as SecondaryButton } from "./components/atoms/buttons/SecondaryButton";
|
|
11
11
|
export { default as TabNavigation } from "./components/atoms/buttons/TabNavigation";
|
|
12
|
+
export { default as TabNavigationRound } from "./components/atoms/buttons/TabNavigationRound";
|
|
12
13
|
export { default as TertiaryButton } from "./components/atoms/buttons/TertiaryButton";
|
|
13
14
|
export { default as OAuthProviderButton } from "./components/atoms/buttons/OAuthProviderButton";
|
|
14
15
|
// Checkboxes
|