allaw-ui 1.0.23 → 1.0.24

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.
@@ -34,13 +34,13 @@
34
34
  }
35
35
 
36
36
  /* Style round */
37
- .tab-navigation.round {
37
+ .tab-navigation.tab-navigation--round {
38
38
  padding: 4px;
39
39
  border-radius: 8px;
40
40
  gap: 8px;
41
41
  }
42
42
 
43
- .tab-navigation.round .tab-item {
43
+ .tab-navigation.tab-navigation--round .tab-item {
44
44
  display: flex;
45
45
  padding: 8px 16px;
46
46
  justify-content: center;
@@ -51,7 +51,7 @@
51
51
  border-radius: 6px;
52
52
  }
53
53
 
54
- .tab-navigation.round .tab-item.active {
54
+ .tab-navigation.tab-navigation--round .tab-item.active {
55
55
  background: var(--dark-grey, #456073);
56
56
  color: var(--pure-white, #fff);
57
57
  height: 35px;
@@ -60,12 +60,12 @@
60
60
  border: 0px;
61
61
  }
62
62
 
63
- .tab-navigation.round .tab-item.active:hover {
63
+ .tab-navigation.tab-navigation--round .tab-item.active:hover {
64
64
  background: #3c5364;
65
65
  color: var(--pure-white, #fff);
66
66
  }
67
67
 
68
- .tab-navigation.round .tab-item.inactive {
68
+ .tab-navigation.tab-navigation--round .tab-item.inactive {
69
69
  background: var(--grey-light, #f6fcfe);
70
70
  color: var(--noir, #171e25);
71
71
  height: 35px;
@@ -74,7 +74,7 @@
74
74
  border: 1px solid var(--grey-venom, #e6edf5);
75
75
  }
76
76
 
77
- .tab-navigation.round .tab-item.inactive:hover {
77
+ .tab-navigation.tab-navigation--round .tab-item.inactive:hover {
78
78
  background: var(--grey-venom, #e6edf5);
79
79
  }
80
80
 
@@ -100,6 +100,6 @@
100
100
  top: 7px;
101
101
  }
102
102
 
103
- .tab-navigation.round .tab-notification-dot {
103
+ .tab-navigation.tab-navigation--round .tab-notification-dot {
104
104
  top: 15px;
105
105
  }
@@ -3,7 +3,7 @@ import "./TabNavigation.css";
3
3
  import "../../../styles/global.css";
4
4
  var TabNavigation = function (_a) {
5
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) }, tabs.map(function (tab, index) { return (React.createElement("div", { key: index, className: "tab-item ".concat(tab.isActive ? "active" : "inactive"), onClick: function () { return onTabClick(index); } },
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
7
  React.createElement("span", { className: "tab-label" }, tab.label),
8
8
  tab.hasNotification && React.createElement("span", { className: "tab-notification-dot" }))); })));
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",