@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 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 academyBaseUrl = process.env.NEXT_PUBLIC_ACADEMY_URL || "";
1432
- const bookingBaseUrl = process.env.NEXT_PUBLIC_BOOKING_URL || "";
1433
- const trainingBaseUrl = process.env.NEXT_PUBLIC_TRAINING_URL || "";
1434
- const achievementsBaseUrl = process.env.NEXT_PUBLIC_ACHIEVEMENTS_URL || "";
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: "bg-brand-gold text-white hover:bg-brand-gold hover:text-white focus:bg-brand-gold focus:text-white rounded-md",
1914
- today: "bg-accent text-accent-foreground rounded-md",
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",