@page-speed/maps 0.2.3 → 0.2.4
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/components/geo-map.cjs +9 -8
- package/dist/components/geo-map.cjs.map +1 -1
- package/dist/components/geo-map.js +9 -8
- package/dist/components/geo-map.js.map +1 -1
- package/dist/components/index.cjs +9 -8
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +9 -8
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +9 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -861,8 +861,9 @@ function MarkerActions({ actions }) {
|
|
|
861
861
|
...rest
|
|
862
862
|
} = action;
|
|
863
863
|
const buttonStyles = cn(
|
|
864
|
-
"
|
|
865
|
-
|
|
864
|
+
"gap-2 px-4 py-2 rounded-md font-medium transition-colors duration-500",
|
|
865
|
+
"flex justify-center items-center",
|
|
866
|
+
variant === "outline" ? "border border-border bg-card text-card-foreground hover:bg-primary hover:text-primary-foreground" : "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
866
867
|
size === "sm" && "text-sm px-3 py-1.5",
|
|
867
868
|
size === "icon" && "p-2",
|
|
868
869
|
actionClassName
|
|
@@ -966,7 +967,7 @@ function MarkerMediaCarousel({
|
|
|
966
967
|
children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { name: "lucide/arrow-right", size: 18 })
|
|
967
968
|
}
|
|
968
969
|
),
|
|
969
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute bottom-2 left-1/2 flex -translate-x-1/2 items-center gap-1.5 z-
|
|
970
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute bottom-2 left-1/2 flex -translate-x-1/2 items-center gap-1.5 z-2", children: mediaItems.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
970
971
|
"button",
|
|
971
972
|
{
|
|
972
973
|
type: "button",
|
|
@@ -1195,10 +1196,10 @@ function GeoMap({
|
|
|
1195
1196
|
longitude: defaultViewState?.longitude ?? firstCoordinate.longitude,
|
|
1196
1197
|
zoom: defaultViewState?.zoom ?? calculatedZoom
|
|
1197
1198
|
});
|
|
1198
|
-
const [dynamicPanelPosition, setDynamicPanelPosition] = React3__namespace.useState(
|
|
1199
|
-
|
|
1199
|
+
const [dynamicPanelPosition, setDynamicPanelPosition] = React3__namespace.useState(panelPosition);
|
|
1200
|
+
const viewStateRef = React3__namespace.useRef(
|
|
1201
|
+
uncontrolledViewState
|
|
1200
1202
|
);
|
|
1201
|
-
const viewStateRef = React3__namespace.useRef(uncontrolledViewState);
|
|
1202
1203
|
React3__namespace.useEffect(() => {
|
|
1203
1204
|
if (!viewState && !defaultViewState) {
|
|
1204
1205
|
setUncontrolledViewState((prev) => {
|
|
@@ -1572,7 +1573,7 @@ function GeoMap({
|
|
|
1572
1573
|
{
|
|
1573
1574
|
ref: containerRef,
|
|
1574
1575
|
className: cn(
|
|
1575
|
-
"relative
|
|
1576
|
+
"relative",
|
|
1576
1577
|
// Remove overflow-hidden from outer container to allow panel to overflow
|
|
1577
1578
|
className
|
|
1578
1579
|
),
|
|
@@ -1587,7 +1588,7 @@ function GeoMap({
|
|
|
1587
1588
|
"div",
|
|
1588
1589
|
{
|
|
1589
1590
|
className: cn(
|
|
1590
|
-
"w-full
|
|
1591
|
+
"w-full",
|
|
1591
1592
|
// Only apply default height class if mapWrapperClassName not provided
|
|
1592
1593
|
!mapWrapperClassName && `h-[${calculatedHeight}px]`,
|
|
1593
1594
|
mapWrapperClassName
|