@local-logic/maps 0.1.2 → 0.1.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.
Files changed (58) hide show
  1. package/dist/{index-Ci9PQ3VM.js → index--PIAfLjo.js} +2 -2
  2. package/dist/{index-Dy0j33aN.js → index-0EkdzCyN.js} +12 -11
  3. package/dist/index-BO34uKgS.js +16 -0
  4. package/dist/{index-vIYPnHrB.js → index-BY_xYg2p.js} +12 -11
  5. package/dist/{index-DHOxmHER.js → index-BnTZMzoy.js} +2 -2
  6. package/dist/index-C0inY_TA.js +41 -0
  7. package/dist/index-CHdAT424.js +44 -0
  8. package/dist/index-CNP-c5ZB.js +736 -0
  9. package/dist/index-COB6j_V1.js +25 -0
  10. package/dist/{index-BOJCRr60.js → index-CZPGxjSJ.js} +11 -10
  11. package/dist/index-D4t3jFAj.js +35 -0
  12. package/dist/index-DEFuc-6u.js +78 -0
  13. package/dist/index-DXT59VJA.js +29 -0
  14. package/dist/{index-CWXZA3V3.js → index-GoHd1Tri.js} +2 -2
  15. package/dist/{index-CTWLtI5f.js → index-MZUXTR07.js} +1 -1
  16. package/dist/{index-xDS1OfMB.js → index-QxKYqddl.js} +1 -1
  17. package/dist/{index-BabQioiH.js → index-zzok3ruU.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-B3ZaR0wz.js → styles-DvWVFFVb.js} +1 -1
  53. package/package.json +2 -1
  54. package/dist/index-BUZonjTY.js +0 -75
  55. package/dist/index-D37STE_k.js +0 -725
  56. package/dist/index-qqbvBkdn.js +0 -7
  57. package/dist/src/components/Map/Root/BaseMap/Empty/index.d.ts +0 -3
  58. package/dist/src/components/Map/Root/BaseMap/Empty/index.d.ts.map +0 -1
@@ -1,75 +0,0 @@
1
- import { jsx as r, jsxs as l, Fragment as d } from "react/jsx-runtime";
2
- import { useMemo as f } from "react";
3
- import { u as h, M as n } from "./index-D37STE_k.js";
4
- import { MapPinIcon as g } from "@phosphor-icons/react";
5
- const a = `
6
- group/marker cursor-pointer rounded-full
7
- relative h-7 w-7 flex items-center justify-center
8
- text-base-white ring-1 ring-inset
9
- transition-colors
10
-
11
- bg-[var(--background,theme(colors.base.white))]
12
- ring-[var(--fill,theme(colors.primary.100))]
13
-
14
- hover:bg-[var(--fill,theme(colors.primary.100))]
15
-
16
- data-[is-zoomed-out=true]:bg-[var(--fill,theme(colors.primary.100))]
17
- data-[is-zoomed-out=true]:h-4
18
- data-[is-zoomed-out=true]:w-4
19
-
20
- data-[is-active=true]:bg-[var(--fill,theme(colors.primary.100))]
21
- `, m = `
22
- m-auto transition-all w-4 h-4
23
-
24
- fill-[var(--fill,theme(colors.primary.100))]
25
- group-hover/marker:fill-[var(--background,theme(colors.base.white))]
26
-
27
- group-data-[is-zoomed-out=true]/marker:hidden
28
-
29
- group-data-[is-active=true]/marker:fill-[var(--background,theme(colors.base.white))]
30
- `;
31
- function v({ icon: e }) {
32
- return typeof e < "u" ? /* @__PURE__ */ r(e, { className: m }) : /* @__PURE__ */ r(g, { className: m });
33
- }
34
- const p = `
35
- relative flex
36
- `, c = `
37
- -ml-6 -z-10 last:-z-20
38
- `;
39
- function M({
40
- isActive: e = !1,
41
- colors: t,
42
- icon: u
43
- }) {
44
- const { zoom: o, mapProvider: i } = h(), s = f(() => i.name === "google" ? o - 1 < n + 1 : o < n, [o, i]);
45
- return /* @__PURE__ */ l(
46
- "div",
47
- {
48
- className: p,
49
- style: {
50
- "--background": t?.background,
51
- "--fill": t?.fill
52
- },
53
- children: [
54
- /* @__PURE__ */ r(
55
- "div",
56
- {
57
- className: a,
58
- "data-is-zoomed-out": s,
59
- "data-is-active": e,
60
- children: /* @__PURE__ */ r(v, { icon: u })
61
- }
62
- ),
63
- !s && /* @__PURE__ */ l(d, { children: [
64
- /* @__PURE__ */ r("div", { className: `${a} ${c}` }),
65
- /* @__PURE__ */ r("div", { className: `${a} ${c}` })
66
- ] })
67
- ]
68
- }
69
- );
70
- }
71
- export {
72
- M as C,
73
- v as M,
74
- a as c
75
- };