@brightlocal/ui-components 2.14.0 → 2.16.0

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/map.d.ts CHANGED
@@ -8,23 +8,84 @@ import * as React from "react";
8
8
  declare const MapTypeId: {
9
9
  /** Default road map view */
10
10
  readonly ROADMAP: "roadmap";
11
- /** Satellite imagery */
11
+ /** @deprecated Satellite imagery — prefer cloud-based map styling via Map ID */
12
12
  readonly SATELLITE: "satellite";
13
13
  };
14
14
  /**
15
15
  * Union of all map type identifier values.
16
16
  */
17
17
  type MapTypeIdValue = (typeof MapTypeId)[keyof typeof MapTypeId];
18
- type MapGridPinVariant = "primary" | "secondary" | "destructive" | "outline" | "warning";
18
+ /**
19
+ * Visual variant for map styling.
20
+ * - `"default"` — Standard Google Maps appearance (no custom styles in light mode)
21
+ * - `"muted"` — Desaturated, softened map appearance so UI elements stand out
22
+ */
23
+ type MapStyleVariant = "default" | "muted";
24
+ /**
25
+ * A single Google Maps JSON style rule.
26
+ * Matches the `google.maps.MapTypeStyle` shape so values can be passed
27
+ * directly to the `styles` prop of `@vis.gl/react-google-maps` `<Map>`.
28
+ */
29
+ type MapStyleRule = {
30
+ featureType?: string;
31
+ elementType?: string;
32
+ stylers: Record<string, string | number>[];
33
+ };
34
+ /**
35
+ * Built-in map style presets keyed by `variant.theme`.
36
+ *
37
+ * - `default.light` — empty (uses native Google Maps styling)
38
+ * - `default.dark` — dark colour palette based on "Example 3 Dark"
39
+ * - `muted.light` — desaturated/lightened based on "Example 2" (`sat -40, light +20`)
40
+ * - `muted.dark` — same dark palette as `default.dark`
41
+ */
42
+ declare const MAP_STYLES: Record<MapStyleVariant, {
43
+ light: MapStyleRule[];
44
+ dark: MapStyleRule[];
45
+ }>;
46
+ /**
47
+ * Returns the appropriate `google.maps.MapTypeStyle[]` for the given variant
48
+ * and the current color scheme (light/dark). Pass the returned array to the
49
+ * `styles` prop of `@vis.gl/react-google-maps` `<Map>`.
50
+ *
51
+ * Dark mode is detected automatically via the `dark` class on `document.body`.
52
+ *
53
+ * > **Note:** JSON styling works with **raster maps only** (no `mapId` prop).
54
+ * > For vector maps use [Cloud-based Map Styling](https://developers.google.com/maps/documentation/javascript/cloud-based-map-styling).
55
+ *
56
+ * @example
57
+ * ```tsx
58
+ * import { useMapStyles } from "./map";
59
+ *
60
+ * function MyMap() {
61
+ * const styles = useMapStyles("muted");
62
+ * return <Map styles={styles} defaultCenter={center} defaultZoom={14} />;
63
+ * }
64
+ * ```
65
+ */
66
+ declare function useMapStyles(variant?: MapStyleVariant): MapStyleRule[];
67
+ type ResolvedVariant = "strong" | "moderate" | "weak" | "unranked" | "error";
68
+ /** @deprecated Legacy variant names kept for backward compatibility. */
69
+ type LegacyVariant = "primary" | "secondary" | "destructive" | "outline" | "warning";
70
+ type MapGridPinVariant = ResolvedVariant | LegacyVariant;
71
+ /**
72
+ * Background color classes for each ranking variant.
73
+ * Derived from {@link RANKING_COLORS} — used by MapGridPin (CVA) and MapLegendItem.
74
+ */
75
+ declare const mapGridPinColorMap: Record<ResolvedVariant, string>;
19
76
  /**
20
77
  * Props for the MapGridPin component.
21
78
  */
22
- interface MapGridPinProps extends Omit<React.ComponentProps<"button">, "children" | "type"> {
79
+ interface MapGridPinProps extends Omit<React.ComponentProps<"div">, "children"> {
23
80
  /** Value displayed inside the pin (number or short label) */
24
81
  value: number | string;
25
- /** Button variant — consumer controls this based on value thresholds */
82
+ /** Color variant — consumer controls this based on value thresholds */
26
83
  variant?: MapGridPinVariant;
27
- /** Enable infinite pulse animation radiating from the pin */
84
+ /** Show loading appearance (neutral styling, overrides variant colors) */
85
+ loading?: boolean;
86
+ /**
87
+ * @deprecated No longer rendered. Kept for backward compatibility.
88
+ */
28
89
  pulse?: boolean;
29
90
  /** Required test hook identifier */
30
91
  dataHook: string;
@@ -34,25 +95,206 @@ interface MapGridPinProps extends Omit<React.ComponentProps<"button">, "children
34
95
  trackingLabel?: string;
35
96
  }
36
97
  /**
37
- * A circular map pin button that displays a numeric value with a colored background.
38
- * Uses the Button component internally. Color is determined by the `variant` prop —
39
- * the consumer controls which variant to apply based on the value.
40
- * Supports an optional `pulse` animation for emphasis.
98
+ * A circular map pin that displays a numeric value with a colored background.
99
+ * Renders as a non-focusable `div` (compatible with Google Maps AdvancedMarkerElement).
100
+ * Color is determined by the `variant` prop — the consumer controls which variant
101
+ * to apply based on the value.
41
102
  */
42
- declare const MapGridPin: React.ForwardRefExoticComponent<Omit<MapGridPinProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
103
+ declare const MapGridPin: React.ForwardRefExoticComponent<Omit<MapGridPinProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
104
+ declare function resolveClusterPinColors(): Record<ResolvedVariant, string>;
105
+ /**
106
+ * Resolved hex color values for each ranking variant.
107
+ * Reads from CSS custom properties at runtime so colors stay in sync
108
+ * with the design-token pipeline. Falls back to hardcoded hex for SSR.
109
+ *
110
+ * @deprecated Prefer calling {@link resolveClusterPinColors} directly
111
+ * for guaranteed up-to-date values. This static snapshot is kept for
112
+ * backward compatibility.
113
+ */
114
+ declare const clusterPinHexColors: Record<ResolvedVariant, string>;
115
+ /** A single segment in a cluster pin pie chart. */
116
+ interface ClusterPinSegment {
117
+ /** Ranking variant that determines this segment's color */
118
+ variant: ResolvedVariant;
119
+ /** Number of pins with this variant */
120
+ count: number;
121
+ }
122
+ /**
123
+ * Generates an SVG string for a cluster pie-chart pin.
124
+ *
125
+ * The SVG is a circle divided into colored sectors proportional to each
126
+ * segment's count, with a white inner circle displaying the total count.
127
+ * Colors are resolved from design-token CSS custom properties at runtime
128
+ * via {@link resolveClusterPinColors} and match the {@link MapGridPin}
129
+ * ranking palette.
130
+ *
131
+ * @param segments - Ranking variant distribution for the cluster
132
+ * @param total - Total count displayed in the center
133
+ *
134
+ * @example
135
+ * ```tsx
136
+ * // Generate SVG for a cluster with mixed rankings
137
+ * const svg = createClusterPinSvg(
138
+ * [
139
+ * { variant: "strong", count: 5 },
140
+ * { variant: "moderate", count: 3 },
141
+ * { variant: "weak", count: 1 },
142
+ * ],
143
+ * 9
144
+ * );
145
+ * ```
146
+ *
147
+ * @example
148
+ * ```tsx
149
+ * // Wire up with @googlemaps/markerclusterer
150
+ * import { createClusterPinElement } from "./map";
151
+ *
152
+ * new MarkerClusterer({
153
+ * map,
154
+ * markers,
155
+ * renderer: {
156
+ * render(cluster) {
157
+ * const el = createClusterPinElement({
158
+ * markers: cluster.markers,
159
+ * count: cluster.count,
160
+ * getVariant: (m) => dataMap.get(m)?.variant ?? "unranked",
161
+ * });
162
+ * return new google.maps.marker.AdvancedMarkerElement({
163
+ * position: cluster.position,
164
+ * content: el,
165
+ * zIndex: 1000 + cluster.count,
166
+ * });
167
+ * },
168
+ * },
169
+ * });
170
+ * ```
171
+ */
172
+ declare function createClusterPinSvg(segments: ClusterPinSegment[], total: number): string;
173
+ /**
174
+ * Options for {@link createClusterPinElement}.
175
+ */
176
+ interface CreateClusterPinElementOptions {
177
+ /** Markers grouped in this cluster. Each is passed to `getVariant`. */
178
+ markers: unknown[];
179
+ /** Total marker count for the cluster label. */
180
+ count: number;
181
+ /**
182
+ * Extracts the ranking variant from a single marker.
183
+ * Called once per marker; unknown markers should return `"unranked"`.
184
+ */
185
+ getVariant: (marker: unknown) => ResolvedVariant;
186
+ }
187
+ /**
188
+ * Creates an SVG DOM element for a cluster pin, ready to be used as
189
+ * `content` for a Google Maps `AdvancedMarkerElement`.
190
+ *
191
+ * Tallies the ranking variants across all markers in the cluster,
192
+ * generates a pie-chart SVG via {@link createClusterPinSvg}, and
193
+ * returns the parsed `SVGElement`.
194
+ *
195
+ * @example
196
+ * ```tsx
197
+ * import { createClusterPinElement } from "./map";
198
+ * import { MarkerClusterer } from "@googlemaps/markerclusterer";
199
+ *
200
+ * // Store per-marker data in a WeakMap
201
+ * const pinData = new WeakMap<google.maps.marker.AdvancedMarkerElement, { variant: "strong" | "moderate" | "weak" | "unranked" }>();
202
+ *
203
+ * new MarkerClusterer({
204
+ * map,
205
+ * markers,
206
+ * renderer: {
207
+ * render(cluster) {
208
+ * const el = createClusterPinElement({
209
+ * markers: cluster.markers,
210
+ * count: cluster.count,
211
+ * getVariant: (m) => pinData.get(m)?.variant ?? "unranked",
212
+ * });
213
+ * return new google.maps.marker.AdvancedMarkerElement({
214
+ * position: cluster.position,
215
+ * content: el,
216
+ * zIndex: 1000 + cluster.count,
217
+ * });
218
+ * },
219
+ * },
220
+ * });
221
+ * ```
222
+ */
223
+ declare function createClusterPinElement(options: CreateClusterPinElementOptions): SVGElement;
224
+ /**
225
+ * Props for the MapClusterPin component.
226
+ */
227
+ interface MapClusterPinProps extends Omit<React.ComponentProps<"div">, "children"> {
228
+ /** Distribution of ranking variants to display as pie sectors */
229
+ segments: ClusterPinSegment[];
230
+ /** Total count displayed in the center */
231
+ count: number;
232
+ /** Required test hook identifier */
233
+ dataHook: string;
234
+ /** Analytics element identifier */
235
+ trackingEl?: string;
236
+ /** Analytics label */
237
+ trackingLabel?: string;
238
+ }
239
+ /**
240
+ * A cluster pin that visualises the ranking distribution of grouped map pins
241
+ * as a pie chart. Each colored sector is proportional to the number of pins
242
+ * with that ranking variant; the total count is displayed in the center.
243
+ *
244
+ * Use as a standalone React component in stories or documentation.
245
+ * For Google Maps integration, use {@link createClusterPinElement} instead.
246
+ */
247
+ declare const MapClusterPin: React.ForwardRefExoticComponent<Omit<MapClusterPinProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
43
248
  /**
44
249
  * Props for the MapLocationPin component.
45
250
  */
46
- interface MapLocationPinProps extends Omit<MapGridPinProps, "value"> {
47
- /** Numeric value displayed inside the pin */
251
+ interface MapLocationPinProps extends Omit<React.ComponentProps<"div">, "children"> {
252
+ /** Icon rendered inside the pin marker @default Store icon */
253
+ icon?: React.ReactNode;
254
+ /** Play a one-time entrance — the pin springs into place from its anchor point when it mounts @default false */
255
+ animateIn?: boolean;
256
+ /** Required test hook identifier */
257
+ dataHook: string;
258
+ /** Analytics element identifier */
259
+ trackingEl?: string;
260
+ /** Analytics label */
261
+ trackingLabel?: string;
262
+ /**
263
+ * Accessible label for the pin marker.
264
+ * @default "Location"
265
+ */
266
+ ariaLabel?: string;
267
+ /**
268
+ * Numeric value displayed inside the pin.
269
+ * @deprecated Use {@link MapGridPin} for numbered pins. Provided only for
270
+ * backward compatibility — passing it renders the legacy numbered-circle marker.
271
+ */
48
272
  value?: number;
273
+ /**
274
+ * Colour variant for the legacy numbered pin.
275
+ * @deprecated Use {@link MapGridPin} for numbered pins. Provided only for
276
+ * backward compatibility — passing it renders the legacy numbered-circle marker.
277
+ */
278
+ variant?: MapGridPinVariant;
279
+ /**
280
+ * Enable the legacy pulse animation. Prefer {@link MapLocationPinProps.animateIn}
281
+ * for the teardrop entrance.
282
+ * @deprecated Use {@link MapGridPin} for numbered pins. Provided only for
283
+ * backward compatibility — passing it renders the legacy numbered-circle marker.
284
+ */
285
+ pulse?: boolean;
49
286
  }
50
287
  /**
51
- * A map location pin marker.
52
- * Thin wrapper around MapGridPin with a default value of 1.
288
+ * A teardrop-shaped map location pin with an icon inside.
289
+ * Renders an SVG pin marker with a circular icon area and drop shadow.
53
290
  * Designed to be placed inside any map marker component (e.g. AdvancedMarker).
291
+ *
292
+ * Backward compatibility: the previously published `MapLocationPin` was a thin
293
+ * wrapper around {@link MapGridPin} (a numbered circle). Passing any legacy prop
294
+ * (`value`, `variant`, or `pulse`) renders that original numbered-pin marker so
295
+ * existing consumers keep working; otherwise the new teardrop marker is rendered.
54
296
  */
55
- declare const MapLocationPin: React.ForwardRefExoticComponent<Omit<MapLocationPinProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
297
+ declare const MapLocationPin: React.ForwardRefExoticComponent<Omit<MapLocationPinProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
56
298
  /**
57
299
  * Props for the MapControlButton component.
58
300
  */
@@ -65,10 +307,14 @@ interface MapControlButtonProps extends Omit<React.ComponentProps<"button">, "ty
65
307
  trackingLabel?: string;
66
308
  /** Button type attribute */
67
309
  type?: "button" | "submit";
310
+ /** Render as compact icon-only button or with text @default true */
311
+ iconOnly?: boolean;
68
312
  }
69
313
  /**
70
314
  * A floating control button for map UIs.
71
- * Renders a square, shadowed button designed to overlay a map surface.
315
+ * Uses `outline` in light mode and `secondary` in dark mode.
316
+ * In icon-only mode (default) renders a circular icon button.
317
+ * With `iconOnly={false}` renders a pill-shaped button with text and icon.
72
318
  * Use for zoom, locate, layer toggles, and other map controls.
73
319
  */
74
320
  declare const MapControlButton: React.ForwardRefExoticComponent<Omit<MapControlButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -76,31 +322,56 @@ declare const MapControlButton: React.ForwardRefExoticComponent<Omit<MapControlB
76
322
  * Props for the MapLoadingState component.
77
323
  */
78
324
  interface MapLoadingStateProps extends React.ComponentProps<"div"> {
79
- /** Optional loading message */
80
- message?: string;
325
+ /** Content displayed centered over the map background */
326
+ children?: React.ReactNode;
81
327
  /** Required test hook identifier */
82
328
  dataHook: string;
83
329
  /** Analytics element identifier */
84
330
  trackingEl?: string;
85
331
  /** Analytics label */
86
332
  trackingLabel?: string;
333
+ /**
334
+ * Accessible label for the loading status region.
335
+ * @default "Loading map"
336
+ */
337
+ ariaLabel?: string;
87
338
  }
88
339
  /**
89
340
  * A loading placeholder for map containers.
90
- * Uses the same spinner pattern as ComboboxLoading.
91
- * Use as a fallback while the map provider is loading.
341
+ * Displays the map background image with consumer-provided content
342
+ * centered vertically and horizontally. Fills its parent container.
343
+ * Use as a fallback while the map provider is initialising.
92
344
  */
93
345
  declare const MapLoadingState: React.ForwardRefExoticComponent<Omit<MapLoadingStateProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
94
346
  /**
95
347
  * Props for the MapErrorState component.
96
348
  */
97
349
  interface MapErrorStateProps extends React.ComponentProps<"div"> {
98
- /** Error title */
350
+ /**
351
+ * Error title displayed as a heading.
352
+ * @default "We couldn't load your map rankings."
353
+ */
99
354
  title?: string;
100
- /** Error description */
355
+ /**
356
+ * Error description displayed below the title.
357
+ * @default "Reloading usually fixes it, and it won't use any credits"
358
+ */
101
359
  message?: string;
102
- /** Retry callback — renders a "Try again" button when provided */
360
+ /**
361
+ * Retry callback. When provided, renders a retry button.
362
+ * Omit to hide the retry button entirely.
363
+ */
103
364
  onRetry?: () => void;
365
+ /**
366
+ * Show the retry button in its loading state while the map reloads.
367
+ * @default false
368
+ */
369
+ retryLoading?: boolean;
370
+ /**
371
+ * Label for the retry button.
372
+ * @default "Reload"
373
+ */
374
+ retryLabel?: string;
104
375
  /** Required test hook identifier */
105
376
  dataHook: string;
106
377
  /** Analytics element identifier */
@@ -110,10 +381,33 @@ interface MapErrorStateProps extends React.ComponentProps<"div"> {
110
381
  }
111
382
  /**
112
383
  * An error state for map containers.
113
- * Displays an alert icon, title, message, and an optional retry button.
114
- * Use when the map provider fails to initialise or a network error occurs.
384
+ * Displays the Globey "fixing fault" illustration, title, and message.
385
+ * Pass `onRetry` to render a retry button; omit it to hide the button entirely.
115
386
  */
116
387
  declare const MapErrorState: React.ForwardRefExoticComponent<Omit<MapErrorStateProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
388
+ /**
389
+ * Props for the MapLegendItem component.
390
+ */
391
+ interface MapLegendItemProps extends React.ComponentProps<"span"> {
392
+ /**
393
+ * Pin ranking variant — resolves to the matching MapGridPin background color.
394
+ * Preferred over `color` so pin and legend stay in sync automatically.
395
+ */
396
+ variant?: ResolvedVariant;
397
+ /**
398
+ * Dot color as a Tailwind background class (e.g. "bg-primary").
399
+ * Use for non-ranking legends where no pin variant applies.
400
+ * Ignored when `variant` is provided.
401
+ */
402
+ color?: string;
403
+ /** Required test hook identifier */
404
+ dataHook: string;
405
+ }
406
+ /**
407
+ * A single legend entry: colored dot + label text.
408
+ * Pass `variant` to match MapGridPin colors automatically, or `color` for custom dots.
409
+ */
410
+ declare const MapLegendItem: React.ForwardRefExoticComponent<Omit<MapLegendItemProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
117
411
  /**
118
412
  * Props for the MapLegend component.
119
413
  */
@@ -124,6 +418,11 @@ interface MapLegendProps extends React.ComponentProps<"div"> {
124
418
  trackingEl?: string;
125
419
  /** Analytics label */
126
420
  trackingLabel?: string;
421
+ /**
422
+ * Accessible label for the legend group.
423
+ * @default "Map legend"
424
+ */
425
+ ariaLabel?: string;
127
426
  }
128
427
  /**
129
428
  * A flexible legend container for map UIs.
@@ -131,31 +430,84 @@ interface MapLegendProps extends React.ComponentProps<"div"> {
131
430
  */
132
431
  declare const MapLegend: React.ForwardRefExoticComponent<Omit<MapLegendProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
133
432
  /**
134
- * Return type of {@link useMapPopoverHover}.
433
+ * Options for {@link useMapPopoverClick}.
434
+ */
435
+ interface UseMapPopoverClickOptions {
436
+ /**
437
+ * When `true`, hovering a pin switches the popover to that pin
438
+ * after any pin has been clicked open (menubar-style interaction).
439
+ * Mouse-only — touch events are filtered out.
440
+ * @default false
441
+ */
442
+ hoverWhenOpen?: boolean;
443
+ }
444
+ /**
445
+ * Pointer interaction props returned by {@link UseMapPopoverClickReturn.getInteractionProps}.
446
+ */
447
+ interface MapPinInteractionProps {
448
+ onClick: () => void;
449
+ onPointerEnter?: (e: React.PointerEvent) => void;
450
+ }
451
+ /**
452
+ * Return type of {@link useMapPopoverClick}.
135
453
  */
136
- interface UseMapPopoverHoverReturn<T> {
137
- /** The item currently being hovered, or `null` when idle. Use for `open` prop. */
454
+ interface UseMapPopoverClickReturn<T> {
455
+ /** The item whose popover is open, or `null` when closed. */
138
456
  activeItem: T | null;
139
- /** Last non-null item — holds position stable during the close animation. Use for anchor positioning. */
457
+ /** Last non-null item — holds position stable during the close animation. */
140
458
  anchorItem: T | null;
141
- /** Set a new active item and cancel any pending close timer. */
459
+ /** Open the popover for the given item. If another item is active, switches instantly. */
142
460
  showItem: (item: T) => void;
143
- /** Start a delayed close (default 150 ms). Moving to another pin or the popover content cancels it. */
144
- scheduleClose: () => void;
145
- /** Cancel a pending close — call from `MapPopoverContent.onMouseEnter`. */
146
- cancelClose: () => void;
461
+ /** Close the popover. */
462
+ close: () => void;
463
+ /**
464
+ * Returns event handler props for a pin.
465
+ * Always includes `onClick`; includes `onPointerEnter` when `hoverWhenOpen` is enabled.
466
+ * Spread onto the marker element or pass individual handlers.
467
+ */
468
+ getInteractionProps: (item: T) => MapPinInteractionProps;
147
469
  }
148
470
  /**
149
- * Manages hover state for a single repositioning Popover on dense map grids.
471
+ * Manages click-to-open state for a single map popover.
472
+ *
473
+ * Designed for use with Google Maps `AdvancedMarker` — register `onClick`
474
+ * on the `AdvancedMarker` component (not on child DOM elements) to avoid the
475
+ * "Focusable child elements in AdvancedMarkerElement are not supported" warning.
476
+ *
477
+ * Pass `{ hoverWhenOpen: true }` to enable menubar-style interaction:
478
+ * the first pin requires a click, but subsequent pins switch on hover.
479
+ * Only mouse pointers trigger hover — touch is filtered out.
150
480
  *
151
- * Wire the returned callbacks to `MapGridPin` mouse events and
152
- * `MapPopoverContent` mouse events. The 150 ms grace period prevents
153
- * flicker when the pointer travels between a pin and the popover content.
481
+ * @example
482
+ * ```tsx
483
+ * const { activeItem, anchorItem, showItem, close } = useMapPopoverClick<Pin>();
484
+ *
485
+ * <Map onClick={close}>
486
+ * <AdvancedMarker position={pin} onClick={() => showItem(pin)}>
487
+ * <MapGridPin dataHook="pin" value={pin.rank} />
488
+ * </AdvancedMarker>
489
+ * </Map>
490
+ *
491
+ * <MapPopover open={!!activeItem}>
492
+ * <MapPopoverAnchor ... />
493
+ * <MapPopoverContent dataHook="popover" onEscapeKeyDown={close}>
494
+ * {activeItem && <p>{activeItem.rank}</p>}
495
+ * </MapPopoverContent>
496
+ * </MapPopover>
497
+ * ```
498
+ *
499
+ * @example
500
+ * ```tsx
501
+ * // With hoverWhenOpen — click first pin, then hover to switch
502
+ * const { activeItem, anchorItem, getInteractionProps, close } =
503
+ * useMapPopoverClick<Pin>({ hoverWhenOpen: true });
154
504
  *
155
- * @param delay - Close timer in ms.
156
- * @default 150
505
+ * <AdvancedMarker {...getInteractionProps(pin)}>
506
+ * <MapGridPin dataHook="pin" value={pin.rank} />
507
+ * </AdvancedMarker>
508
+ * ```
157
509
  */
158
- declare function useMapPopoverHover<T>(delay?: number): UseMapPopoverHoverReturn<T>;
510
+ declare function useMapPopoverClick<T>(options?: UseMapPopoverClickOptions): UseMapPopoverClickReturn<T>;
159
511
  /**
160
512
  * Controlled popover root for map UIs.
161
513
  * Re-exports `Popover` so consumers import everything from the map module.
@@ -195,13 +547,17 @@ interface MapPopoverContentProps extends PopoverContentProps {
195
547
  }
196
548
  /**
197
549
  * Popover content panel with map-specific defaults.
198
- * Compact sizing (`w-auto p-3`), top placement, and focus-prevention
199
- * for hover-activated popovers.
550
+ * Compact sizing (`w-auto max-w-68.25 p-3` — sizes to content, max 273px), top placement, and auto-focus prevention
551
+ * for click-activated map popovers.
552
+ *
553
+ * Both `onOpenAutoFocus` and `onCloseAutoFocus` are prevented by default
554
+ * to keep focus on the map surface. Override via props if standard
555
+ * focus-return behavior is needed.
200
556
  *
201
557
  * Use inside a controlled `<MapPopover open={!!activeItem}>` together
202
- * with `MapPopoverAnchor` and {@link useMapPopoverHover}.
558
+ * with `MapPopoverAnchor` and {@link useMapPopoverClick}.
203
559
  */
204
560
  declare const MapPopoverContent: React.ForwardRefExoticComponent<Omit<MapPopoverContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
205
- export { MapTypeId, MapLocationPin, MapGridPin, MapControlButton, MapLoadingState, MapErrorState, MapLegend, MapPopover, MapPopoverAnchor, MapPopoverContent, useMapPopoverHover, };
206
- export type { MapTypeIdValue, MapLocationPinProps, MapGridPinProps, MapGridPinVariant, MapControlButtonProps, MapLoadingStateProps, MapErrorStateProps, MapLegendProps, MapPopoverProps, MapPopoverAnchorProps, MapPopoverContentProps, UseMapPopoverHoverReturn, };
561
+ export { MAP_STYLES, MapTypeId, MapLocationPin, MapGridPin, MapClusterPin, mapGridPinColorMap, clusterPinHexColors, resolveClusterPinColors, createClusterPinSvg, createClusterPinElement, MapControlButton, MapLoadingState, MapErrorState, MapLegend, MapLegendItem, MapPopover, MapPopoverAnchor, MapPopoverContent, useMapStyles, useMapPopoverClick, };
562
+ export type { MapStyleVariant, MapStyleRule, MapTypeIdValue, ResolvedVariant as MapPinVariant, MapLocationPinProps, MapGridPinProps, MapGridPinVariant, MapClusterPinProps, ClusterPinSegment, CreateClusterPinElementOptions, MapControlButtonProps, MapLoadingStateProps, MapErrorStateProps, MapLegendProps, MapLegendItemProps, MapPopoverProps, MapPopoverAnchorProps, MapPopoverContentProps, UseMapPopoverClickOptions, UseMapPopoverClickReturn, MapPinInteractionProps, };
207
563
  //# sourceMappingURL=map.d.ts.map
package/dist/map.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/components/map.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EACL,OAAO,EAGP,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,oCAAoC,CAAC;AAM5C;;;;GAIG;AACH,QAAA,MAAM,SAAS;IACb,4BAA4B;;IAE5B,wBAAwB;;CAEhB,CAAC;AAEX;;GAEG;AACH,KAAK,cAAc,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAMjE,KAAK,iBAAiB,GAClB,SAAS,GACT,WAAW,GACX,aAAa,GACb,SAAS,GACT,SAAS,CAAC;AAUd;;GAEG;AACH,UAAU,eAAgB,SAAQ,IAAI,CACpC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAC9B,UAAU,GAAG,MAAM,CACpB;IACC,6DAA6D;IAC7D,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,wEAAwE;IACxE,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,6DAA6D;IAC7D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gB,CAAC;AAGvC;;GAEG;AACH,KAAK,qBAAqB,GAAG,kBAAkB,CAAC;AAMhD;;GAEG;AACH,UAAU,sBAAuB,SAAQ,mBAAmB;IAC1D,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,iBAAiB,4GAgCtB,CAAC;AAQF,OAAO,EACL,SAAS,EACT,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,GACnB,CAAC;AAEF,YAAY,EACV,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,GACzB,CAAC"}
1
+ {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/components/map.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EACL,OAAO,EAGP,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,oCAAoC,CAAC;AAM5C;;;;GAIG;AACH,QAAA,MAAM,SAAS;IACb,4BAA4B;;IAE5B,gFAAgF;;CAExE,CAAC;AAEX;;GAEG;AACH,KAAK,cAAc,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAMjE;;;;GAIG;AACH,KAAK,eAAe,GAAG,SAAS,GAAG,OAAO,CAAC;AAE3C;;;;GAIG;AACH,KAAK,YAAY,GAAG;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,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