@loafmarkets/ui 0.1.389 → 0.1.391
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 +41 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5540,9 +5540,11 @@ var Header = ({
|
|
|
5540
5540
|
{
|
|
5541
5541
|
type: "button",
|
|
5542
5542
|
onClick: (event) => {
|
|
5543
|
-
|
|
5543
|
+
event?.preventDefault();
|
|
5544
|
+
closeMenus();
|
|
5545
|
+
onSettingsClick?.();
|
|
5544
5546
|
},
|
|
5545
|
-
children: /* @__PURE__ */ jsx(MenuItem, { children: "
|
|
5547
|
+
children: /* @__PURE__ */ jsx(MenuItem, { children: "Refer" })
|
|
5546
5548
|
}
|
|
5547
5549
|
),
|
|
5548
5550
|
onSettingsClick && /* @__PURE__ */ jsx(
|
|
@@ -9522,7 +9524,21 @@ function GalleryMapSection({
|
|
|
9522
9524
|
] }),
|
|
9523
9525
|
isMobile ? /* @__PURE__ */ jsx(StackedGallery, { images, onPhotoClick }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9524
9526
|
/* @__PURE__ */ jsxs(Carousel, { children: [
|
|
9525
|
-
showVideo && videoUrl && /* @__PURE__ */ jsx(VideoOverlay, { children: /* @__PURE__ */ jsx(
|
|
9527
|
+
showVideo && videoUrl && /* @__PURE__ */ jsx(VideoOverlay, { children: /* @__PURE__ */ jsx(
|
|
9528
|
+
"video",
|
|
9529
|
+
{
|
|
9530
|
+
autoPlay: true,
|
|
9531
|
+
loop: true,
|
|
9532
|
+
playsInline: true,
|
|
9533
|
+
muted: true,
|
|
9534
|
+
controls: true,
|
|
9535
|
+
onVolumeChange: (e) => {
|
|
9536
|
+
if (!e.currentTarget.muted) e.currentTarget.muted = true;
|
|
9537
|
+
},
|
|
9538
|
+
style: { width: "100%", height: "100%", objectFit: "cover", borderRadius: 8 },
|
|
9539
|
+
children: /* @__PURE__ */ jsx("source", { src: videoUrl, type: "video/mp4" })
|
|
9540
|
+
}
|
|
9541
|
+
) }),
|
|
9526
9542
|
/* @__PURE__ */ jsx(Track, { style: { transform: `translateX(-${carouselIndex * 100}%)` }, children: images.map((img, idx) => /* @__PURE__ */ jsxs(Slide, { onClick: () => onPhotoClick?.(idx), children: [
|
|
9527
9543
|
/* @__PURE__ */ jsx("img", { src: img.src, alt: img.title }),
|
|
9528
9544
|
/* @__PURE__ */ jsxs(SlideCaption, { children: [
|
|
@@ -9642,8 +9658,12 @@ function GalleryMapSection({
|
|
|
9642
9658
|
autoPlay: true,
|
|
9643
9659
|
controls: true,
|
|
9644
9660
|
playsInline: true,
|
|
9661
|
+
muted: true,
|
|
9645
9662
|
controlsList: "nodownload",
|
|
9646
9663
|
disablePictureInPicture: true,
|
|
9664
|
+
onVolumeChange: (e) => {
|
|
9665
|
+
if (!e.currentTarget.muted) e.currentTarget.muted = true;
|
|
9666
|
+
},
|
|
9647
9667
|
onClick: (e) => e.stopPropagation(),
|
|
9648
9668
|
onContextMenu: (e) => e.preventDefault()
|
|
9649
9669
|
}
|
|
@@ -9939,6 +9959,15 @@ var Carousel = styled10.div`
|
|
|
9939
9959
|
var VideoOverlay = styled10.div`
|
|
9940
9960
|
position: absolute; inset: 0; z-index: 3; background: #000; border-radius: 8px;
|
|
9941
9961
|
display: flex; align-items: center; justify-content: center;
|
|
9962
|
+
|
|
9963
|
+
/* Property videos stay permanently muted — remove the volume + mute buttons
|
|
9964
|
+
from the native player (Chrome/Edge/Safari/iOS/Android). Firefox ignores
|
|
9965
|
+
these and is covered by the onVolumeChange force-mute fallback. */
|
|
9966
|
+
video::-webkit-media-controls-mute-button,
|
|
9967
|
+
video::-webkit-media-controls-volume-slider,
|
|
9968
|
+
video::-webkit-media-controls-volume-control-container {
|
|
9969
|
+
display: none !important;
|
|
9970
|
+
}
|
|
9942
9971
|
`;
|
|
9943
9972
|
var Track = styled10.div`
|
|
9944
9973
|
display: flex; transition: transform 0.4s ease;
|
|
@@ -10093,6 +10122,13 @@ var FullVideoOverlay = styled10.div`
|
|
|
10093
10122
|
border-radius: 10px;
|
|
10094
10123
|
background: #000;
|
|
10095
10124
|
}
|
|
10125
|
+
/* Permanent mute — strip the volume + mute buttons (Firefox handled by the
|
|
10126
|
+
onVolumeChange fallback). */
|
|
10127
|
+
video::-webkit-media-controls-mute-button,
|
|
10128
|
+
video::-webkit-media-controls-volume-slider,
|
|
10129
|
+
video::-webkit-media-controls-volume-control-container {
|
|
10130
|
+
display: none !important;
|
|
10131
|
+
}
|
|
10096
10132
|
`;
|
|
10097
10133
|
var FullVideoClose = styled10.button`
|
|
10098
10134
|
position: absolute;
|
|
@@ -10679,6 +10715,8 @@ var Wrapper = styled10.div`
|
|
|
10679
10715
|
display: flex;
|
|
10680
10716
|
flex-direction: column;
|
|
10681
10717
|
gap: 1.5rem;
|
|
10718
|
+
/* Breathing room before the footer below the last section (Trading Hours). */
|
|
10719
|
+
padding-bottom: 2.5rem;
|
|
10682
10720
|
`;
|
|
10683
10721
|
var GallerySpecRow = styled10.div`
|
|
10684
10722
|
display: grid;
|