@loafmarkets/ui 0.1.389 → 0.1.390
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.js +37 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9547,7 +9547,21 @@ function GalleryMapSection({
|
|
|
9547
9547
|
] }),
|
|
9548
9548
|
isMobile ? /* @__PURE__ */ jsxRuntime.jsx(StackedGallery, { images, onPhotoClick }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
9549
9549
|
/* @__PURE__ */ jsxRuntime.jsxs(Carousel, { children: [
|
|
9550
|
-
showVideo && videoUrl && /* @__PURE__ */ jsxRuntime.jsx(VideoOverlay, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9550
|
+
showVideo && videoUrl && /* @__PURE__ */ jsxRuntime.jsx(VideoOverlay, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9551
|
+
"video",
|
|
9552
|
+
{
|
|
9553
|
+
autoPlay: true,
|
|
9554
|
+
loop: true,
|
|
9555
|
+
playsInline: true,
|
|
9556
|
+
muted: true,
|
|
9557
|
+
controls: true,
|
|
9558
|
+
onVolumeChange: (e) => {
|
|
9559
|
+
if (!e.currentTarget.muted) e.currentTarget.muted = true;
|
|
9560
|
+
},
|
|
9561
|
+
style: { width: "100%", height: "100%", objectFit: "cover", borderRadius: 8 },
|
|
9562
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoUrl, type: "video/mp4" })
|
|
9563
|
+
}
|
|
9564
|
+
) }),
|
|
9551
9565
|
/* @__PURE__ */ jsxRuntime.jsx(Track, { style: { transform: `translateX(-${carouselIndex * 100}%)` }, children: images.map((img, idx) => /* @__PURE__ */ jsxRuntime.jsxs(Slide, { onClick: () => onPhotoClick?.(idx), children: [
|
|
9552
9566
|
/* @__PURE__ */ jsxRuntime.jsx("img", { src: img.src, alt: img.title }),
|
|
9553
9567
|
/* @__PURE__ */ jsxRuntime.jsxs(SlideCaption, { children: [
|
|
@@ -9667,8 +9681,12 @@ function GalleryMapSection({
|
|
|
9667
9681
|
autoPlay: true,
|
|
9668
9682
|
controls: true,
|
|
9669
9683
|
playsInline: true,
|
|
9684
|
+
muted: true,
|
|
9670
9685
|
controlsList: "nodownload",
|
|
9671
9686
|
disablePictureInPicture: true,
|
|
9687
|
+
onVolumeChange: (e) => {
|
|
9688
|
+
if (!e.currentTarget.muted) e.currentTarget.muted = true;
|
|
9689
|
+
},
|
|
9672
9690
|
onClick: (e) => e.stopPropagation(),
|
|
9673
9691
|
onContextMenu: (e) => e.preventDefault()
|
|
9674
9692
|
}
|
|
@@ -9964,6 +9982,15 @@ var Carousel = styled10__default.default.div`
|
|
|
9964
9982
|
var VideoOverlay = styled10__default.default.div`
|
|
9965
9983
|
position: absolute; inset: 0; z-index: 3; background: #000; border-radius: 8px;
|
|
9966
9984
|
display: flex; align-items: center; justify-content: center;
|
|
9985
|
+
|
|
9986
|
+
/* Property videos stay permanently muted — remove the volume + mute buttons
|
|
9987
|
+
from the native player (Chrome/Edge/Safari/iOS/Android). Firefox ignores
|
|
9988
|
+
these and is covered by the onVolumeChange force-mute fallback. */
|
|
9989
|
+
video::-webkit-media-controls-mute-button,
|
|
9990
|
+
video::-webkit-media-controls-volume-slider,
|
|
9991
|
+
video::-webkit-media-controls-volume-control-container {
|
|
9992
|
+
display: none !important;
|
|
9993
|
+
}
|
|
9967
9994
|
`;
|
|
9968
9995
|
var Track = styled10__default.default.div`
|
|
9969
9996
|
display: flex; transition: transform 0.4s ease;
|
|
@@ -10118,6 +10145,13 @@ var FullVideoOverlay = styled10__default.default.div`
|
|
|
10118
10145
|
border-radius: 10px;
|
|
10119
10146
|
background: #000;
|
|
10120
10147
|
}
|
|
10148
|
+
/* Permanent mute — strip the volume + mute buttons (Firefox handled by the
|
|
10149
|
+
onVolumeChange fallback). */
|
|
10150
|
+
video::-webkit-media-controls-mute-button,
|
|
10151
|
+
video::-webkit-media-controls-volume-slider,
|
|
10152
|
+
video::-webkit-media-controls-volume-control-container {
|
|
10153
|
+
display: none !important;
|
|
10154
|
+
}
|
|
10121
10155
|
`;
|
|
10122
10156
|
var FullVideoClose = styled10__default.default.button`
|
|
10123
10157
|
position: absolute;
|
|
@@ -10704,6 +10738,8 @@ var Wrapper = styled10__default.default.div`
|
|
|
10704
10738
|
display: flex;
|
|
10705
10739
|
flex-direction: column;
|
|
10706
10740
|
gap: 1.5rem;
|
|
10741
|
+
/* Breathing room before the footer below the last section (Trading Hours). */
|
|
10742
|
+
padding-bottom: 2.5rem;
|
|
10707
10743
|
`;
|
|
10708
10744
|
var GallerySpecRow = styled10__default.default.div`
|
|
10709
10745
|
display: grid;
|