@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.cjs
CHANGED
|
@@ -5,6 +5,8 @@ var clsx = require('clsx');
|
|
|
5
5
|
var tailwindMerge = require('tailwind-merge');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var classVarianceAuthority = require('class-variance-authority');
|
|
8
|
+
var modules = require('swiper/modules');
|
|
9
|
+
var react$1 = require('swiper/react');
|
|
8
10
|
|
|
9
11
|
// src/components/BrandLogo/BrandLogo.tsx
|
|
10
12
|
var cn = (...inputs) => tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
@@ -1125,7 +1127,7 @@ var MobileDrawer = ({
|
|
|
1125
1127
|
{
|
|
1126
1128
|
href: item.href,
|
|
1127
1129
|
onClick: onClose,
|
|
1128
|
-
className: "flex items-center py-[10px] px-
|
|
1130
|
+
className: "flex items-center py-[10px] px-5 text-text no-underline text-sm font-normal outline-none",
|
|
1129
1131
|
children: item.label
|
|
1130
1132
|
}
|
|
1131
1133
|
) }, item.href))
|
|
@@ -1470,7 +1472,7 @@ var ContactSection = react.forwardRef(
|
|
|
1470
1472
|
children: illustration
|
|
1471
1473
|
}
|
|
1472
1474
|
),
|
|
1473
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0 flex justify-center
|
|
1475
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0 flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1474
1476
|
ContactForm,
|
|
1475
1477
|
{
|
|
1476
1478
|
eyebrow,
|
|
@@ -2752,24 +2754,46 @@ var TripsCategorySection = react.forwardRef(
|
|
|
2752
2754
|
cta.onClick?.();
|
|
2753
2755
|
};
|
|
2754
2756
|
const progressWidth = Math.min(33 + scrollProgress * (120 - 33), 120);
|
|
2755
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { ref, className: cn("relative flex flex-col bg-surface", className), ...rest, children: [
|
|
2757
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { ref, className: cn("relative flex flex-col bg-surface max-md:overflow-x-hidden", className), ...rest, children: [
|
|
2756
2758
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative h-[318px] rounded-lg overflow-hidden max-md:h-[260px]", children: [
|
|
2757
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2758
|
-
|
|
2759
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute inset-0", children: [
|
|
2760
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2761
|
+
"img",
|
|
2762
|
+
{
|
|
2763
|
+
src: poster,
|
|
2764
|
+
alt: "",
|
|
2765
|
+
"aria-hidden": "true",
|
|
2766
|
+
className: "w-full h-full object-cover md:hidden"
|
|
2767
|
+
}
|
|
2768
|
+
),
|
|
2769
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2770
|
+
"video",
|
|
2771
|
+
{
|
|
2772
|
+
autoPlay: true,
|
|
2773
|
+
muted: true,
|
|
2774
|
+
loop: true,
|
|
2775
|
+
playsInline: true,
|
|
2776
|
+
poster,
|
|
2777
|
+
src: videoSrc,
|
|
2778
|
+
className: "hidden md:block w-full h-full object-cover"
|
|
2779
|
+
}
|
|
2780
|
+
)
|
|
2781
|
+
] }),
|
|
2782
|
+
/* @__PURE__ */ jsxRuntime.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: [
|
|
2759
2783
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "m-0 text-hero-title max-w-[436px]", children: title }),
|
|
2760
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "m-0 text-xs font-bold leading-5", children: description }),
|
|
2784
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-md:hidden m-0 text-xs font-bold leading-5", children: description }),
|
|
2761
2785
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2762
2786
|
"button",
|
|
2763
2787
|
{
|
|
2764
2788
|
type: "button",
|
|
2765
2789
|
onClick: handleCtaClick,
|
|
2766
|
-
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",
|
|
2790
|
+
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",
|
|
2767
2791
|
children: cta.label
|
|
2768
2792
|
}
|
|
2769
2793
|
)
|
|
2770
2794
|
] })
|
|
2771
2795
|
] }),
|
|
2772
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative -mt-[68px] py-sm px-[25px]", children: [
|
|
2796
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative -mt-[68px] py-sm px-[25px] hidden md:block", children: [
|
|
2773
2797
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2774
2798
|
"button",
|
|
2775
2799
|
{
|
|
@@ -2828,7 +2852,35 @@ var TripsCategorySection = react.forwardRef(
|
|
|
2828
2852
|
)
|
|
2829
2853
|
}
|
|
2830
2854
|
)
|
|
2831
|
-
] })
|
|
2855
|
+
] }),
|
|
2856
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative -mt-[60px] pb-md md:hidden flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2857
|
+
react$1.Swiper,
|
|
2858
|
+
{
|
|
2859
|
+
effect: "cards",
|
|
2860
|
+
grabCursor: true,
|
|
2861
|
+
modules: [modules.EffectCards],
|
|
2862
|
+
className: "w-[74vw] [aspect-ratio:289/367]",
|
|
2863
|
+
style: { overflow: "visible" },
|
|
2864
|
+
children: trips.map((trip) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2865
|
+
react$1.SwiperSlide,
|
|
2866
|
+
{
|
|
2867
|
+
style: { borderRadius: "12px", overflow: "hidden" },
|
|
2868
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2869
|
+
TripCategoryCard,
|
|
2870
|
+
{
|
|
2871
|
+
image: trip.image,
|
|
2872
|
+
alt: trip.alt,
|
|
2873
|
+
destination: trip.destination,
|
|
2874
|
+
startingPrice: trip.startingPrice,
|
|
2875
|
+
href: trip.href,
|
|
2876
|
+
className: "w-full h-full rounded-xl shrink-0"
|
|
2877
|
+
}
|
|
2878
|
+
)
|
|
2879
|
+
},
|
|
2880
|
+
`${trip.image}|${trip.destination}|mobile`
|
|
2881
|
+
))
|
|
2882
|
+
}
|
|
2883
|
+
) })
|
|
2832
2884
|
] });
|
|
2833
2885
|
}
|
|
2834
2886
|
);
|