@local-logic/maps 0.0.11 → 0.0.13

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 (67) hide show
  1. package/dist/index-58w3Qwxr.js +56 -0
  2. package/dist/index-BGoTpJjt.js +81 -0
  3. package/dist/index-Bp1bWq9c.js +690 -0
  4. package/dist/index-C36u5N_F.js +34 -0
  5. package/dist/{index-BMvwx9_l.js → index-CBp9gCca.js} +33 -20
  6. package/dist/index-CCtDJ-mV.js +56 -0
  7. package/dist/index-CFomI3Il.js +98 -0
  8. package/dist/index-CUpaKIZP.js +105 -0
  9. package/dist/index-CXTsUiSS.js +57 -0
  10. package/dist/index-CXUQoF5Q.js +34 -0
  11. package/dist/index-DY5pY-zk.js +43 -0
  12. package/dist/index-S5SfktvB.js +79 -0
  13. package/dist/{index-BsnsAUt5.js → index-UEadmVww.js} +2 -1
  14. package/dist/index.es.js +1 -1
  15. package/dist/index.umd.js +82 -78
  16. package/dist/src/components/Map/Root/BaseMap/Google/index.d.ts +1 -1
  17. package/dist/src/components/Map/Root/BaseMap/Google/index.d.ts.map +1 -1
  18. package/dist/src/components/Map/Root/BaseMap/Mapbox/index.d.ts +1 -1
  19. package/dist/src/components/Map/Root/BaseMap/Mapbox/index.d.ts.map +1 -1
  20. package/dist/src/components/Map/Root/BaseMap/Maptiler/index.d.ts +1 -1
  21. package/dist/src/components/Map/Root/BaseMap/Maptiler/index.d.ts.map +1 -1
  22. package/dist/src/components/Map/Root/BaseMap/index.d.ts +1 -1
  23. package/dist/src/components/Map/Root/BaseMap/index.d.ts.map +1 -1
  24. package/dist/src/components/Map/Root/BaseMap/types.d.ts +10 -1
  25. package/dist/src/components/Map/Root/BaseMap/types.d.ts.map +1 -1
  26. package/dist/src/components/Map/Root/Layers/Google/index.d.ts.map +1 -1
  27. package/dist/src/components/Map/Root/Markers/Cluster/index.d.ts +2 -1
  28. package/dist/src/components/Map/Root/Markers/Cluster/index.d.ts.map +1 -1
  29. package/dist/src/components/Map/Root/Markers/Google/index.d.ts +1 -1
  30. package/dist/src/components/Map/Root/Markers/Google/index.d.ts.map +1 -1
  31. package/dist/src/components/Map/Root/Markers/Mapbox/index.d.ts +1 -1
  32. package/dist/src/components/Map/Root/Markers/Mapbox/index.d.ts.map +1 -1
  33. package/dist/src/components/Map/Root/Markers/Maptiler/index.d.ts +1 -1
  34. package/dist/src/components/Map/Root/Markers/Maptiler/index.d.ts.map +1 -1
  35. package/dist/src/components/Map/Root/Markers/index.d.ts +1 -1
  36. package/dist/src/components/Map/Root/Markers/index.d.ts.map +1 -1
  37. package/dist/src/components/Map/Root/Markers/styles.d.ts +2 -2
  38. package/dist/src/components/Map/Root/Markers/styles.d.ts.map +1 -1
  39. package/dist/src/components/Map/Root/Markers/types.d.ts +1 -11
  40. package/dist/src/components/Map/Root/Markers/types.d.ts.map +1 -1
  41. package/dist/src/components/Map/Root/Popup/Google/index.d.ts.map +1 -1
  42. package/dist/src/components/Map/Root/Popup/Mapbox/index.d.ts.map +1 -1
  43. package/dist/src/components/Map/Root/Popup/Maptiler/index.d.ts.map +1 -1
  44. package/dist/src/components/Map/Root/Popup/index.d.ts +1 -1
  45. package/dist/src/components/Map/Root/Popup/index.d.ts.map +1 -1
  46. package/dist/src/components/Map/Root/Popup/styles.d.ts +1 -1
  47. package/dist/src/components/Map/Root/Popup/styles.d.ts.map +1 -1
  48. package/dist/src/components/Map/Root/constants.d.ts +4 -0
  49. package/dist/src/components/Map/Root/constants.d.ts.map +1 -1
  50. package/dist/src/components/Map/Root/context.d.ts +3 -0
  51. package/dist/src/components/Map/Root/context.d.ts.map +1 -1
  52. package/dist/src/components/Map/Root/index.d.ts.map +1 -1
  53. package/dist/src/components/Map/Root/types.d.ts +1 -0
  54. package/dist/src/components/Map/Root/types.d.ts.map +1 -1
  55. package/dist/style.css +2 -2
  56. package/dist/{styles-uPzJnzVS.js → styles-ChFj97uV.js} +1 -1
  57. package/package.json +1 -1
  58. package/dist/index-9RZYMoMG.js +0 -39
  59. package/dist/index-B9QF7ewJ.js +0 -73
  60. package/dist/index-BOBkPCX5.js +0 -772
  61. package/dist/index-BOuko7CL.js +0 -32
  62. package/dist/index-BdXay-zF.js +0 -62
  63. package/dist/index-Bn_2qA7h.js +0 -65
  64. package/dist/index-D5uhfwEH.js +0 -31
  65. package/dist/index-DJ4SJ9IL.js +0 -53
  66. package/dist/index-DaEKTD5_.js +0 -65
  67. package/dist/index-Dyy8UNMs.js +0 -50
@@ -1,6 +1,6 @@
1
1
  const o = `
2
2
  bg-base-white border border-primary-100 w-auto overflow-hidden
3
- rounded-lg w-44 px-2.5 py-3 shadow-sm
3
+ rounded-lg shadow-sm
4
4
  `;
5
5
  export {
6
6
  o as c
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@local-logic/maps",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "This is a maps implementation allowing for the display of Local Logic data on a map.",
5
5
  "author": "Local Logic",
6
6
  "license": "ISC",
@@ -1,39 +0,0 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { useEffect as m, useMemo as o } from "react";
3
- import { u as s, I as d } from "./index.modern-CLRs8JwI.js";
4
- import { c as f } from "./styles-uPzJnzVS.js";
5
- function v({
6
- latitude: n,
7
- longitude: t,
8
- offset: r = [0, -25],
9
- onClose: e,
10
- children: a
11
- }) {
12
- const i = s();
13
- m(() => {
14
- if (!i) return;
15
- const c = i.addListener("click", () => {
16
- e == null || e();
17
- });
18
- return () => {
19
- c.remove();
20
- };
21
- }, [i]);
22
- const p = o(() => Array.isArray(r) ? [r[0], r[1]] : [r, r], [r]);
23
- return typeof n > "u" || typeof t > "u" ? null : /* @__PURE__ */ u(
24
- d,
25
- {
26
- shouldFocus: !0,
27
- position: {
28
- lat: n,
29
- lng: t
30
- },
31
- pixelOffset: p,
32
- onClose: e,
33
- children: /* @__PURE__ */ u("div", { className: f, children: a })
34
- }
35
- );
36
- }
37
- export {
38
- v as default
39
- };
@@ -1,73 +0,0 @@
1
- import { jsxs as M, jsx as d } from "react/jsx-runtime";
2
- import { useState as h, useEffect as b } from "react";
3
- import { A as C, M as O, C as i, u as P } from "./index.modern-CLRs8JwI.js";
4
- import { u as p, d as l, a as v } from "./index-BOBkPCX5.js";
5
- const y = {
6
- "top-left": i.LEFT_TOP,
7
- "top-right": i.RIGHT_TOP,
8
- "bottom-left": i.LEFT_BOTTOM,
9
- "bottom-right": i.RIGHT_BOTTOM
10
- }, Z = ({ isMapLoaded: r }) => {
11
- const o = P(), { setBounds: u, setZoom: t } = p(), a = () => {
12
- var s;
13
- if (!o)
14
- return;
15
- const e = (s = o.getBounds()) == null ? void 0 : s.toJSON(), n = o.getZoom();
16
- e && u([e.west, e.south, e.east, e.north]), typeof n < "u" && t(n + 1);
17
- };
18
- return b(() => {
19
- !r || !o || (a(), o.addListener("bounds_changed", () => {
20
- a();
21
- }));
22
- }, [r, o]), null;
23
- };
24
- function B({ children: r }) {
25
- const [o, u] = h(!1), {
26
- mapProvider: t,
27
- center: a,
28
- // Google Maps zoom level starts at 0, so we add 1 to match our defaultMapValues
29
- zoom: e = l.zoom + 1,
30
- minZoom: n,
31
- maxZoom: s,
32
- pitch: f = l.pitch,
33
- bearing: c = l.bearing,
34
- cooperativeGestures: g = l.cooperativeGestures,
35
- zoomPosition: m
36
- } = p();
37
- if (t.name !== "google")
38
- return null;
39
- const T = () => {
40
- u(!0);
41
- };
42
- return /* @__PURE__ */ M(C, { apiKey: t.apiKey, children: [
43
- /* @__PURE__ */ d(Z, { isMapLoaded: o }),
44
- /* @__PURE__ */ d(
45
- O,
46
- {
47
- mapId: t.theme || v.google,
48
- defaultCenter: {
49
- lat: a.latitude,
50
- lng: a.longitude
51
- },
52
- defaultZoom: e,
53
- defaultTilt: f,
54
- defaultHeading: c,
55
- gestureHandling: g ? "cooperative" : "greedy",
56
- streetViewControl: !1,
57
- fullscreenControl: !1,
58
- clickableIcons: !1,
59
- mapTypeControl: !1,
60
- zoomControlOptions: {
61
- position: m && y[m]
62
- },
63
- minZoom: typeof n == "number" ? n + 1 : void 0,
64
- maxZoom: typeof s == "number" ? s + 1 : void 0,
65
- onTilesLoaded: T,
66
- children: r
67
- }
68
- )
69
- ] });
70
- }
71
- export {
72
- B as default
73
- };