allaw-ui 4.6.7 → 4.6.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.
@@ -6,6 +6,10 @@ var TabNavigation = function (_a) {
6
6
  var navRef = useRef(null);
7
7
  var _d = useState(null), activeTabElement = _d[0], setActiveTabElement = _d[1];
8
8
  var _e = useState(tabs.map(function (tab) { return tab.label; })), currentLabels = _e[0], setCurrentLabels = _e[1];
9
+ // Update currentLabels when tabs prop changes
10
+ useEffect(function () {
11
+ setCurrentLabels(tabs.map(function (tab) { return tab.label; }));
12
+ }, [tabs]);
9
13
  // Scroll to active tab when it changes
10
14
  useEffect(function () {
11
15
  if (size === "small" && navRef.current && activeTabElement) {
@@ -1,5 +1,3 @@
1
- @import "../../../styles/colors.css";
2
-
3
1
  .noElement {
4
2
  display: flex;
5
3
  justify-content: center;
@@ -8,7 +6,7 @@
8
6
  padding: 1rem;
9
7
  border: 1px solid #e6edf5;
10
8
  border-radius: 0.5rem;
11
- background: var(--Primary-Blanc, #fff);
9
+ background: #ffffff;
12
10
  min-height: 120px;
13
11
  width: 100%;
14
12
  box-sizing: border-box;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "4.6.7",
3
+ "version": "4.6.9",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",