@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/index.js CHANGED
@@ -840,8 +840,9 @@ function MarkerActions({ actions }) {
840
840
  ...rest
841
841
  } = action;
842
842
  const buttonStyles = cn(
843
- "inline-flex items-center gap-2 px-4 py-2 rounded-md font-medium transition-colors",
844
- variant === "outline" ? "border border-border bg-background hover:bg-muted" : "bg-primary text-primary-foreground hover:bg-primary/90",
843
+ "gap-2 px-4 py-2 rounded-md font-medium transition-colors duration-500",
844
+ "flex justify-center items-center",
845
+ 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",
845
846
  size === "sm" && "text-sm px-3 py-1.5",
846
847
  size === "icon" && "p-2",
847
848
  actionClassName
@@ -945,7 +946,7 @@ function MarkerMediaCarousel({
945
946
  children: /* @__PURE__ */ jsx(IconComponent, { name: "lucide/arrow-right", size: 18 })
946
947
  }
947
948
  ),
948
- /* @__PURE__ */ 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__ */ jsx(
949
+ /* @__PURE__ */ 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__ */ jsx(
949
950
  "button",
950
951
  {
951
952
  type: "button",
@@ -1174,10 +1175,10 @@ function GeoMap({
1174
1175
  longitude: defaultViewState?.longitude ?? firstCoordinate.longitude,
1175
1176
  zoom: defaultViewState?.zoom ?? calculatedZoom
1176
1177
  });
1177
- const [dynamicPanelPosition, setDynamicPanelPosition] = React3.useState(
1178
- panelPosition
1178
+ const [dynamicPanelPosition, setDynamicPanelPosition] = React3.useState(panelPosition);
1179
+ const viewStateRef = React3.useRef(
1180
+ uncontrolledViewState
1179
1181
  );
1180
- const viewStateRef = React3.useRef(uncontrolledViewState);
1181
1182
  React3.useEffect(() => {
1182
1183
  if (!viewState && !defaultViewState) {
1183
1184
  setUncontrolledViewState((prev) => {
@@ -1551,7 +1552,7 @@ function GeoMap({
1551
1552
  {
1552
1553
  ref: containerRef,
1553
1554
  className: cn(
1554
- "relative rounded-2xl border border-border bg-background",
1555
+ "relative",
1555
1556
  // Remove overflow-hidden from outer container to allow panel to overflow
1556
1557
  className
1557
1558
  ),
@@ -1566,7 +1567,7 @@ function GeoMap({
1566
1567
  "div",
1567
1568
  {
1568
1569
  className: cn(
1569
- "w-full rounded-2xl",
1570
+ "w-full",
1570
1571
  // Only apply default height class if mapWrapperClassName not provided
1571
1572
  !mapWrapperClassName && `h-[${calculatedHeight}px]`,
1572
1573
  mapWrapperClassName