@marcwelti/mw-ui 0.1.12 → 0.1.13
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 +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -273,9 +273,13 @@ interface NavigationBarProps {
|
|
|
273
273
|
onLoginClick?: () => void;
|
|
274
274
|
/** URL for the booking CTA in the logged-out navbar. */
|
|
275
275
|
bookingUrl?: string;
|
|
276
|
+
/** Base URLs for subdomains */
|
|
277
|
+
academyUrl?: string;
|
|
278
|
+
trainingUrl?: string;
|
|
279
|
+
achievementsUrl?: string;
|
|
276
280
|
className?: string;
|
|
277
281
|
}
|
|
278
|
-
declare function NavigationBar({ currentApp, user, loading, onLogout, onLanguageChange, currentLanguage, onLoginClick, bookingUrl, className, }: NavigationBarProps): react_jsx_runtime.JSX.Element;
|
|
282
|
+
declare function NavigationBar({ currentApp, user, loading, onLogout, onLanguageChange, currentLanguage, onLoginClick, bookingUrl, academyUrl, trainingUrl, achievementsUrl, className, }: NavigationBarProps): react_jsx_runtime.JSX.Element;
|
|
279
283
|
|
|
280
284
|
declare const MenubarMenu: {
|
|
281
285
|
(props: MenubarPrimitive.MenubarMenuProps & {
|
package/dist/index.d.ts
CHANGED
|
@@ -273,9 +273,13 @@ interface NavigationBarProps {
|
|
|
273
273
|
onLoginClick?: () => void;
|
|
274
274
|
/** URL for the booking CTA in the logged-out navbar. */
|
|
275
275
|
bookingUrl?: string;
|
|
276
|
+
/** Base URLs for subdomains */
|
|
277
|
+
academyUrl?: string;
|
|
278
|
+
trainingUrl?: string;
|
|
279
|
+
achievementsUrl?: string;
|
|
276
280
|
className?: string;
|
|
277
281
|
}
|
|
278
|
-
declare function NavigationBar({ currentApp, user, loading, onLogout, onLanguageChange, currentLanguage, onLoginClick, bookingUrl, className, }: NavigationBarProps): react_jsx_runtime.JSX.Element;
|
|
282
|
+
declare function NavigationBar({ currentApp, user, loading, onLogout, onLanguageChange, currentLanguage, onLoginClick, bookingUrl, academyUrl, trainingUrl, achievementsUrl, className, }: NavigationBarProps): react_jsx_runtime.JSX.Element;
|
|
279
283
|
|
|
280
284
|
declare const MenubarMenu: {
|
|
281
285
|
(props: MenubarPrimitive.MenubarMenuProps & {
|
package/dist/index.js
CHANGED
|
@@ -1472,7 +1472,10 @@ function NavigationBar({
|
|
|
1472
1472
|
onLanguageChange,
|
|
1473
1473
|
currentLanguage = "DE",
|
|
1474
1474
|
onLoginClick,
|
|
1475
|
-
bookingUrl
|
|
1475
|
+
bookingUrl,
|
|
1476
|
+
academyUrl,
|
|
1477
|
+
trainingUrl,
|
|
1478
|
+
achievementsUrl,
|
|
1476
1479
|
className
|
|
1477
1480
|
}) {
|
|
1478
1481
|
const { theme, setTheme, systemTheme } = nextThemes.useTheme();
|
|
@@ -1483,11 +1486,10 @@ function NavigationBar({
|
|
|
1483
1486
|
}, []);
|
|
1484
1487
|
const currentTheme = theme === "system" ? systemTheme : theme;
|
|
1485
1488
|
const logoSrc = currentTheme === "dark" ? "/logo.webp" : "/logo_dark.webp";
|
|
1486
|
-
const
|
|
1487
|
-
const
|
|
1488
|
-
const
|
|
1489
|
-
const
|
|
1490
|
-
const achievementsBaseUrl = isProduction ? "https://achievements.marc-welti.ch" : "";
|
|
1489
|
+
const academyBaseUrl = academyUrl || "";
|
|
1490
|
+
const bookingBaseUrl = bookingUrl || "";
|
|
1491
|
+
const trainingBaseUrl = trainingUrl || "";
|
|
1492
|
+
const achievementsBaseUrl = achievementsUrl || "";
|
|
1491
1493
|
const navItems = [
|
|
1492
1494
|
{
|
|
1493
1495
|
key: "booking",
|