@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.
@@ -823,8 +823,9 @@ function MarkerActions({ actions }) {
823
823
  ...rest
824
824
  } = action;
825
825
  const buttonStyles = cn(
826
- "inline-flex items-center gap-2 px-4 py-2 rounded-md font-medium transition-colors",
827
- variant === "outline" ? "border border-border bg-background hover:bg-muted" : "bg-primary text-primary-foreground hover:bg-primary/90",
826
+ "gap-2 px-4 py-2 rounded-md font-medium transition-colors duration-500",
827
+ "flex justify-center items-center",
828
+ 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",
828
829
  size === "sm" && "text-sm px-3 py-1.5",
829
830
  size === "icon" && "p-2",
830
831
  actionClassName
@@ -928,7 +929,7 @@ function MarkerMediaCarousel({
928
929
  children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { name: "lucide/arrow-right", size: 18 })
929
930
  }
930
931
  ),
931
- /* @__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(
932
+ /* @__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(
932
933
  "button",
933
934
  {
934
935
  type: "button",
@@ -1157,10 +1158,10 @@ function GeoMap({
1157
1158
  longitude: defaultViewState?.longitude ?? firstCoordinate.longitude,
1158
1159
  zoom: defaultViewState?.zoom ?? calculatedZoom
1159
1160
  });
1160
- const [dynamicPanelPosition, setDynamicPanelPosition] = React3__namespace.useState(
1161
- panelPosition
1161
+ const [dynamicPanelPosition, setDynamicPanelPosition] = React3__namespace.useState(panelPosition);
1162
+ const viewStateRef = React3__namespace.useRef(
1163
+ uncontrolledViewState
1162
1164
  );
1163
- const viewStateRef = React3__namespace.useRef(uncontrolledViewState);
1164
1165
  React3__namespace.useEffect(() => {
1165
1166
  if (!viewState && !defaultViewState) {
1166
1167
  setUncontrolledViewState((prev) => {
@@ -1534,7 +1535,7 @@ function GeoMap({
1534
1535
  {
1535
1536
  ref: containerRef,
1536
1537
  className: cn(
1537
- "relative rounded-2xl border border-border bg-background",
1538
+ "relative",
1538
1539
  // Remove overflow-hidden from outer container to allow panel to overflow
1539
1540
  className
1540
1541
  ),
@@ -1549,7 +1550,7 @@ function GeoMap({
1549
1550
  "div",
1550
1551
  {
1551
1552
  className: cn(
1552
- "w-full rounded-2xl",
1553
+ "w-full",
1553
1554
  // Only apply default height class if mapWrapperClassName not provided
1554
1555
  !mapWrapperClassName && `h-[${calculatedHeight}px]`,
1555
1556
  mapWrapperClassName