qpp-style 1.8.3-rm.0 → 1.8.3-rm.2
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/components/Tabs/Tabs.js +4 -1
- package/components/index.js +3 -1
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/components/Tabs/Tabs.js
CHANGED
|
@@ -11,7 +11,6 @@ function Tabs({ defaultSelectedId, children, onChange }) {
|
|
|
11
11
|
selectOnMove: false,
|
|
12
12
|
});
|
|
13
13
|
|
|
14
|
-
console.log(tab.activeId, tab);
|
|
15
14
|
const onTabClick = (tabHref) => {
|
|
16
15
|
// '?parameter'
|
|
17
16
|
// '?parameter=value'
|
|
@@ -27,6 +26,10 @@ function Tabs({ defaultSelectedId, children, onChange }) {
|
|
|
27
26
|
console.log({ currentUrl: currentUrl.toString() });
|
|
28
27
|
window.history.replaceState(null, '', currentUrl);
|
|
29
28
|
}
|
|
29
|
+
|
|
30
|
+
if (onChange) {
|
|
31
|
+
onChange(tab.activeId);
|
|
32
|
+
}
|
|
30
33
|
};
|
|
31
34
|
|
|
32
35
|
return (
|
package/components/index.js
CHANGED
|
@@ -9,9 +9,10 @@ import Footer from './Footer/FooterUI';
|
|
|
9
9
|
import Header from './Header/HeaderUI';
|
|
10
10
|
import Modal from './Modal';
|
|
11
11
|
import SideNav from './SideNav/UI/SideNavUI';
|
|
12
|
+
import Tabs from './Tabs/Tabs';
|
|
12
13
|
import Tab from './Tabs/Tab';
|
|
13
14
|
import TabList from './Tabs/TabList';
|
|
14
|
-
import TabPanel from './Tabs/
|
|
15
|
+
import TabPanel from './Tabs/TabPanel2';
|
|
15
16
|
import TabPanelWrapper from './Tabs/TabPanelWrapper';
|
|
16
17
|
import Infotip from './Infotip';
|
|
17
18
|
import Search from './Search';
|
|
@@ -115,6 +116,7 @@ export {
|
|
|
115
116
|
Modal,
|
|
116
117
|
Search,
|
|
117
118
|
SideNav,
|
|
119
|
+
Tabs,
|
|
118
120
|
Tab,
|
|
119
121
|
TabList,
|
|
120
122
|
TabPanel,
|