@harshit-wander/component-lib 1.1.5 → 1.1.7

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 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));
@@ -477,7 +479,7 @@ var FeatureCard = react.forwardRef(
477
479
  style,
478
480
  ...rest,
479
481
  children: [
480
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-sm px-lg pt-lg", children: [
482
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative z-10 flex flex-col gap-sm px-lg pt-lg", children: [
481
483
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "m-0 text-lg font-semibold leading-card text-primary", children: h }),
482
484
  d ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "m-0 text-sm font-normal leading-body text-text", children: d }) : null
483
485
  ] }),
@@ -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-9 text-text no-underline text-sm font-normal outline-none",
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))
@@ -2754,22 +2756,44 @@ var TripsCategorySection = react.forwardRef(
2754
2756
  const progressWidth = Math.min(33 + scrollProgress * (120 - 33), 120);
2755
2757
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { ref, className: cn("relative flex flex-col bg-surface", 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.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__ */ jsxRuntime.jsx("video", { autoPlay: true, muted: true, loop: true, playsInline: true, poster, src: videoSrc }) }),
2758
- /* @__PURE__ */ jsxRuntime.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: [
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
  );