@marcwelti/mw-ui 0.1.5 → 0.1.6
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.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -6
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1428,10 +1428,11 @@ function NavigationBar({
|
|
|
1428
1428
|
}, []);
|
|
1429
1429
|
const currentTheme = theme === "system" ? systemTheme : theme;
|
|
1430
1430
|
const logoSrc = currentTheme === "dark" ? "/logo.webp" : "/logo_dark.webp";
|
|
1431
|
-
const
|
|
1432
|
-
const
|
|
1433
|
-
const
|
|
1434
|
-
const
|
|
1431
|
+
const isProduction = typeof window !== "undefined" && window.location.hostname.includes("your-domain.ch");
|
|
1432
|
+
const academyBaseUrl = isProduction ? "https://academy.your-domain.ch" : "";
|
|
1433
|
+
const bookingBaseUrl = isProduction ? "https://booking.your-domain.ch" : "";
|
|
1434
|
+
const trainingBaseUrl = isProduction ? "https://training.your-domain.ch" : "";
|
|
1435
|
+
const achievementsBaseUrl = isProduction ? "https://achievements.your-domain.ch" : "";
|
|
1435
1436
|
const navItems = [
|
|
1436
1437
|
{
|
|
1437
1438
|
key: "booking",
|
|
@@ -1910,8 +1911,8 @@ function Calendar({
|
|
|
1910
1911
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
1911
1912
|
"aria-selected:opacity-100"
|
|
1912
1913
|
),
|
|
1913
|
-
selected: "
|
|
1914
|
-
today: "
|
|
1914
|
+
selected: "[&]:ring-2 [&]:ring-brand-gold [&]:ring-inset [&]:bg-transparent [&]:text-foreground rounded-md",
|
|
1915
|
+
today: "[&]:ring-1 [&]:ring-brand-gold/40 [&]:ring-inset [&]:bg-transparent rounded-md",
|
|
1915
1916
|
outside: "text-muted-foreground opacity-50",
|
|
1916
1917
|
disabled: "text-muted-foreground opacity-50 cursor-not-allowed",
|
|
1917
1918
|
hidden: "invisible",
|