@mdtl/uikit 0.0.50 → 0.0.51
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/components/Tabs/Tabs.d.ts +2 -2
- package/dist/uikit.js +5 -5
- package/package.json +1 -1
|
@@ -7,10 +7,10 @@ interface TabProps {
|
|
|
7
7
|
endTemplate?: React.ReactNode;
|
|
8
8
|
count?: number;
|
|
9
9
|
}
|
|
10
|
-
interface
|
|
10
|
+
interface ITabsProps {
|
|
11
11
|
tabs: TabProps[];
|
|
12
12
|
activeTab: number;
|
|
13
13
|
onChange: (tab: number) => void;
|
|
14
14
|
}
|
|
15
|
-
export declare const Tabs: React.FC<
|
|
15
|
+
export declare const Tabs: React.FC<ITabsProps>;
|
|
16
16
|
export {};
|
package/dist/uikit.js
CHANGED
|
@@ -10472,15 +10472,15 @@ process.env.NODE_ENV !== "production" && (jo.propTypes = {
|
|
|
10472
10472
|
});
|
|
10473
10473
|
const m1 = ({ tabs: e, activeTab: t, onChange: n }) => {
|
|
10474
10474
|
const r = bp(), i = () => {
|
|
10475
|
-
const d = location.pathname + location.search;
|
|
10476
|
-
return
|
|
10477
|
-
}, [a, s] = ct(i()), l = (d, u) => {
|
|
10475
|
+
const d = location.pathname + location.search, u = e.find((g) => g.to === d), f = u?.id ?? t;
|
|
10476
|
+
return { foundTab: u, newActiveTabId: f };
|
|
10477
|
+
}, [a, s] = ct(i()?.newActiveTabId), l = (d, u) => {
|
|
10478
10478
|
const f = e.find((g) => g.id === u);
|
|
10479
10479
|
f && (s(u), f.to && r(f.to), n?.(u));
|
|
10480
10480
|
};
|
|
10481
10481
|
Co(() => {
|
|
10482
|
-
const d = i();
|
|
10483
|
-
a !==
|
|
10482
|
+
const { foundTab: d, newActiveTabId: u } = i();
|
|
10483
|
+
a !== u && (s(u), n?.(u)), document.title = d?.label || "JSA APS";
|
|
10484
10484
|
}, [location.pathname, location.search]);
|
|
10485
10485
|
const c = ({ label: d, startTemplate: u, endTemplate: f, count: g }) => /* @__PURE__ */ ie(
|
|
10486
10486
|
Kt,
|