@ztwoint/z-ui 0.1.135 → 0.1.137

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.
@@ -20,20 +20,20 @@ import { DEFAULT_MAP_CONFIG as r } from "./map.constants.js";
20
20
  import { cn as Q } from "../../lib/utils.js";
21
21
  /* empty css */
22
22
  const X = ({
23
- locations: n = [],
23
+ locations: m = [],
24
24
  mapboxToken: M,
25
25
  width: a = r.width,
26
- height: d = r.height,
27
- className: s,
28
- pinVariant: l = r.pinVariant,
26
+ height: l = r.height,
27
+ className: d,
28
+ pinVariant: s = r.pinVariant,
29
29
  pinSize: h = r.pinSize,
30
30
  renderPin: t,
31
- renderPopover: m,
31
+ renderPopover: n,
32
32
  popoverDisabled: C = r.popoverDisabled,
33
- interactive: w = r.interactive,
34
- draggable: u = r.draggable,
33
+ interactive: b = r.interactive,
34
+ draggable: c = r.draggable,
35
35
  scrollZoom: x = r.scrollZoom,
36
- showZoomControls: b = r.showZoomControls,
36
+ showZoomControls: w = r.showZoomControls,
37
37
  showStyleSwitcher: y = r.showStyleSwitcher,
38
38
  minZoom: S = r.minZoom,
39
39
  maxZoom: k = r.maxZoom,
@@ -43,26 +43,26 @@ const X = ({
43
43
  const {
44
44
  mapRef: O,
45
45
  initialViewState: I,
46
- currentVariant: A,
46
+ currentVariant: z,
47
47
  activeLocation: p,
48
- openPopoverId: E,
49
- setOpenPopoverId: P,
50
- mapStyle: j,
51
- containerStyle: F,
52
- handleZoomIn: L,
53
- handleZoomOut: N,
54
- handleStyleChange: T,
48
+ openPopoverId: A,
49
+ setOpenPopoverId: E,
50
+ mapStyle: P,
51
+ containerStyle: j,
52
+ handleZoomIn: F,
53
+ handleZoomOut: L,
54
+ handleStyleChange: N,
55
55
  handlePinHover: i,
56
- handlePinClickWrapper: c,
57
- handleMove: z
58
- } = $({ locations: n, width: a, height: d, ..._ });
59
- return Z ? /* @__PURE__ */ o(J, { width: a, height: d, className: s }) : /* @__PURE__ */ g(
56
+ handlePinClickWrapper: u,
57
+ handleMove: T
58
+ } = $({ locations: m, width: a, height: l, ..._ });
59
+ return Z ? /* @__PURE__ */ o(J, { width: a, height: l, className: d }) : /* @__PURE__ */ g(
60
60
  "div",
61
61
  {
62
- style: F,
62
+ style: j,
63
63
  className: Q(
64
- "relative rounded-xl overflow-hidden shadow-[0_2px_16px_rgba(0,0,0,0.08)] border border-stroke-solid-light",
65
- s
64
+ "relative rounded-xl overflow-hidden border border-stroke-solid-light [&_.mapboxgl-ctrl-bottom-right]:!z-0 [&_.mapboxgl-ctrl-bottom-left]:!z-0",
65
+ d
66
66
  ),
67
67
  children: [
68
68
  /* @__PURE__ */ o(
@@ -72,16 +72,16 @@ const X = ({
72
72
  mapboxAccessToken: M,
73
73
  initialViewState: I,
74
74
  style: { width: "100%", height: "100%" },
75
- mapStyle: j,
76
- interactive: w,
77
- dragPan: u,
75
+ mapStyle: P,
76
+ interactive: b,
77
+ dragPan: c,
78
78
  scrollZoom: x,
79
79
  minZoom: S,
80
80
  maxZoom: k,
81
- onMove: z,
81
+ onMove: T,
82
82
  projection: { name: "mercator" },
83
- cursor: u ? void 0 : "default",
84
- children: n.map((e) => {
83
+ cursor: c ? void 0 : "default",
84
+ children: m.map((e) => {
85
85
  const f = (p == null ? void 0 : p.id) === e.id;
86
86
  return /* @__PURE__ */ o(
87
87
  H,
@@ -92,30 +92,30 @@ const X = ({
92
92
  children: C ? /* @__PURE__ */ o(V, { children: t ? t(e) : /* @__PURE__ */ o(
93
93
  v,
94
94
  {
95
- variant: l,
95
+ variant: s,
96
96
  size: h,
97
97
  icon: e.icon,
98
98
  active: f,
99
- onClick: () => c(e),
99
+ onClick: () => u(e),
100
100
  onMouseEnter: () => i(e),
101
101
  onMouseLeave: () => i(null)
102
102
  }
103
103
  ) }) : /* @__PURE__ */ g(
104
104
  R,
105
105
  {
106
- open: E === e.id,
106
+ open: A === e.id,
107
107
  onOpenChange: (D) => {
108
- P(D ? e.id : null);
108
+ E(D ? e.id : null);
109
109
  },
110
110
  children: [
111
111
  /* @__PURE__ */ o(U, { asChild: !0, children: /* @__PURE__ */ o("div", { children: t ? t(e) : /* @__PURE__ */ o(
112
112
  v,
113
113
  {
114
- variant: l,
114
+ variant: s,
115
115
  size: h,
116
116
  icon: e.icon,
117
117
  active: f,
118
- onClick: () => c(e),
118
+ onClick: () => u(e),
119
119
  onMouseEnter: () => i(e),
120
120
  onMouseLeave: () => i(null)
121
121
  }
@@ -127,7 +127,7 @@ const X = ({
127
127
  align: "center",
128
128
  className: "w-auto max-w-sm p-3 bg-white/98 backdrop-blur-md shadow-[0_8px_32px_rgba(0,0,0,0.12)] border-stroke-solid-light",
129
129
  sideOffset: 8,
130
- children: /* @__PURE__ */ o(q, { location: e, customContent: m == null ? void 0 : m(e) })
130
+ children: /* @__PURE__ */ o(q, { location: e, customContent: n == null ? void 0 : n(e) })
131
131
  }
132
132
  )
133
133
  ]
@@ -142,15 +142,15 @@ const X = ({
142
142
  /* @__PURE__ */ o(
143
143
  B,
144
144
  {
145
- showZoomControls: b,
146
- onZoomIn: L,
147
- onZoomOut: N,
145
+ showZoomControls: w,
146
+ onZoomIn: F,
147
+ onZoomOut: L,
148
148
  showStyleSwitcher: y,
149
- activeStyle: A,
150
- onStyleChange: T
149
+ activeStyle: z,
150
+ onStyleChange: N
151
151
  }
152
152
  ),
153
- n.length === 0 && /* @__PURE__ */ o(K, {})
153
+ m.length === 0 && /* @__PURE__ */ o(K, {})
154
154
  ]
155
155
  }
156
156
  );