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.
@@ -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 (
@@ -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/TabPanel';
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,