@local-logic/maps 0.1.3 → 0.1.5

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.
Files changed (57) hide show
  1. package/dist/index-BO34uKgS.js +16 -0
  2. package/dist/{index-Bm2KdhhT.js → index-BP_m_WyV.js} +1 -1
  3. package/dist/{index-J8lmJ6Xj.js → index-Bbgg2AcG.js} +205 -194
  4. package/dist/{index-VFglx6lb.js → index-Bp7Yr6DA.js} +2 -2
  5. package/dist/index-Bx7faHOu.js +41 -0
  6. package/dist/index-C0inY_TA.js +41 -0
  7. package/dist/index-COB6j_V1.js +25 -0
  8. package/dist/{index-NMqp09ek.js → index-Caot5InX.js} +1 -1
  9. package/dist/index-Cz1bOBd_.js +44 -0
  10. package/dist/{index-zqYpD_YN.js → index-D49Xw0s2.js} +2 -2
  11. package/dist/index-D4t3jFAj.js +35 -0
  12. package/dist/{index-Deqck8KU.js → index-DBgzG__6.js} +12 -11
  13. package/dist/index-DEFuc-6u.js +78 -0
  14. package/dist/{index-CzqD82Cl.js → index-DQ1iIFTk.js} +2 -2
  15. package/dist/{index-CFioISlP.js → index-DsyoZEsZ.js} +11 -10
  16. package/dist/{index-CyFpPXRS.js → index-aSBXZLeP.js} +12 -11
  17. package/dist/{index-B1dI6iqp.js → index-wmShBScF.js} +1 -1
  18. package/dist/index.es.js +1 -1
  19. package/dist/index.umd.js +62 -7
  20. package/dist/src/components/Map/Root/BaseMap/Testing/index.d.ts +4 -0
  21. package/dist/src/components/Map/Root/BaseMap/Testing/index.d.ts.map +1 -0
  22. package/dist/src/components/Map/Root/BaseMap/Testing/styles.d.ts +4 -0
  23. package/dist/src/components/Map/Root/BaseMap/Testing/styles.d.ts.map +1 -0
  24. package/dist/src/components/Map/Root/BaseMap/index.d.ts.map +1 -1
  25. package/dist/src/components/Map/Root/CenterPin/Testing/index.d.ts +4 -0
  26. package/dist/src/components/Map/Root/CenterPin/Testing/index.d.ts.map +1 -0
  27. package/dist/src/components/Map/Root/CenterPin/Testing/styles.d.ts +2 -0
  28. package/dist/src/components/Map/Root/CenterPin/Testing/styles.d.ts.map +1 -0
  29. package/dist/src/components/Map/Root/CenterPin/index.d.ts.map +1 -1
  30. package/dist/src/components/Map/Root/Layers/Testing/index.d.ts +4 -0
  31. package/dist/src/components/Map/Root/Layers/Testing/index.d.ts.map +1 -0
  32. package/dist/src/components/Map/Root/Layers/Testing/styles.d.ts +9 -0
  33. package/dist/src/components/Map/Root/Layers/Testing/styles.d.ts.map +1 -0
  34. package/dist/src/components/Map/Root/Layers/index.d.ts.map +1 -1
  35. package/dist/src/components/Map/Root/Markers/Testing/index.d.ts +4 -0
  36. package/dist/src/components/Map/Root/Markers/Testing/index.d.ts.map +1 -0
  37. package/dist/src/components/Map/Root/Markers/Testing/styles.d.ts +7 -0
  38. package/dist/src/components/Map/Root/Markers/Testing/styles.d.ts.map +1 -0
  39. package/dist/src/components/Map/Root/Markers/index.d.ts.map +1 -1
  40. package/dist/src/components/Map/Root/Popup/Testing/index.d.ts +4 -0
  41. package/dist/src/components/Map/Root/Popup/Testing/index.d.ts.map +1 -0
  42. package/dist/src/components/Map/Root/Popup/Testing/styles.d.ts +5 -0
  43. package/dist/src/components/Map/Root/Popup/Testing/styles.d.ts.map +1 -0
  44. package/dist/src/components/Map/Root/Popup/index.d.ts.map +1 -1
  45. package/dist/src/components/Map/Root/constants.d.ts +1 -0
  46. package/dist/src/components/Map/Root/constants.d.ts.map +1 -1
  47. package/dist/src/components/Map/Root/types.d.ts +1 -1
  48. package/dist/src/components/Map/Root/types.d.ts.map +1 -1
  49. package/dist/src/components/Map/index.stories.d.ts +3 -0
  50. package/dist/src/components/Map/index.stories.d.ts.map +1 -1
  51. package/dist/style.css +1 -1
  52. package/dist/{styles-J872R1eq.js → styles-C0jAgOTJ.js} +1 -1
  53. package/package.json +2 -1
  54. package/dist/index-HWDZde-a.js +0 -75
  55. package/dist/index-qqbvBkdn.js +0 -7
  56. package/dist/src/components/Map/Root/BaseMap/Empty/index.d.ts +0 -3
  57. package/dist/src/components/Map/Root/BaseMap/Empty/index.d.ts.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { jsx as E } from "react/jsx-runtime";
2
2
  import { useRef as d, useEffect as M } from "react";
3
3
  import { u as z, P as D } from "./scale-control-Dsir9fWY.js";
4
- import { u as H, P as T } from "./index-J8lmJ6Xj.js";
5
- import { c as j, m as A } from "./styles-J872R1eq.js";
4
+ import { u as H, P as T } from "./index-Bbgg2AcG.js";
5
+ import { c as j, m as A } from "./styles-C0jAgOTJ.js";
6
6
  function Z({
7
7
  latitude: h,
8
8
  longitude: l,
@@ -0,0 +1,41 @@
1
+ import { jsxs as t, jsx as i } from "react/jsx-runtime";
2
+ import { u as a } from "./index-Bbgg2AcG.js";
3
+ const d = `
4
+ relative w-full h-full bg-gray-200 border-2 border-gray-400
5
+ flex flex-col overflow-hidden
6
+ `, l = `
7
+ p-2 bg-white/90 border-b border-gray-300 text-xs font-mono
8
+ shrink-0
9
+ `, s = `
10
+ flex-1 overflow-y-auto relative
11
+ `;
12
+ function g({ children: n }) {
13
+ const { center: o, zoom: r, mapPadding: e } = a();
14
+ return /* @__PURE__ */ t("div", { className: d, children: [
15
+ /* @__PURE__ */ t("div", { className: l, children: [
16
+ "Testing Map | Center: (",
17
+ o.latitude.toFixed(2),
18
+ ", ",
19
+ o.longitude.toFixed(2),
20
+ ") | Zoom:",
21
+ " ",
22
+ r
23
+ ] }),
24
+ /* @__PURE__ */ i(
25
+ "div",
26
+ {
27
+ className: s,
28
+ style: {
29
+ paddingTop: `${e.top}px`,
30
+ paddingBottom: `${e.bottom}px`,
31
+ paddingLeft: `${e.left}px`,
32
+ paddingRight: `${e.right}px`
33
+ },
34
+ children: n
35
+ }
36
+ )
37
+ ] });
38
+ }
39
+ export {
40
+ g as default
41
+ };
@@ -0,0 +1,41 @@
1
+ import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
+ const o = `
3
+ p-2 border-b border-gray-300
4
+ bg-white/95 text-xs
5
+ `, d = `
6
+ font-bold mb-2
7
+ `, i = `
8
+ p-1.5 mb-1 bg-gray-50 border border-gray-200 rounded
9
+ `, c = `
10
+ font-bold
11
+ `, y = `
12
+ flex gap-1.5 mt-1
13
+ `, m = `
14
+ flex items-center gap-1
15
+ `, b = `
16
+ w-4 h-4 border border-gray-400 rounded-sm
17
+ `, g = `
18
+ text-xs
19
+ `;
20
+ function p({ sources: l = [] }) {
21
+ return l.length === 0 ? null : /* @__PURE__ */ r("div", { className: o, children: [
22
+ /* @__PURE__ */ r("div", { className: d, children: [
23
+ "Layers (",
24
+ l.length,
25
+ ")"
26
+ ] }),
27
+ l.map((e) => {
28
+ const n = Array.isArray(e.layer) ? e.layer : [e.layer];
29
+ return /* @__PURE__ */ r("div", { className: i, children: [
30
+ /* @__PURE__ */ a("div", { className: c, children: e.key }),
31
+ /* @__PURE__ */ a("div", { className: y, children: n.map((t, s) => /* @__PURE__ */ r("div", { className: m, children: [
32
+ /* @__PURE__ */ a("div", { className: b, style: { backgroundColor: t.color } }),
33
+ /* @__PURE__ */ a("span", { className: g, children: t.type })
34
+ ] }, s)) })
35
+ ] }, e.key);
36
+ })
37
+ ] });
38
+ }
39
+ export {
40
+ p as default
41
+ };
@@ -0,0 +1,25 @@
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { XIcon as s } from "@phosphor-icons/react";
3
+ const a = `
4
+ p-3 border-b border-blue-500
5
+ bg-white min-w-[200px]
6
+ `, l = `
7
+ flex justify-between items-start mb-2
8
+ `, c = `
9
+ text-xs text-gray-600 font-mono
10
+ `, d = `
11
+ p-0 bg-transparent border-0 cursor-pointer
12
+ flex items-center justify-center text-gray-600 hover:text-gray-900
13
+ `;
14
+ function b({ latitude: o, longitude: n, onClose: t, children: i }) {
15
+ return o === void 0 || n === void 0 ? null : /* @__PURE__ */ r("div", { className: a, children: [
16
+ /* @__PURE__ */ r("div", { className: l, children: [
17
+ /* @__PURE__ */ e("div", { className: c, children: "Popup" }),
18
+ t && /* @__PURE__ */ e("button", { onClick: t, className: d, "aria-label": "Close popup", children: /* @__PURE__ */ e(s, { size: 20, weight: "bold" }) })
19
+ ] }),
20
+ /* @__PURE__ */ e("div", { children: i })
21
+ ] });
22
+ }
23
+ export {
24
+ b as default
25
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as v, jsx as g } from "react/jsx-runtime";
2
2
  import { useState as T, useRef as E, useCallback as x, useEffect as b } from "react";
3
3
  import { M as L, N as A, u as G } from "./logo-control-CHapR1Dt.js";
4
- import { u as M, D as m, a as F, m as S } from "./index-J8lmJ6Xj.js";
4
+ import { u as M, D as m, a as F, m as S } from "./index-Bbgg2AcG.js";
5
5
  import { t as h } from "./index-DscDx7HE.js";
6
6
  const z = {
7
7
  en: {
@@ -0,0 +1,44 @@
1
+ import { jsxs as i, jsx as e, Fragment as d } from "react/jsx-runtime";
2
+ import { useMemo as u } from "react";
3
+ import { u as f, M as n } from "./index-Bbgg2AcG.js";
4
+ import { c as o, M as v } from "./index-D4t3jFAj.js";
5
+ const M = `
6
+ relative flex
7
+ `, m = `
8
+ -ml-6 -z-10 last:-z-20
9
+ `;
10
+ function $({
11
+ isActive: c = !1,
12
+ colors: r,
13
+ icon: l
14
+ }) {
15
+ const { zoom: a, mapProvider: s } = f(), t = u(() => s.name === "google" ? a - 1 < n + 1 : a < n, [a, s]);
16
+ return /* @__PURE__ */ i(
17
+ "div",
18
+ {
19
+ className: M,
20
+ style: {
21
+ "--background": r?.background,
22
+ "--fill": r?.fill
23
+ },
24
+ children: [
25
+ /* @__PURE__ */ e(
26
+ "div",
27
+ {
28
+ className: o,
29
+ "data-is-zoomed-out": t,
30
+ "data-is-active": c,
31
+ children: /* @__PURE__ */ e(v, { icon: l })
32
+ }
33
+ ),
34
+ !t && /* @__PURE__ */ i(d, { children: [
35
+ /* @__PURE__ */ e("div", { className: `${o} ${m}` }),
36
+ /* @__PURE__ */ e("div", { className: `${o} ${m}` })
37
+ ] })
38
+ ]
39
+ }
40
+ );
41
+ }
42
+ export {
43
+ $ as C
44
+ };
@@ -1,8 +1,8 @@
1
1
  import { jsx as E } from "react/jsx-runtime";
2
2
  import { useRef as d, useEffect as M } from "react";
3
3
  import { u as D, P as H } from "./logo-control-CHapR1Dt.js";
4
- import { u as j, P as T } from "./index-J8lmJ6Xj.js";
5
- import { c as x, m as A } from "./styles-J872R1eq.js";
4
+ import { u as j, P as T } from "./index-Bbgg2AcG.js";
5
+ import { c as x, m as A } from "./styles-C0jAgOTJ.js";
6
6
  function Z({
7
7
  latitude: l,
8
8
  longitude: h,
@@ -0,0 +1,35 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { MapPinIcon as t } from "@phosphor-icons/react";
3
+ const s = `
4
+ group/marker cursor-pointer rounded-full
5
+ relative h-7 w-7 flex items-center justify-center
6
+ text-base-white ring-1 ring-inset
7
+ transition-colors
8
+
9
+ bg-[var(--background,theme(colors.base.white))]
10
+ ring-[var(--fill,theme(colors.primary.100))]
11
+
12
+ hover:bg-[var(--fill,theme(colors.primary.100))]
13
+
14
+ data-[is-zoomed-out=true]:bg-[var(--fill,theme(colors.primary.100))]
15
+ data-[is-zoomed-out=true]:h-4
16
+ data-[is-zoomed-out=true]:w-4
17
+
18
+ data-[is-active=true]:bg-[var(--fill,theme(colors.primary.100))]
19
+ `, o = `
20
+ m-auto transition-all w-4 h-4
21
+
22
+ fill-[var(--fill,theme(colors.primary.100))]
23
+ group-hover/marker:fill-[var(--background,theme(colors.base.white))]
24
+
25
+ group-data-[is-zoomed-out=true]/marker:hidden
26
+
27
+ group-data-[is-active=true]/marker:fill-[var(--background,theme(colors.base.white))]
28
+ `;
29
+ function l({ icon: r }) {
30
+ return typeof r < "u" ? /* @__PURE__ */ e(r, { className: o }) : /* @__PURE__ */ e(t, { className: o });
31
+ }
32
+ export {
33
+ l as M,
34
+ s as c
35
+ };
@@ -1,17 +1,18 @@
1
1
  import { jsxs as f, jsx as i } from "react/jsx-runtime";
2
2
  import { a as k } from "./logo-control-CHapR1Dt.js";
3
3
  import "react";
4
- import { u, M } from "./index-J8lmJ6Xj.js";
5
- import { C as g, c as C, M as v } from "./index-HWDZde-a.js";
6
- function x({
4
+ import { u, M } from "./index-Bbgg2AcG.js";
5
+ import { c as g, M as C } from "./index-D4t3jFAj.js";
6
+ import { C as v } from "./index-Cz1bOBd_.js";
7
+ function y({
7
8
  clusters: n,
8
9
  colors: o,
9
- clusterIcon: s,
10
- onClick: p,
10
+ clusterIcon: p,
11
+ onClick: s,
11
12
  doesSuperclusterContainActiveMarker: d
12
13
  }) {
13
14
  const { activeMarker: m, zoom: c } = u(), l = (r) => (e) => {
14
- e.originalEvent.stopPropagation(), !r.properties.disableClick && p?.(r);
15
+ e.originalEvent.stopPropagation(), !r.properties.disableClick && s?.(r);
15
16
  };
16
17
  return n?.map((r, e) => {
17
18
  const t = r.geometry.coordinates[0], a = r.geometry.coordinates[1];
@@ -24,17 +25,17 @@ function x({
24
25
  onClick: l(r),
25
26
  children: [
26
27
  r.properties.cluster && r.properties.cluster_id && /* @__PURE__ */ i(
27
- g,
28
+ v,
28
29
  {
29
30
  colors: o,
30
- icon: s,
31
+ icon: p,
31
32
  isActive: d(r.properties.cluster_id)
32
33
  }
33
34
  ),
34
35
  !r.properties.cluster && /* @__PURE__ */ i(
35
36
  "div",
36
37
  {
37
- className: C,
38
+ className: g,
38
39
  style: r.properties.defaultColor ? {} : {
39
40
  "--background": o?.background,
40
41
  "--fill": o?.fill
@@ -42,7 +43,7 @@ function x({
42
43
  "data-is-cluster": !!r.properties.cluster,
43
44
  "data-is-zoomed-out": c < M,
44
45
  "data-is-active": m?.id === r.properties.id,
45
- children: /* @__PURE__ */ i(v, { icon: r.properties.icon })
46
+ children: /* @__PURE__ */ i(C, { icon: r.properties.icon })
46
47
  }
47
48
  )
48
49
  ]
@@ -52,5 +53,5 @@ function x({
52
53
  });
53
54
  }
54
55
  export {
55
- x as default
56
+ y as default
56
57
  };
@@ -0,0 +1,78 @@
1
+ import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
+ import { M as p } from "./index-D4t3jFAj.js";
3
+ const b = `
4
+ p-2 border-b border-gray-300
5
+ bg-white/95 text-xs font-mono
6
+ `, u = `
7
+ font-bold mb-2
8
+ `, f = "w-6 h-6 flex items-center justify-center", h = `
9
+ p-1.5 mb-1 border border-primary-200 rounded
10
+ flex items-center gap-2 cursor-pointer
11
+ hover:bg-gray-100
12
+ `, k = `
13
+ p-1.5 mb-1 border border-primary-200 rounded
14
+ flex items-center gap-2 cursor-pointer
15
+ hover:bg-gray-100
16
+ `, x = `
17
+ w-6 h-6 rounded-full bg-primary-100 text-white
18
+ flex items-center justify-center font-bold text-xs
19
+ `;
20
+ function w({
21
+ clusters: s,
22
+ onClick: n,
23
+ doesSuperclusterContainActiveMarker: g,
24
+ children: c
25
+ }) {
26
+ return /* @__PURE__ */ t("div", { className: b, children: [
27
+ /* @__PURE__ */ t("div", { className: u, children: [
28
+ "Markers (",
29
+ s.length,
30
+ ")"
31
+ ] }),
32
+ s.map((e, a) => {
33
+ const m = e.properties.cluster, l = e.properties.cluster_id, d = e.properties.point_count;
34
+ if (m)
35
+ return /* @__PURE__ */ t(
36
+ "div",
37
+ {
38
+ onClick: () => n(e),
39
+ onKeyDown: (i) => i.key === "Enter" && n(e),
40
+ role: "button",
41
+ tabIndex: 0,
42
+ className: k,
43
+ "data-testid": `map-marker-${a}`,
44
+ children: [
45
+ /* @__PURE__ */ o("div", { className: x, children: d }),
46
+ /* @__PURE__ */ t("span", { children: [
47
+ "Cluster (",
48
+ d,
49
+ " markers)"
50
+ ] })
51
+ ]
52
+ },
53
+ `cluster-${l}`
54
+ );
55
+ const r = e.properties;
56
+ return /* @__PURE__ */ t(
57
+ "div",
58
+ {
59
+ "data-testid": `map-marker-${a}`,
60
+ onClick: () => !r.disableClick && n(e),
61
+ onKeyDown: (i) => !r.disableClick && i.key === "Enter" && n(e),
62
+ role: "button",
63
+ tabIndex: 0,
64
+ className: h,
65
+ children: [
66
+ /* @__PURE__ */ o("div", { className: f, children: /* @__PURE__ */ o(p, { icon: r.icon }) }),
67
+ /* @__PURE__ */ o("span", { children: r.name || r.id })
68
+ ]
69
+ },
70
+ `marker-${r.id}`
71
+ );
72
+ }),
73
+ c
74
+ ] });
75
+ }
76
+ export {
77
+ w as default
78
+ };
@@ -1,8 +1,8 @@
1
1
  import { jsx as E } from "react/jsx-runtime";
2
2
  import { useState as L, useRef as M, useCallback as N, useEffect as f, useMemo as W } from "react";
3
3
  import { useMap as _, InfoWindow as x } from "@vis.gl/react-google-maps";
4
- import { u as z, P as y } from "./index-J8lmJ6Xj.js";
5
- import { c as H, m as j } from "./styles-J872R1eq.js";
4
+ import { u as z, P as y } from "./index-Bbgg2AcG.js";
5
+ import { c as H, m as j } from "./styles-C0jAgOTJ.js";
6
6
  function Z({
7
7
  latitude: g,
8
8
  longitude: m,
@@ -1,8 +1,9 @@
1
1
  import { jsxs as f, jsx as r } from "react/jsx-runtime";
2
2
  import { useMap as k, AdvancedMarker as u } from "@vis.gl/react-google-maps";
3
- import { u as M, M as g } from "./index-J8lmJ6Xj.js";
4
- import { C, c as v, M as I } from "./index-HWDZde-a.js";
5
- function x({
3
+ import { u as M, M as g } from "./index-Bbgg2AcG.js";
4
+ import { c as C, M as v } from "./index-D4t3jFAj.js";
5
+ import { C as I } from "./index-Cz1bOBd_.js";
6
+ function y({
6
7
  clusters: a,
7
8
  colors: o,
8
9
  clusterIcon: n,
@@ -10,7 +11,7 @@ function x({
10
11
  doesSuperclusterContainActiveMarker: p
11
12
  }) {
12
13
  k();
13
- const { activeMarker: d, zoom: c } = M(), m = (e) => () => {
14
+ const { activeMarker: d, zoom: m } = M(), c = (e) => () => {
14
15
  e.properties.disableClick || s?.(e);
15
16
  };
16
17
  return a?.map((e, l) => {
@@ -22,10 +23,10 @@ function x({
22
23
  lat: t,
23
24
  lng: i
24
25
  },
25
- onClick: m(e),
26
+ onClick: c(e),
26
27
  children: [
27
28
  e.properties.cluster && /* @__PURE__ */ r(
28
- C,
29
+ I,
29
30
  {
30
31
  colors: o,
31
32
  icon: n,
@@ -35,15 +36,15 @@ function x({
35
36
  !e.properties.cluster && /* @__PURE__ */ r(
36
37
  "div",
37
38
  {
38
- className: v,
39
+ className: C,
39
40
  style: e.properties.defaultColor ? {} : {
40
41
  "--background": o?.background,
41
42
  "--fill": o?.fill
42
43
  },
43
44
  "data-is-cluster": !!e.properties.cluster,
44
- "data-is-zoomed-out": c - 1 < g + 1,
45
+ "data-is-zoomed-out": m - 1 < g + 1,
45
46
  "data-is-active": d?.id === e.properties.id,
46
- children: /* @__PURE__ */ r(I, { icon: e.properties.icon })
47
+ children: /* @__PURE__ */ r(v, { icon: e.properties.icon })
47
48
  }
48
49
  )
49
50
  ]
@@ -53,5 +54,5 @@ function x({
53
54
  });
54
55
  }
55
56
  export {
56
- x as default
57
+ y as default
57
58
  };
@@ -1,16 +1,17 @@
1
1
  import { jsxs as f, jsx as i } from "react/jsx-runtime";
2
2
  import { a as k } from "./scale-control-Dsir9fWY.js";
3
3
  import "react";
4
- import { u, M } from "./index-J8lmJ6Xj.js";
5
- import { C as g, c as C, M as b } from "./index-HWDZde-a.js";
6
- function _({
4
+ import { u, M } from "./index-Bbgg2AcG.js";
5
+ import { c as g, M as C } from "./index-D4t3jFAj.js";
6
+ import { C as b } from "./index-Cz1bOBd_.js";
7
+ function y({
7
8
  clusters: n,
8
9
  colors: r,
9
10
  clusterIcon: s,
10
11
  onClick: p,
11
- doesSuperclusterContainActiveMarker: d
12
+ doesSuperclusterContainActiveMarker: m
12
13
  }) {
13
- const { activeMarker: m, zoom: c } = u(), l = (o) => (e) => {
14
+ const { activeMarker: d, zoom: c } = u(), l = (o) => (e) => {
14
15
  e.originalEvent.stopPropagation(), !o.properties.disableClick && p?.(o);
15
16
  };
16
17
  return n?.map((o, e) => {
@@ -24,25 +25,25 @@ function _({
24
25
  onClick: l(o),
25
26
  children: [
26
27
  o.properties.cluster && /* @__PURE__ */ i(
27
- g,
28
+ b,
28
29
  {
29
30
  colors: r,
30
31
  icon: s,
31
- isActive: d(o.properties.cluster_id)
32
+ isActive: m(o.properties.cluster_id)
32
33
  }
33
34
  ),
34
35
  !o.properties.cluster && /* @__PURE__ */ i(
35
36
  "div",
36
37
  {
37
- className: C,
38
+ className: g,
38
39
  style: o.properties.defaultColor ? {} : {
39
40
  "--background": r?.background,
40
41
  "--fill": r?.fill
41
42
  },
42
43
  "data-is-cluster": !!o.properties.cluster,
43
44
  "data-is-zoomed-out": c < M,
44
- "data-is-active": m?.id === o.properties.id,
45
- children: /* @__PURE__ */ i(b, { icon: o.properties.icon })
45
+ "data-is-active": d?.id === o.properties.id,
46
+ children: /* @__PURE__ */ i(C, { icon: o.properties.icon })
46
47
  }
47
48
  )
48
49
  ]
@@ -52,5 +53,5 @@ function _({
52
53
  });
53
54
  }
54
55
  export {
55
- _ as default
56
+ y as default
56
57
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as P, jsxs as x, Fragment as A } from "react/jsx-runtime";
2
2
  import { useState as v, useEffect as L, useRef as C, useCallback as E } from "react";
3
3
  import { APIProvider as O, Map as z, ControlPosition as g, useMap as G } from "@vis.gl/react-google-maps";
4
- import { u as B, D as h, W as f, a as Z, m as I } from "./index-J8lmJ6Xj.js";
4
+ import { u as B, D as h, W as f, a as Z, m as I } from "./index-Bbgg2AcG.js";
5
5
  import { t as R } from "./index-DscDx7HE.js";
6
6
  const F = {
7
7
  "top-left": g.LEFT_TOP,
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as c } from "./index-J8lmJ6Xj.js";
1
+ import { i as c } from "./index-Bbgg2AcG.js";
2
2
  export {
3
3
  c as LocalLogicMap
4
4
  };