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