@harshit-wander/component-lib 1.1.3 → 1.1.4
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.cjs +74 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +74 -84
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -63,7 +63,7 @@ var ContactForm = forwardRef(
|
|
|
63
63
|
variant = "card",
|
|
64
64
|
headerVariant,
|
|
65
65
|
eyebrow = "Wanderlust Calling?",
|
|
66
|
-
heading
|
|
66
|
+
heading = "Allow Us to Call You Back!",
|
|
67
67
|
submitLabel = "Submit",
|
|
68
68
|
headerIllustration,
|
|
69
69
|
countryCodes,
|
|
@@ -106,7 +106,7 @@ var ContactForm = forwardRef(
|
|
|
106
106
|
resolvedHeader === "none" ? null : /* @__PURE__ */ jsxs("div", { className: "flex items-end justify-between gap-md w-full py-md pt-lg px-xl pb-md bg-brand-shade-1 max-md:pt-5 max-md:px-lg max-md:pb-3.5", children: [
|
|
107
107
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-xs flex-auto min-w-0", children: [
|
|
108
108
|
/* @__PURE__ */ jsx("p", { className: "m-0 text-form-eyebrow text-primary", children: eyebrow }),
|
|
109
|
-
/* @__PURE__ */ jsx("p", { className: "m-0 text-form-heading text-text", children:
|
|
109
|
+
/* @__PURE__ */ jsx("p", { className: "m-0 text-form-heading text-text", children: heading })
|
|
110
110
|
] }),
|
|
111
111
|
resolvedHeader === "illustration" && headerIllustration ? /* @__PURE__ */ jsx(
|
|
112
112
|
"div",
|
|
@@ -463,53 +463,34 @@ var FaqExpandable = forwardRef(
|
|
|
463
463
|
}
|
|
464
464
|
);
|
|
465
465
|
FaqExpandable.displayName = "FaqExpandable";
|
|
466
|
-
var card = cva(
|
|
467
|
-
"relative block w-full aspect-[268/355] rounded-lg overflow-hidden shadow-card bg-cover bg-center bg-no-repeat px-lg pt-lg",
|
|
468
|
-
{
|
|
469
|
-
variants: {
|
|
470
|
-
hasImage: {
|
|
471
|
-
true: "bg-secondary",
|
|
472
|
-
false: "bg-surface border border-border"
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
);
|
|
477
|
-
var heading = cva("m-0 text-lg font-semibold leading-card", {
|
|
478
|
-
variants: {
|
|
479
|
-
hasImage: {
|
|
480
|
-
true: "text-surface",
|
|
481
|
-
false: "text-primary"
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
|
-
var description = cva("mt-sm mb-0 text-sm font-normal leading-body", {
|
|
486
|
-
variants: {
|
|
487
|
-
hasImage: {
|
|
488
|
-
true: "text-surface",
|
|
489
|
-
false: "text-text"
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
});
|
|
493
466
|
var FeatureCard = forwardRef(
|
|
494
|
-
({ heading: h, description: d, imageUrl, className, style, ...rest }, ref) =>
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
/* @__PURE__ */ jsx("
|
|
508
|
-
|
|
509
|
-
]
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
467
|
+
({ heading: h, description: d, imageUrl, className, style, ...rest }, ref) => /* @__PURE__ */ jsxs(
|
|
468
|
+
"article",
|
|
469
|
+
{
|
|
470
|
+
ref,
|
|
471
|
+
className: cn(
|
|
472
|
+
"relative flex flex-col w-full aspect-[268/355] rounded-lg overflow-hidden shadow-card border border-border bg-surface",
|
|
473
|
+
className
|
|
474
|
+
),
|
|
475
|
+
style,
|
|
476
|
+
...rest,
|
|
477
|
+
children: [
|
|
478
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-sm px-lg pt-lg flex-1 min-h-0", children: [
|
|
479
|
+
/* @__PURE__ */ jsx("h3", { className: "m-0 text-lg font-semibold leading-card text-primary", children: h }),
|
|
480
|
+
d ? /* @__PURE__ */ jsx("p", { className: "m-0 text-sm font-normal leading-body text-text", children: d }) : null
|
|
481
|
+
] }),
|
|
482
|
+
imageUrl ? /* @__PURE__ */ jsx("div", { className: "relative flex justify-center items-end h-[45%] shrink-0 overflow-hidden bg-brand-shade-1", children: /* @__PURE__ */ jsx(
|
|
483
|
+
"img",
|
|
484
|
+
{
|
|
485
|
+
src: imageUrl,
|
|
486
|
+
alt: "",
|
|
487
|
+
"aria-hidden": "true",
|
|
488
|
+
className: "w-full h-full object-contain object-bottom"
|
|
489
|
+
}
|
|
490
|
+
) }) : null
|
|
491
|
+
]
|
|
492
|
+
}
|
|
493
|
+
)
|
|
513
494
|
);
|
|
514
495
|
FeatureCard.displayName = "FeatureCard";
|
|
515
496
|
var PinSvg = () => /* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
@@ -720,10 +701,10 @@ var PackageCard = forwardRef(
|
|
|
720
701
|
);
|
|
721
702
|
PackageCard.displayName = "PackageCard";
|
|
722
703
|
var SectionHeader = forwardRef(
|
|
723
|
-
({ heading
|
|
704
|
+
({ heading, subheading, align = "center", className, ...rest }, ref) => {
|
|
724
705
|
const alignClass = align === "center" ? "items-center text-center" : "items-start text-left";
|
|
725
706
|
return /* @__PURE__ */ jsxs("header", { ref, className: cn("flex flex-col mb-xl", alignClass, className), ...rest, children: [
|
|
726
|
-
/* @__PURE__ */ jsx("h2", { className: "m-0 text-section-heading", children:
|
|
707
|
+
/* @__PURE__ */ jsx("h2", { className: "m-0 text-section-heading", children: heading }),
|
|
727
708
|
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "block w-[96px] h-1 mt-sm mb-md bg-accent rounded-sm" }),
|
|
728
709
|
subheading ? /* @__PURE__ */ jsx("p", { className: "m-0 max-w-[720px] text-section-subheading", children: subheading }) : null
|
|
729
710
|
] });
|
|
@@ -875,7 +856,7 @@ var TripCategoryCard = forwardRef(
|
|
|
875
856
|
);
|
|
876
857
|
TripCategoryCard.displayName = "TripCategoryCard";
|
|
877
858
|
var WarriorCard = forwardRef(
|
|
878
|
-
({ icon, name, description
|
|
859
|
+
({ icon, name, description, className, ...rest }, ref) => /* @__PURE__ */ jsxs(
|
|
879
860
|
"article",
|
|
880
861
|
{
|
|
881
862
|
ref,
|
|
@@ -901,7 +882,7 @@ var WarriorCard = forwardRef(
|
|
|
901
882
|
className: "block w-[56px] h-[2px] mt-sm mb-md bg-accent rounded-sm"
|
|
902
883
|
}
|
|
903
884
|
),
|
|
904
|
-
/* @__PURE__ */ jsx("p", { className: "m-0 text-card-body", children:
|
|
885
|
+
/* @__PURE__ */ jsx("p", { className: "m-0 text-card-body", children: description })
|
|
905
886
|
]
|
|
906
887
|
}
|
|
907
888
|
)
|
|
@@ -938,9 +919,9 @@ var BottomNav = forwardRef(
|
|
|
938
919
|
);
|
|
939
920
|
BottomNav.displayName = "BottomNav";
|
|
940
921
|
var BrandsSection = forwardRef(
|
|
941
|
-
({ heading
|
|
922
|
+
({ heading, subheading, brands, className, ...rest }, ref) => {
|
|
942
923
|
return /* @__PURE__ */ jsxs("section", { ref, className: cn("flex flex-col w-full", className), ...rest, children: [
|
|
943
|
-
/* @__PURE__ */ jsx(SectionHeader, { heading
|
|
924
|
+
/* @__PURE__ */ jsx(SectionHeader, { heading, subheading }),
|
|
944
925
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-lg justify-center w-full", children: brands.map((brand) => /* @__PURE__ */ jsx(BrandLogo, { ...brand }, brand.name)) })
|
|
945
926
|
] });
|
|
946
927
|
}
|
|
@@ -1460,7 +1441,7 @@ var ContactSection = forwardRef(
|
|
|
1460
1441
|
({
|
|
1461
1442
|
illustration,
|
|
1462
1443
|
eyebrow,
|
|
1463
|
-
heading
|
|
1444
|
+
heading,
|
|
1464
1445
|
submitLabel,
|
|
1465
1446
|
headerIllustration,
|
|
1466
1447
|
countryCodes,
|
|
@@ -1474,7 +1455,7 @@ var ContactSection = forwardRef(
|
|
|
1474
1455
|
ref,
|
|
1475
1456
|
className: cn(
|
|
1476
1457
|
"flex w-full justify-center",
|
|
1477
|
-
"lg:items-center lg:gap-
|
|
1458
|
+
"lg:items-center lg:gap-24 lg:px-xl lg:py-xl lg:bg-primary lg:rounded-lg lg:shadow-card",
|
|
1478
1459
|
className
|
|
1479
1460
|
),
|
|
1480
1461
|
...rest,
|
|
@@ -1491,7 +1472,7 @@ var ContactSection = forwardRef(
|
|
|
1491
1472
|
ContactForm,
|
|
1492
1473
|
{
|
|
1493
1474
|
eyebrow,
|
|
1494
|
-
heading
|
|
1475
|
+
heading,
|
|
1495
1476
|
submitLabel,
|
|
1496
1477
|
headerIllustration,
|
|
1497
1478
|
countryCodes,
|
|
@@ -1542,12 +1523,12 @@ var CtaBanner = forwardRef(
|
|
|
1542
1523
|
);
|
|
1543
1524
|
CtaBanner.displayName = "CtaBanner";
|
|
1544
1525
|
var DestinationsSection = forwardRef(
|
|
1545
|
-
({ heading
|
|
1526
|
+
({ heading, destinations, className, ...rest }, ref) => {
|
|
1546
1527
|
const half = Math.ceil(destinations.length / 2);
|
|
1547
1528
|
const firstRow = destinations.slice(0, half);
|
|
1548
1529
|
const secondRow = destinations.slice(half);
|
|
1549
1530
|
return /* @__PURE__ */ jsxs("section", { ref, className: cn("flex flex-col gap-lg bg-surface", className), ...rest, children: [
|
|
1550
|
-
/* @__PURE__ */ jsx("h2", { className: "m-0 text-xl font-semibold leading-heading text-secondary", children:
|
|
1531
|
+
/* @__PURE__ */ jsx("h2", { className: "m-0 text-xl font-semibold leading-heading text-secondary", children: heading }),
|
|
1551
1532
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-md overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: [
|
|
1552
1533
|
/* @__PURE__ */ jsx("div", { className: "flex gap-md w-max", children: firstRow.map((destination) => /* @__PURE__ */ jsx(
|
|
1553
1534
|
DestinationCard,
|
|
@@ -1620,7 +1601,16 @@ var useScrollSnap = (itemCount) => {
|
|
|
1620
1601
|
const scrollToStart = useCallback(() => {
|
|
1621
1602
|
elRef.current?.scrollTo({ left: 0, behavior: "smooth" });
|
|
1622
1603
|
}, []);
|
|
1623
|
-
return {
|
|
1604
|
+
return {
|
|
1605
|
+
ref: setRef,
|
|
1606
|
+
scrollPrev,
|
|
1607
|
+
scrollNext,
|
|
1608
|
+
scrollToStart,
|
|
1609
|
+
canPrev,
|
|
1610
|
+
canNext,
|
|
1611
|
+
activeIndex,
|
|
1612
|
+
scrollProgress
|
|
1613
|
+
};
|
|
1624
1614
|
};
|
|
1625
1615
|
var ChevronLeft = () => /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
1626
1616
|
"path",
|
|
@@ -1751,8 +1741,8 @@ var EventCarousel = forwardRef(
|
|
|
1751
1741
|
);
|
|
1752
1742
|
EventCarousel.displayName = "EventCarousel";
|
|
1753
1743
|
var ExploreSection = forwardRef(
|
|
1754
|
-
({ heading
|
|
1755
|
-
/* @__PURE__ */ jsx("h2", { className: "m-0 text-xl font-semibold leading-heading text-secondary", children:
|
|
1744
|
+
({ heading, items, className, ...rest }, ref) => /* @__PURE__ */ jsxs("section", { ref, className: cn("flex flex-col gap-lg bg-surface", className), ...rest, children: [
|
|
1745
|
+
/* @__PURE__ */ jsx("h2", { className: "m-0 text-xl font-semibold leading-heading text-secondary", children: heading }),
|
|
1756
1746
|
/* @__PURE__ */ jsx("div", { className: "flex gap-md overflow-x-auto snap-x [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: items.map((item) => /* @__PURE__ */ jsx(
|
|
1757
1747
|
ExploreCard,
|
|
1758
1748
|
{
|
|
@@ -1767,7 +1757,7 @@ var ExploreSection = forwardRef(
|
|
|
1767
1757
|
);
|
|
1768
1758
|
ExploreSection.displayName = "ExploreSection";
|
|
1769
1759
|
var FaqSection = ({
|
|
1770
|
-
heading
|
|
1760
|
+
heading,
|
|
1771
1761
|
subheading,
|
|
1772
1762
|
faqs,
|
|
1773
1763
|
singleOpen = false,
|
|
@@ -1776,7 +1766,7 @@ var FaqSection = ({
|
|
|
1776
1766
|
}) => {
|
|
1777
1767
|
const [openIndex, setOpenIndex] = useState(null);
|
|
1778
1768
|
return /* @__PURE__ */ jsxs("section", { className: cn("py-xl px-lg", className), ...rest, children: [
|
|
1779
|
-
/* @__PURE__ */ jsx(SectionHeader, { heading
|
|
1769
|
+
/* @__PURE__ */ jsx(SectionHeader, { heading, subheading }),
|
|
1780
1770
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-md max-w-[760px] mx-auto", children: faqs.map((faq, index) => {
|
|
1781
1771
|
if (!singleOpen) {
|
|
1782
1772
|
return /* @__PURE__ */ jsx(FaqExpandable, { ...faq }, faq.question);
|
|
@@ -1860,8 +1850,8 @@ var Footer = forwardRef(
|
|
|
1860
1850
|
...rest
|
|
1861
1851
|
}, ref) => {
|
|
1862
1852
|
const [openColumns, setOpenColumns] = useState({});
|
|
1863
|
-
const toggleColumn = (
|
|
1864
|
-
setOpenColumns((prev) => ({ ...prev, [
|
|
1853
|
+
const toggleColumn = (heading) => {
|
|
1854
|
+
setOpenColumns((prev) => ({ ...prev, [heading]: !prev[heading] }));
|
|
1865
1855
|
};
|
|
1866
1856
|
return /* @__PURE__ */ jsxs("footer", { ref, className: cn("flex flex-col items-center", className), ...rest, children: [
|
|
1867
1857
|
/* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "w-full h-2 bg-primary rounded-t-[200px]" }),
|
|
@@ -2013,7 +2003,7 @@ var ChevronRight2 = () => /* @__PURE__ */ jsx("svg", { width: "16", height: "16"
|
|
|
2013
2003
|
var arrowBase2 = "absolute top-1/2 -translate-y-1/2 inline-flex items-center justify-center w-8 h-8 bg-primary border-none rounded-full text-on-dark cursor-pointer shadow-card transition-opacity duration-150 ease-in z-[20] disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2 max-md:hidden";
|
|
2014
2004
|
var curveBase = "pointer-events-none absolute z-10 left-0 right-0 h-[80px] bg-surface rounded-[50%] max-md:h-[40px]";
|
|
2015
2005
|
var GallerySection = forwardRef(
|
|
2016
|
-
({ heading
|
|
2006
|
+
({ heading, subheading, photos, className, ...rest }, ref) => {
|
|
2017
2007
|
const { ref: trackRef, scrollPrev, scrollNext, canPrev, canNext } = useScrollSnap(photos.length);
|
|
2018
2008
|
return /* @__PURE__ */ jsxs(
|
|
2019
2009
|
"section",
|
|
@@ -2022,7 +2012,7 @@ var GallerySection = forwardRef(
|
|
|
2022
2012
|
className: cn("relative flex flex-col items-center gap-lg bg-surface", className),
|
|
2023
2013
|
...rest,
|
|
2024
2014
|
children: [
|
|
2025
|
-
/* @__PURE__ */ jsx(SectionHeader, { heading
|
|
2015
|
+
/* @__PURE__ */ jsx(SectionHeader, { heading, subheading, align: "center" }),
|
|
2026
2016
|
/* @__PURE__ */ jsxs("div", { className: "relative w-full", children: [
|
|
2027
2017
|
/* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: cn(curveBase, "-top-[40px] max-md:-top-[20px]") }),
|
|
2028
2018
|
/* @__PURE__ */ jsx(
|
|
@@ -2374,9 +2364,9 @@ var Navbar = forwardRef(
|
|
|
2374
2364
|
);
|
|
2375
2365
|
Navbar.displayName = "Navbar";
|
|
2376
2366
|
var OfficesSection = forwardRef(
|
|
2377
|
-
({ heading
|
|
2367
|
+
({ heading, subheading, locations, className, ...rest }, ref) => {
|
|
2378
2368
|
return /* @__PURE__ */ jsxs("section", { ref, className: cn("flex flex-col w-full", className), ...rest, children: [
|
|
2379
|
-
/* @__PURE__ */ jsx(SectionHeader, { heading
|
|
2369
|
+
/* @__PURE__ */ jsx(SectionHeader, { heading, subheading }),
|
|
2380
2370
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-lg w-full [&>*]:flex-[1_1_280px]", children: locations.map((office) => /* @__PURE__ */ jsx(LocationCard, { ...office }, office.location)) })
|
|
2381
2371
|
] });
|
|
2382
2372
|
}
|
|
@@ -2415,7 +2405,7 @@ var ArrowRight = () => /* @__PURE__ */ jsx("svg", { width: "14", height: "14", v
|
|
|
2415
2405
|
var arrowBase3 = "absolute top-1/2 -translate-y-1/2 inline-flex items-center justify-center w-8 h-8 bg-primary border-none rounded-full text-on-dark cursor-pointer shadow-card transition-opacity duration-150 ease-in z-[1] disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2 max-md:hidden";
|
|
2416
2406
|
var PackagesCarousel = forwardRef(
|
|
2417
2407
|
({
|
|
2418
|
-
heading
|
|
2408
|
+
heading,
|
|
2419
2409
|
viewAllHref,
|
|
2420
2410
|
viewAllLabel = "View All",
|
|
2421
2411
|
months,
|
|
@@ -2440,7 +2430,7 @@ var PackagesCarousel = forwardRef(
|
|
|
2440
2430
|
...rest,
|
|
2441
2431
|
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-xl w-full", children: [
|
|
2442
2432
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-lg", children: [
|
|
2443
|
-
/* @__PURE__ */ jsx("h2", { className: "m-0 text-xl font-semibold leading-5 text-secondary", children:
|
|
2433
|
+
/* @__PURE__ */ jsx("h2", { className: "m-0 text-xl font-semibold leading-5 text-secondary", children: heading }),
|
|
2444
2434
|
viewAllHref ? /* @__PURE__ */ jsxs(
|
|
2445
2435
|
"a",
|
|
2446
2436
|
{
|
|
@@ -2515,7 +2505,7 @@ var SiteHeader = forwardRef(
|
|
|
2515
2505
|
);
|
|
2516
2506
|
SiteHeader.displayName = "SiteHeader";
|
|
2517
2507
|
var TeamSection = forwardRef(
|
|
2518
|
-
({ heading
|
|
2508
|
+
({ heading, subheading, members, className, ...rest }, ref) => {
|
|
2519
2509
|
const { ref: trackRef, activeIndex } = useScrollSnap(members.length);
|
|
2520
2510
|
return /* @__PURE__ */ jsxs(
|
|
2521
2511
|
"section",
|
|
@@ -2529,7 +2519,7 @@ var TeamSection = forwardRef(
|
|
|
2529
2519
|
),
|
|
2530
2520
|
...rest,
|
|
2531
2521
|
children: [
|
|
2532
|
-
/* @__PURE__ */ jsx(SectionHeader, { heading
|
|
2522
|
+
/* @__PURE__ */ jsx(SectionHeader, { heading, subheading }),
|
|
2533
2523
|
/* @__PURE__ */ jsx(
|
|
2534
2524
|
"ul",
|
|
2535
2525
|
{
|
|
@@ -2703,7 +2693,7 @@ var TestimonialsCarousel = forwardRef(
|
|
|
2703
2693
|
);
|
|
2704
2694
|
TestimonialsCarousel.displayName = "TestimonialsCarousel";
|
|
2705
2695
|
var TextSection = forwardRef(
|
|
2706
|
-
({ heading
|
|
2696
|
+
({ heading, paragraphs, align = "left", className, ...rest }, ref) => /* @__PURE__ */ jsxs(
|
|
2707
2697
|
"section",
|
|
2708
2698
|
{
|
|
2709
2699
|
ref,
|
|
@@ -2714,7 +2704,7 @@ var TextSection = forwardRef(
|
|
|
2714
2704
|
),
|
|
2715
2705
|
...rest,
|
|
2716
2706
|
children: [
|
|
2717
|
-
/* @__PURE__ */ jsx("h2", { className: "m-0 text-section-heading", children:
|
|
2707
|
+
/* @__PURE__ */ jsx("h2", { className: "m-0 text-section-heading", children: heading }),
|
|
2718
2708
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-md max-w-[760px]", children: paragraphs.map((paragraph) => /* @__PURE__ */ jsx("p", { className: "m-0 text-card-body", children: paragraph }, paragraph)) })
|
|
2719
2709
|
]
|
|
2720
2710
|
}
|
|
@@ -2743,7 +2733,7 @@ var ChevronRight5 = () => /* @__PURE__ */ jsx("svg", { width: "16", height: "16"
|
|
|
2743
2733
|
) });
|
|
2744
2734
|
var arrowBase4 = "absolute top-[calc(50%+30px)] -translate-y-1/2 inline-flex items-center justify-center w-8 h-8 bg-surface border border-border rounded-full text-primary cursor-pointer shadow-card transition-opacity duration-150 ease-in z-[1] disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2 max-md:hidden";
|
|
2745
2735
|
var TripsCategorySection = forwardRef(
|
|
2746
|
-
({ title, description
|
|
2736
|
+
({ title, description, cta, poster, videoSrc, trips, className, ...rest }, ref) => {
|
|
2747
2737
|
const {
|
|
2748
2738
|
ref: trackRef,
|
|
2749
2739
|
scrollPrev,
|
|
@@ -2765,7 +2755,7 @@ var TripsCategorySection = forwardRef(
|
|
|
2765
2755
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 [&>img]:w-full [&>img]:h-full [&>img]:object-cover [&>video]:w-full [&>video]:h-full [&>video]:object-cover", children: /* @__PURE__ */ jsx("video", { autoPlay: true, muted: true, loop: true, playsInline: true, poster, src: videoSrc }) }),
|
|
2766
2756
|
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0 flex flex-col justify-center gap-lg p-[44px] text-on-image [text-shadow:0px_6px_24px_rgba(0,0,0,0.16)]", children: [
|
|
2767
2757
|
/* @__PURE__ */ jsx("h2", { className: "m-0 text-hero-title max-w-[436px]", children: title }),
|
|
2768
|
-
/* @__PURE__ */ jsx("p", { className: "m-0 text-xs font-bold leading-5", children:
|
|
2758
|
+
/* @__PURE__ */ jsx("p", { className: "m-0 text-xs font-bold leading-5", children: description }),
|
|
2769
2759
|
/* @__PURE__ */ jsx(
|
|
2770
2760
|
"button",
|
|
2771
2761
|
{
|
|
@@ -2930,10 +2920,10 @@ var UctMobileBanner = forwardRef(
|
|
|
2930
2920
|
);
|
|
2931
2921
|
UctMobileBanner.displayName = "UctMobileBanner";
|
|
2932
2922
|
var ValuesSection = forwardRef(
|
|
2933
|
-
({ heading
|
|
2923
|
+
({ heading, subheading, values, singleOpen = false, className, ...rest }, ref) => {
|
|
2934
2924
|
const [openIndex, setOpenIndex] = useState(null);
|
|
2935
2925
|
return /* @__PURE__ */ jsxs("section", { ref, className: cn("flex flex-col w-full", className), ...rest, children: [
|
|
2936
|
-
/* @__PURE__ */ jsx(SectionHeader, { heading
|
|
2926
|
+
/* @__PURE__ */ jsx(SectionHeader, { heading, subheading }),
|
|
2937
2927
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-md w-full", children: values.map((value, index) => {
|
|
2938
2928
|
const serialNumber = index + 1;
|
|
2939
2929
|
if (!singleOpen) {
|
|
@@ -2964,16 +2954,16 @@ var ValuesSection = forwardRef(
|
|
|
2964
2954
|
);
|
|
2965
2955
|
ValuesSection.displayName = "ValuesSection";
|
|
2966
2956
|
var WarriorsSection = forwardRef(
|
|
2967
|
-
({ heading
|
|
2957
|
+
({ heading, subheading, warriors, className, ...rest }, ref) => {
|
|
2968
2958
|
return /* @__PURE__ */ jsxs("section", { ref, className: cn("flex flex-col w-full", className), ...rest, children: [
|
|
2969
|
-
/* @__PURE__ */ jsx(SectionHeader, { heading
|
|
2959
|
+
/* @__PURE__ */ jsx(SectionHeader, { heading, subheading }),
|
|
2970
2960
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-[repeat(auto-fit,minmax(240px,1fr))] gap-lg w-full", children: warriors.map((warrior) => /* @__PURE__ */ jsx(WarriorCard, { ...warrior }, warrior.name)) })
|
|
2971
2961
|
] });
|
|
2972
2962
|
}
|
|
2973
2963
|
);
|
|
2974
2964
|
WarriorsSection.displayName = "WarriorsSection";
|
|
2975
2965
|
var WhyChooseSection = forwardRef(
|
|
2976
|
-
({ heading
|
|
2966
|
+
({ heading, features, className, ...rest }, ref) => {
|
|
2977
2967
|
const { ref: trackRef, activeIndex } = useScrollSnap(features.length);
|
|
2978
2968
|
return /* @__PURE__ */ jsxs(
|
|
2979
2969
|
"section",
|
|
@@ -2988,7 +2978,7 @@ var WhyChooseSection = forwardRef(
|
|
|
2988
2978
|
),
|
|
2989
2979
|
...rest,
|
|
2990
2980
|
children: [
|
|
2991
|
-
/* @__PURE__ */ jsx("h2", { className: "m-0 text-section-h2 text-secondary text-center", children:
|
|
2981
|
+
/* @__PURE__ */ jsx("h2", { className: "m-0 text-section-h2 text-secondary text-center", children: heading }),
|
|
2992
2982
|
/* @__PURE__ */ jsx(
|
|
2993
2983
|
"ul",
|
|
2994
2984
|
{
|