@marcwelti/mw-ui 0.1.3 → 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 +72 -61
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +73 -62
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1428,100 +1428,111 @@ 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 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" : "";
|
|
1431
1436
|
const navItems = [
|
|
1432
1437
|
{
|
|
1433
1438
|
key: "booking",
|
|
1434
1439
|
label: "Booking",
|
|
1435
1440
|
items: [
|
|
1436
1441
|
{
|
|
1437
|
-
label: "
|
|
1438
|
-
description: "
|
|
1439
|
-
href:
|
|
1440
|
-
icon: lucideReact.
|
|
1442
|
+
label: "Book a call",
|
|
1443
|
+
description: "Schedule a phone consultation",
|
|
1444
|
+
href: `${bookingBaseUrl}/call`,
|
|
1445
|
+
icon: lucideReact.Phone
|
|
1441
1446
|
},
|
|
1442
1447
|
{
|
|
1443
|
-
label: "
|
|
1444
|
-
description: "
|
|
1445
|
-
href:
|
|
1446
|
-
icon: lucideReact.
|
|
1448
|
+
label: "Book a private lesson",
|
|
1449
|
+
description: "One-on-one training session",
|
|
1450
|
+
href: `${bookingBaseUrl}/private-lesson`,
|
|
1451
|
+
icon: lucideReact.UserRound
|
|
1447
1452
|
},
|
|
1448
1453
|
{
|
|
1449
|
-
label: "
|
|
1450
|
-
description: "
|
|
1451
|
-
href:
|
|
1452
|
-
icon: lucideReact.
|
|
1454
|
+
label: "Book a zoom call",
|
|
1455
|
+
description: "Virtual video consultation",
|
|
1456
|
+
href: `${bookingBaseUrl}/zoom`,
|
|
1457
|
+
icon: lucideReact.Video
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
label: "Book a group lesson",
|
|
1461
|
+
description: "Join a group training session",
|
|
1462
|
+
href: `${bookingBaseUrl}/group-lesson`,
|
|
1463
|
+
icon: lucideReact.Users
|
|
1453
1464
|
}
|
|
1454
1465
|
]
|
|
1455
1466
|
},
|
|
1456
1467
|
{
|
|
1457
|
-
key: "
|
|
1458
|
-
label: "
|
|
1468
|
+
key: "academy",
|
|
1469
|
+
label: "Academy",
|
|
1459
1470
|
items: [
|
|
1460
1471
|
{
|
|
1461
|
-
label: "
|
|
1462
|
-
description: "
|
|
1463
|
-
href:
|
|
1464
|
-
icon: lucideReact.
|
|
1472
|
+
label: "Academy Information",
|
|
1473
|
+
description: "Learn about our online dog training courses",
|
|
1474
|
+
href: `${academyBaseUrl}/`,
|
|
1475
|
+
icon: lucideReact.GraduationCap
|
|
1465
1476
|
},
|
|
1466
1477
|
{
|
|
1467
|
-
label: "
|
|
1468
|
-
description: "
|
|
1469
|
-
href:
|
|
1470
|
-
icon: lucideReact.
|
|
1478
|
+
label: "Courses",
|
|
1479
|
+
description: "Browse and access available courses",
|
|
1480
|
+
href: `${academyBaseUrl}/courses`,
|
|
1481
|
+
icon: lucideReact.BookOpen
|
|
1471
1482
|
},
|
|
1472
1483
|
{
|
|
1473
|
-
label: "
|
|
1474
|
-
description: "
|
|
1475
|
-
href:
|
|
1476
|
-
icon: lucideReact.
|
|
1484
|
+
label: "FAQ",
|
|
1485
|
+
description: "Frequently asked questions",
|
|
1486
|
+
href: `${academyBaseUrl}/faq`,
|
|
1487
|
+
icon: lucideReact.HelpCircle
|
|
1477
1488
|
}
|
|
1478
1489
|
]
|
|
1479
1490
|
},
|
|
1480
1491
|
{
|
|
1481
|
-
key: "
|
|
1482
|
-
label: "
|
|
1492
|
+
key: "training",
|
|
1493
|
+
label: "Training",
|
|
1483
1494
|
items: [
|
|
1484
1495
|
{
|
|
1485
|
-
label: "
|
|
1486
|
-
description: "View
|
|
1487
|
-
href:
|
|
1488
|
-
icon: lucideReact.
|
|
1496
|
+
label: "Dog Commands",
|
|
1497
|
+
description: "View and manage trained commands",
|
|
1498
|
+
href: `${trainingBaseUrl}/commands`,
|
|
1499
|
+
icon: lucideReact.Dog
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
label: "Dog Progress",
|
|
1503
|
+
description: "Track your dog's training progress",
|
|
1504
|
+
href: `${trainingBaseUrl}/progress`,
|
|
1505
|
+
icon: lucideReact.TrendingUp
|
|
1489
1506
|
},
|
|
1490
1507
|
{
|
|
1491
|
-
label: "
|
|
1492
|
-
description: "
|
|
1493
|
-
href:
|
|
1494
|
-
icon: lucideReact.
|
|
1508
|
+
label: "System Error",
|
|
1509
|
+
description: "Report a system issue",
|
|
1510
|
+
href: `${trainingBaseUrl}/error`,
|
|
1511
|
+
icon: lucideReact.AlertTriangle
|
|
1495
1512
|
},
|
|
1496
1513
|
{
|
|
1497
|
-
label: "
|
|
1498
|
-
description: "
|
|
1499
|
-
href:
|
|
1500
|
-
icon: lucideReact.
|
|
1514
|
+
label: "Submit a Question",
|
|
1515
|
+
description: "Ask a training question",
|
|
1516
|
+
href: `${trainingBaseUrl}/question`,
|
|
1517
|
+
icon: lucideReact.MessageCircleQuestion
|
|
1501
1518
|
}
|
|
1502
1519
|
]
|
|
1503
1520
|
},
|
|
1504
1521
|
{
|
|
1505
|
-
key: "
|
|
1506
|
-
label: "
|
|
1522
|
+
key: "achievements",
|
|
1523
|
+
label: "Achievements",
|
|
1507
1524
|
items: [
|
|
1508
1525
|
{
|
|
1509
|
-
label: "
|
|
1510
|
-
description: "
|
|
1511
|
-
href:
|
|
1512
|
-
icon: lucideReact.
|
|
1513
|
-
},
|
|
1514
|
-
{
|
|
1515
|
-
label: "Learning Paths",
|
|
1516
|
-
description: "Follow structured learning journeys",
|
|
1517
|
-
href: "#",
|
|
1518
|
-
icon: lucideReact.BookOpen
|
|
1526
|
+
label: "Journey",
|
|
1527
|
+
description: "View your training journey and milestones",
|
|
1528
|
+
href: `${achievementsBaseUrl}/journey`,
|
|
1529
|
+
icon: lucideReact.Map
|
|
1519
1530
|
},
|
|
1520
1531
|
{
|
|
1521
|
-
label: "
|
|
1522
|
-
description: "
|
|
1523
|
-
href:
|
|
1524
|
-
icon: lucideReact.
|
|
1532
|
+
label: "Next Task",
|
|
1533
|
+
description: "See your next recommended task",
|
|
1534
|
+
href: `${achievementsBaseUrl}/next-task`,
|
|
1535
|
+
icon: lucideReact.ListTodo
|
|
1525
1536
|
}
|
|
1526
1537
|
]
|
|
1527
1538
|
}
|
|
@@ -1861,7 +1872,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
1861
1872
|
function Badge({ className, variant, ...props }) {
|
|
1862
1873
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
1863
1874
|
}
|
|
1864
|
-
function
|
|
1875
|
+
function Calendar({
|
|
1865
1876
|
className,
|
|
1866
1877
|
classNames,
|
|
1867
1878
|
showOutsideDays = true,
|
|
@@ -1900,8 +1911,8 @@ function Calendar2({
|
|
|
1900
1911
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
1901
1912
|
"aria-selected:opacity-100"
|
|
1902
1913
|
),
|
|
1903
|
-
selected: "
|
|
1904
|
-
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",
|
|
1905
1916
|
outside: "text-muted-foreground opacity-50",
|
|
1906
1917
|
disabled: "text-muted-foreground opacity-50 cursor-not-allowed",
|
|
1907
1918
|
hidden: "invisible",
|
|
@@ -1917,7 +1928,7 @@ function Calendar2({
|
|
|
1917
1928
|
}
|
|
1918
1929
|
);
|
|
1919
1930
|
}
|
|
1920
|
-
|
|
1931
|
+
Calendar.displayName = "Calendar";
|
|
1921
1932
|
var CarouselContext = React27__namespace.createContext(null);
|
|
1922
1933
|
function useCarousel() {
|
|
1923
1934
|
const context = React27__namespace.useContext(CarouselContext);
|
|
@@ -3054,7 +3065,7 @@ exports.BreadcrumbList = BreadcrumbList;
|
|
|
3054
3065
|
exports.BreadcrumbPage = BreadcrumbPage;
|
|
3055
3066
|
exports.BreadcrumbSeparator = BreadcrumbSeparator;
|
|
3056
3067
|
exports.Button = Button;
|
|
3057
|
-
exports.Calendar =
|
|
3068
|
+
exports.Calendar = Calendar;
|
|
3058
3069
|
exports.Card = Card;
|
|
3059
3070
|
exports.CardContent = CardContent;
|
|
3060
3071
|
exports.CardDescription = CardDescription;
|