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