@harshit-wander/component-lib 1.1.6 → 1.1.8
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 +61 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +61 -9
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -3,6 +3,8 @@ import { clsx } from 'clsx';
|
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
|
+
import { EffectCards } from 'swiper/modules';
|
|
7
|
+
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
6
8
|
|
|
7
9
|
// src/components/BrandLogo/BrandLogo.tsx
|
|
8
10
|
var cn = (...inputs) => twMerge(clsx(inputs));
|
|
@@ -1123,7 +1125,7 @@ var MobileDrawer = ({
|
|
|
1123
1125
|
{
|
|
1124
1126
|
href: item.href,
|
|
1125
1127
|
onClick: onClose,
|
|
1126
|
-
className: "flex items-center py-[10px] px-
|
|
1128
|
+
className: "flex items-center py-[10px] px-5 text-text no-underline text-sm font-normal outline-none",
|
|
1127
1129
|
children: item.label
|
|
1128
1130
|
}
|
|
1129
1131
|
) }, item.href))
|
|
@@ -1468,7 +1470,7 @@ var ContactSection = forwardRef(
|
|
|
1468
1470
|
children: illustration
|
|
1469
1471
|
}
|
|
1470
1472
|
),
|
|
1471
|
-
/* @__PURE__ */ jsx("div", { className: "shrink-0 flex justify-center
|
|
1473
|
+
/* @__PURE__ */ jsx("div", { className: "shrink-0 flex justify-center", children: /* @__PURE__ */ jsx(
|
|
1472
1474
|
ContactForm,
|
|
1473
1475
|
{
|
|
1474
1476
|
eyebrow,
|
|
@@ -2750,24 +2752,46 @@ var TripsCategorySection = forwardRef(
|
|
|
2750
2752
|
cta.onClick?.();
|
|
2751
2753
|
};
|
|
2752
2754
|
const progressWidth = Math.min(33 + scrollProgress * (120 - 33), 120);
|
|
2753
|
-
return /* @__PURE__ */ jsxs("section", { ref, className: cn("relative flex flex-col bg-surface", className), ...rest, children: [
|
|
2755
|
+
return /* @__PURE__ */ jsxs("section", { ref, className: cn("relative flex flex-col bg-surface max-md:overflow-x-hidden", className), ...rest, children: [
|
|
2754
2756
|
/* @__PURE__ */ jsxs("div", { className: "relative h-[318px] rounded-lg overflow-hidden max-md:h-[260px]", children: [
|
|
2755
|
-
/* @__PURE__ */
|
|
2756
|
-
|
|
2757
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0", children: [
|
|
2758
|
+
/* @__PURE__ */ jsx(
|
|
2759
|
+
"img",
|
|
2760
|
+
{
|
|
2761
|
+
src: poster,
|
|
2762
|
+
alt: "",
|
|
2763
|
+
"aria-hidden": "true",
|
|
2764
|
+
className: "w-full h-full object-cover md:hidden"
|
|
2765
|
+
}
|
|
2766
|
+
),
|
|
2767
|
+
/* @__PURE__ */ jsx(
|
|
2768
|
+
"video",
|
|
2769
|
+
{
|
|
2770
|
+
autoPlay: true,
|
|
2771
|
+
muted: true,
|
|
2772
|
+
loop: true,
|
|
2773
|
+
playsInline: true,
|
|
2774
|
+
poster,
|
|
2775
|
+
src: videoSrc,
|
|
2776
|
+
className: "hidden md:block w-full h-full object-cover"
|
|
2777
|
+
}
|
|
2778
|
+
)
|
|
2779
|
+
] }),
|
|
2780
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0 flex flex-col justify-center gap-lg p-[44px] max-md:p-[24px] text-on-image [text-shadow:0px_6px_24px_rgba(0,0,0,0.16)]", children: [
|
|
2757
2781
|
/* @__PURE__ */ jsx("h2", { className: "m-0 text-hero-title max-w-[436px]", children: title }),
|
|
2758
|
-
/* @__PURE__ */ jsx("p", { className: "m-0 text-xs font-bold leading-5", children: description }),
|
|
2782
|
+
/* @__PURE__ */ jsx("p", { className: "max-md:hidden m-0 text-xs font-bold leading-5", children: description }),
|
|
2759
2783
|
/* @__PURE__ */ jsx(
|
|
2760
2784
|
"button",
|
|
2761
2785
|
{
|
|
2762
2786
|
type: "button",
|
|
2763
2787
|
onClick: handleCtaClick,
|
|
2764
|
-
className: "inline-flex items-center justify-center self-start h-11 px-xl bg-accent text-secondary border-none rounded-md font-[inherit] text-button cursor-pointer shadow-[inset_0_0_6px_rgba(0,0,0,0.14)] transition-colors duration-150 ease-in hover:bg-accent-hover focus-visible:outline-2 focus-visible:outline-white focus-visible:outline-offset-2",
|
|
2788
|
+
className: "max-md:hidden inline-flex items-center justify-center self-start h-11 px-xl bg-accent text-secondary border-none rounded-md font-[inherit] text-button cursor-pointer shadow-[inset_0_0_6px_rgba(0,0,0,0.14)] transition-colors duration-150 ease-in hover:bg-accent-hover focus-visible:outline-2 focus-visible:outline-white focus-visible:outline-offset-2",
|
|
2765
2789
|
children: cta.label
|
|
2766
2790
|
}
|
|
2767
2791
|
)
|
|
2768
2792
|
] })
|
|
2769
2793
|
] }),
|
|
2770
|
-
/* @__PURE__ */ jsxs("div", { className: "relative -mt-[68px] py-sm px-[25px]", children: [
|
|
2794
|
+
/* @__PURE__ */ jsxs("div", { className: "relative -mt-[68px] py-sm px-[25px] hidden md:block", children: [
|
|
2771
2795
|
/* @__PURE__ */ jsx(
|
|
2772
2796
|
"button",
|
|
2773
2797
|
{
|
|
@@ -2826,7 +2850,35 @@ var TripsCategorySection = forwardRef(
|
|
|
2826
2850
|
)
|
|
2827
2851
|
}
|
|
2828
2852
|
)
|
|
2829
|
-
] })
|
|
2853
|
+
] }),
|
|
2854
|
+
/* @__PURE__ */ jsx("div", { className: "relative -mt-[60px] pb-md md:hidden flex justify-center", children: /* @__PURE__ */ jsx(
|
|
2855
|
+
Swiper,
|
|
2856
|
+
{
|
|
2857
|
+
effect: "cards",
|
|
2858
|
+
grabCursor: true,
|
|
2859
|
+
modules: [EffectCards],
|
|
2860
|
+
className: "w-[74vw] [aspect-ratio:289/367]",
|
|
2861
|
+
style: { overflow: "visible" },
|
|
2862
|
+
children: trips.map((trip) => /* @__PURE__ */ jsx(
|
|
2863
|
+
SwiperSlide,
|
|
2864
|
+
{
|
|
2865
|
+
style: { borderRadius: "12px", overflow: "hidden" },
|
|
2866
|
+
children: /* @__PURE__ */ jsx(
|
|
2867
|
+
TripCategoryCard,
|
|
2868
|
+
{
|
|
2869
|
+
image: trip.image,
|
|
2870
|
+
alt: trip.alt,
|
|
2871
|
+
destination: trip.destination,
|
|
2872
|
+
startingPrice: trip.startingPrice,
|
|
2873
|
+
href: trip.href,
|
|
2874
|
+
className: "w-full h-full rounded-xl shrink-0"
|
|
2875
|
+
}
|
|
2876
|
+
)
|
|
2877
|
+
},
|
|
2878
|
+
`${trip.image}|${trip.destination}|mobile`
|
|
2879
|
+
))
|
|
2880
|
+
}
|
|
2881
|
+
) })
|
|
2830
2882
|
] });
|
|
2831
2883
|
}
|
|
2832
2884
|
);
|