@planetaexo/design-system 0.76.0 → 0.77.1
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 +26 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -3
- package/dist/index.d.ts +31 -3
- package/dist/index.js +26 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -11637,7 +11637,7 @@ function Picture(_a) {
|
|
|
11637
11637
|
var _a2, _b2;
|
|
11638
11638
|
const ref = React20__namespace.useRef(null);
|
|
11639
11639
|
const [visible, setVisible] = React20__namespace.useState(eager);
|
|
11640
|
-
const [loaded, setLoaded] = React20__namespace.useState(
|
|
11640
|
+
const [loaded, setLoaded] = React20__namespace.useState(eager);
|
|
11641
11641
|
React20__namespace.useEffect(() => {
|
|
11642
11642
|
if (eager || visible) return;
|
|
11643
11643
|
const el = ref.current;
|
|
@@ -11657,7 +11657,10 @@ function Picture(_a) {
|
|
|
11657
11657
|
io.observe(el);
|
|
11658
11658
|
return () => io.disconnect();
|
|
11659
11659
|
}, [eager, visible, rootMargin]);
|
|
11660
|
+
const prevSrcRef = React20__namespace.useRef(src);
|
|
11660
11661
|
React20__namespace.useEffect(() => {
|
|
11662
|
+
if (prevSrcRef.current === src) return;
|
|
11663
|
+
prevSrcRef.current = src;
|
|
11661
11664
|
setLoaded(false);
|
|
11662
11665
|
}, [src]);
|
|
11663
11666
|
const webp = webpVariantUrl(src);
|
|
@@ -12036,7 +12039,7 @@ function Lightbox({
|
|
|
12036
12039
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12037
12040
|
"div",
|
|
12038
12041
|
{
|
|
12039
|
-
className: "fixed inset-0 z-
|
|
12042
|
+
className: "fixed inset-0 z-[1000] bg-black/92 flex flex-col items-center justify-center",
|
|
12040
12043
|
onClick: onClose,
|
|
12041
12044
|
children: [
|
|
12042
12045
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12224,7 +12227,7 @@ function FeedLightbox({
|
|
|
12224
12227
|
if (frame) cancelAnimationFrame(frame);
|
|
12225
12228
|
};
|
|
12226
12229
|
}, []);
|
|
12227
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "fixed inset-0 z-
|
|
12230
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "fixed inset-0 z-[1000] bg-zinc-950 text-white", children: [
|
|
12228
12231
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12229
12232
|
"div",
|
|
12230
12233
|
{
|
|
@@ -14872,6 +14875,8 @@ function useHlsVideo(videoRef, src) {
|
|
|
14872
14875
|
}
|
|
14873
14876
|
function TripHeader({
|
|
14874
14877
|
images,
|
|
14878
|
+
heroImageSrcSet,
|
|
14879
|
+
heroImageSizes,
|
|
14875
14880
|
videoUrl,
|
|
14876
14881
|
title,
|
|
14877
14882
|
breadcrumb,
|
|
@@ -14951,6 +14956,8 @@ function TripHeader({
|
|
|
14951
14956
|
Picture,
|
|
14952
14957
|
{
|
|
14953
14958
|
src: validImages[0],
|
|
14959
|
+
srcSet: heroImageSrcSet,
|
|
14960
|
+
sizes: heroImageSizes,
|
|
14954
14961
|
alt: "",
|
|
14955
14962
|
"aria-hidden": true,
|
|
14956
14963
|
fetchPriority: "high",
|
|
@@ -14989,6 +14996,8 @@ function TripHeader({
|
|
|
14989
14996
|
Picture,
|
|
14990
14997
|
{
|
|
14991
14998
|
src: currentSrc,
|
|
14999
|
+
srcSet: safeIndex === 0 ? heroImageSrcSet : void 0,
|
|
15000
|
+
sizes: safeIndex === 0 ? heroImageSizes : void 0,
|
|
14992
15001
|
alt: title,
|
|
14993
15002
|
fetchPriority: safeIndex === 0 ? "high" : "auto",
|
|
14994
15003
|
eager: safeIndex === 0,
|
|
@@ -15561,6 +15570,8 @@ function TripPage({
|
|
|
15561
15570
|
duration,
|
|
15562
15571
|
groupSize,
|
|
15563
15572
|
images,
|
|
15573
|
+
heroImageSrcSet,
|
|
15574
|
+
heroImageSizes,
|
|
15564
15575
|
videoUrl,
|
|
15565
15576
|
breadcrumb,
|
|
15566
15577
|
chips,
|
|
@@ -15792,6 +15803,8 @@ function TripPage({
|
|
|
15792
15803
|
TripHeader,
|
|
15793
15804
|
{
|
|
15794
15805
|
images,
|
|
15806
|
+
heroImageSrcSet,
|
|
15807
|
+
heroImageSizes,
|
|
15795
15808
|
videoUrl,
|
|
15796
15809
|
title,
|
|
15797
15810
|
breadcrumb,
|
|
@@ -16301,6 +16314,7 @@ function CategoryPage2({
|
|
|
16301
16314
|
faqInitialCount = 5,
|
|
16302
16315
|
gallery,
|
|
16303
16316
|
galleryTitle,
|
|
16317
|
+
galleryLightbox = "classic",
|
|
16304
16318
|
loadMoreLabel,
|
|
16305
16319
|
showLessLabel,
|
|
16306
16320
|
seeMoreLabel,
|
|
@@ -16563,7 +16577,15 @@ function CategoryPage2({
|
|
|
16563
16577
|
] }),
|
|
16564
16578
|
gallery && gallery.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "pt-4", children: [
|
|
16565
16579
|
galleryTitle && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "mx-auto w-full max-w-6xl px-6 sm:px-8 mb-6 text-2xl sm:text-3xl font-bold text-foreground font-heading", children: galleryTitle }),
|
|
16566
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16580
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16581
|
+
PhotoGallery,
|
|
16582
|
+
{
|
|
16583
|
+
photos: gallery,
|
|
16584
|
+
variant: "gridCompact",
|
|
16585
|
+
initialVisible: 8,
|
|
16586
|
+
lightbox: galleryLightbox
|
|
16587
|
+
}
|
|
16588
|
+
)
|
|
16567
16589
|
] }),
|
|
16568
16590
|
(aboutTitle || aboutContent || blogPostsTitle || blogPosts && blogPosts.length > 0) && /* @__PURE__ */ jsxRuntime.jsx("section", { className: "w-full bg-gray-100", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto w-full max-w-6xl px-6 sm:px-8 py-14", children: [
|
|
16569
16591
|
(aboutTitle || blogPostsTitle) && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl sm:text-3xl font-bold text-foreground font-heading mb-5", children: aboutTitle != null ? aboutTitle : blogPostsTitle }),
|