@conboai/storybook.components 0.5.28 → 0.5.30
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.
|
@@ -7,6 +7,7 @@ interface ISvg {
|
|
|
7
7
|
width?: number;
|
|
8
8
|
height?: number;
|
|
9
9
|
fillOpacity?: string;
|
|
10
|
+
className?: string;
|
|
10
11
|
}
|
|
11
|
-
declare function Svg({ fill, icon, width, height, fillOpacity }: ISvg): React.JSX.Element;
|
|
12
|
+
declare function Svg({ fill, icon, width, height, fillOpacity, className }: ISvg): React.JSX.Element;
|
|
12
13
|
export default Svg;
|
|
@@ -28884,30 +28884,31 @@ const HZ = {
|
|
|
28884
28884
|
}
|
|
28885
28885
|
}
|
|
28886
28886
|
};
|
|
28887
|
-
function Cn({ fill: e = "black", icon: t, width: n, height: r, fillOpacity: o }) {
|
|
28888
|
-
const
|
|
28889
|
-
paths:
|
|
28890
|
-
width:
|
|
28891
|
-
height:
|
|
28892
|
-
strokeWidth:
|
|
28893
|
-
attributes:
|
|
28894
|
-
} =
|
|
28887
|
+
function Cn({ fill: e = "black", icon: t, width: n, height: r, fillOpacity: o, className: i }) {
|
|
28888
|
+
const s = UZ[t], {
|
|
28889
|
+
paths: l,
|
|
28890
|
+
width: c,
|
|
28891
|
+
height: u,
|
|
28892
|
+
strokeWidth: d,
|
|
28893
|
+
attributes: h
|
|
28894
|
+
} = s, f = n || c, b = r || u;
|
|
28895
28895
|
return /* @__PURE__ */ V.jsx(
|
|
28896
28896
|
"svg",
|
|
28897
28897
|
{
|
|
28898
|
-
viewBox: `0 0 ${
|
|
28899
|
-
width:
|
|
28900
|
-
height:
|
|
28901
|
-
|
|
28898
|
+
viewBox: `0 0 ${c} ${u}`,
|
|
28899
|
+
width: f,
|
|
28900
|
+
height: b,
|
|
28901
|
+
className: i,
|
|
28902
|
+
children: l.map((p) => /* @__PURE__ */ V.jsx(
|
|
28902
28903
|
"path",
|
|
28903
28904
|
{
|
|
28904
|
-
d:
|
|
28905
|
-
strokeWidth:
|
|
28905
|
+
d: p,
|
|
28906
|
+
strokeWidth: d,
|
|
28906
28907
|
fillOpacity: o,
|
|
28907
|
-
...
|
|
28908
|
-
...
|
|
28908
|
+
...h,
|
|
28909
|
+
...d ? { stroke: e, fill: "transparent" } : { fill: e }
|
|
28909
28910
|
},
|
|
28910
|
-
|
|
28911
|
+
p
|
|
28911
28912
|
))
|
|
28912
28913
|
}
|
|
28913
28914
|
);
|
|
@@ -80141,48 +80142,48 @@ const uhe = sr(
|
|
|
80141
80142
|
showOnlyPoints: c = !1,
|
|
80142
80143
|
scaleNumber: u
|
|
80143
80144
|
}) => {
|
|
80144
|
-
var S, w;
|
|
80145
|
+
var S, w, E;
|
|
80145
80146
|
const [d, h] = Ne(
|
|
80146
80147
|
(s == null ? void 0 : s.coordinates) || []
|
|
80147
80148
|
), f = ir(null), b = ss.isNumber(e) ? e : 0, p = In(() => {
|
|
80148
80149
|
if (f.current) {
|
|
80149
|
-
const
|
|
80150
|
-
(
|
|
80151
|
-
),
|
|
80152
|
-
|
|
80150
|
+
const I = f.current.getPath().getArray().map(
|
|
80151
|
+
(F) => new google.maps.LatLng(F.lat(), F.lng())
|
|
80152
|
+
), _ = Gd(I);
|
|
80153
|
+
_.length && (s != null && s.id) && (h(_), i == null || i(_, s == null ? void 0 : s.id, !0));
|
|
80153
80154
|
}
|
|
80154
80155
|
}, [s, i]), g = In(
|
|
80155
|
-
(
|
|
80156
|
-
google.maps.event.clearListeners(
|
|
80156
|
+
(I) => {
|
|
80157
|
+
google.maps.event.clearListeners(I.getPath(), "set_at"), google.maps.event.clearListeners(I.getPath(), "insert_at"), I.getPath().addListener("set_at", p), I.getPath().addListener("insert_at", p);
|
|
80157
80158
|
},
|
|
80158
80159
|
[p]
|
|
80159
80160
|
);
|
|
80160
80161
|
Ie(() => {
|
|
80161
80162
|
f != null && f.current && g(f == null ? void 0 : f.current);
|
|
80162
80163
|
}, [d, g]);
|
|
80163
|
-
const m = (
|
|
80164
|
-
const
|
|
80165
|
-
({ lat:
|
|
80166
|
-
var
|
|
80167
|
-
return
|
|
80164
|
+
const m = (I) => {
|
|
80165
|
+
const _ = d.filter(
|
|
80166
|
+
({ lat: F, lng: D }) => {
|
|
80167
|
+
var A;
|
|
80168
|
+
return F !== ((A = I.latLng) == null ? void 0 : A.lat()) || D !== I.latLng.lng();
|
|
80168
80169
|
}
|
|
80169
80170
|
);
|
|
80170
|
-
h(
|
|
80171
|
-
}, v = (
|
|
80172
|
-
f.current =
|
|
80171
|
+
h(_), s != null && s.id && (i == null || i(_, s == null ? void 0 : s.id, !0));
|
|
80172
|
+
}, v = (I) => {
|
|
80173
|
+
f.current = I, g(I);
|
|
80173
80174
|
};
|
|
80174
80175
|
Ie(() => {
|
|
80175
80176
|
h((s == null ? void 0 : s.coordinates) || []);
|
|
80176
80177
|
}, [s]);
|
|
80177
80178
|
const y = b - 13 || -1, C = y < 0 ? 0 : y;
|
|
80178
80179
|
return /* @__PURE__ */ V.jsxs(V.Fragment, { children: [
|
|
80179
|
-
l && (d == null ? void 0 : d.map(({ lat:
|
|
80180
|
+
l && (d == null ? void 0 : d.map(({ lat: I, lng: _ }, F) => /* @__PURE__ */ V.jsx(
|
|
80180
80181
|
b5,
|
|
80181
80182
|
{
|
|
80182
|
-
coordinates: { lat:
|
|
80183
|
-
index:
|
|
80183
|
+
coordinates: { lat: I, lng: _ },
|
|
80184
|
+
index: F + 1
|
|
80184
80185
|
},
|
|
80185
|
-
|
|
80186
|
+
I + _
|
|
80186
80187
|
))),
|
|
80187
80188
|
t && (d == null ? void 0 : d.length) > 0 && /* @__PURE__ */ V.jsx(
|
|
80188
80189
|
R4,
|
|
@@ -80198,7 +80199,8 @@ const uhe = sr(
|
|
|
80198
80199
|
path: d,
|
|
80199
80200
|
options: {
|
|
80200
80201
|
...Wp,
|
|
80201
|
-
|
|
80202
|
+
...s == null ? void 0 : s.styles,
|
|
80203
|
+
strokeColor: c ? "transparent" : ((w = s == null ? void 0 : s.styles) == null ? void 0 : w.strokeColor) || "#2196F3",
|
|
80202
80204
|
visible: !0,
|
|
80203
80205
|
editable: !1,
|
|
80204
80206
|
draggable: !0,
|
|
@@ -80212,7 +80214,7 @@ const uhe = sr(
|
|
|
80212
80214
|
R4,
|
|
80213
80215
|
{
|
|
80214
80216
|
position: d[d.length - 1],
|
|
80215
|
-
icon: y9(C, (
|
|
80217
|
+
icon: y9(C, (E = s == null ? void 0 : s.styles) == null ? void 0 : E.fillColor, u),
|
|
80216
80218
|
label: o
|
|
80217
80219
|
}
|
|
80218
80220
|
)
|