react-better-html 1.1.83 → 1.1.84
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/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6603,12 +6603,19 @@ var TabsComponent = forwardRef12(function Tabs({ tabs, name, accentColor, style
|
|
|
6603
6603
|
block: "nearest"
|
|
6604
6604
|
});
|
|
6605
6605
|
}, [selectedTab]);
|
|
6606
|
+
useEffect9(() => {
|
|
6607
|
+
return () => {
|
|
6608
|
+
componentsState.tabs.setTabGroups(
|
|
6609
|
+
(oldValue) => oldValue.filter((item) => item.name !== (name ?? defaultTabName))
|
|
6610
|
+
);
|
|
6611
|
+
};
|
|
6612
|
+
}, []);
|
|
6606
6613
|
useImperativeHandle2(
|
|
6607
6614
|
ref,
|
|
6608
6615
|
() => {
|
|
6609
6616
|
return {
|
|
6610
6617
|
selectedTab,
|
|
6611
|
-
|
|
6618
|
+
selectTab: onClickTab
|
|
6612
6619
|
};
|
|
6613
6620
|
},
|
|
6614
6621
|
[selectedTab, onClickTab]
|
|
@@ -6679,7 +6686,7 @@ var TabsComponent = forwardRef12(function Tabs({ tabs, name, accentColor, style
|
|
|
6679
6686
|
}
|
|
6680
6687
|
)
|
|
6681
6688
|
] }),
|
|
6682
|
-
/* @__PURE__ */ jsx21(Div_default, { width: "100%", children })
|
|
6689
|
+
children && /* @__PURE__ */ jsx21(Div_default, { width: "100%", children })
|
|
6683
6690
|
] });
|
|
6684
6691
|
});
|
|
6685
6692
|
TabsComponent.content = function Content({ tab, tabWithDot, tabsGroupName, isInitialTab, children }) {
|