@conboai/storybook.components 0.3.83 → 0.3.84
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.
|
@@ -9,6 +9,10 @@ interface IMetroMap {
|
|
|
9
9
|
isMultiSelect?: boolean;
|
|
10
10
|
onHover?: (element: string) => void;
|
|
11
11
|
viewBox?: string;
|
|
12
|
+
preserveAspectRatio?: string;
|
|
13
|
+
svgAttributes?: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
12
16
|
}
|
|
13
17
|
interface IElement {
|
|
14
18
|
tag: string;
|
|
@@ -27,6 +31,6 @@ interface IElement {
|
|
|
27
31
|
children: IElement[];
|
|
28
32
|
className?: string;
|
|
29
33
|
}
|
|
30
|
-
declare function MetroMap({ elements, onSelect, selectedCluster, minor, major, isMultiSelect, onHover,
|
|
34
|
+
declare function MetroMap({ elements, onSelect, selectedCluster, minor, major, isMultiSelect, onHover, svgAttributes }: IMetroMap): React.JSX.Element | null;
|
|
31
35
|
declare const _default: React.MemoExoticComponent<typeof MetroMap>;
|
|
32
36
|
export default _default;
|
|
@@ -67153,21 +67153,23 @@ function Gle({
|
|
|
67153
67153
|
major: o,
|
|
67154
67154
|
isMultiSelect: s = !1,
|
|
67155
67155
|
onHover: a,
|
|
67156
|
-
|
|
67156
|
+
svgAttributes: l
|
|
67157
67157
|
}) {
|
|
67158
67158
|
if (!e) return null;
|
|
67159
67159
|
const c = (u) => {
|
|
67160
67160
|
var C, v, D, y;
|
|
67161
67161
|
if (!u) return null;
|
|
67162
|
-
const { tag: d, attributes: f, children: A } = u
|
|
67163
|
-
let
|
|
67164
|
-
d === "svg" && (
|
|
67162
|
+
const { tag: d, attributes: f, children: A } = u;
|
|
67163
|
+
let m = f.fill, g = {};
|
|
67164
|
+
d === "svg" && (g = {
|
|
67165
|
+
...l
|
|
67166
|
+
}), (C = f == null ? void 0 : f.id) != null && C.includes("_fill") && (r != null && r.includes(mw(f.id, "_fill")) && (m = Yle), o != null && o.includes(mw(f.id, "_fill")) && (m = Nle));
|
|
67165
67167
|
let h = (v = f.id) != null && v.endsWith("_hover") ? "none" : "block";
|
|
67166
67168
|
(D = f.id) != null && D.includes("_selected") && (s ? h = !n || !zle(f.id, n) ? "none" : "block" : h = !n || !f.id.startsWith(n) ? "none" : "block");
|
|
67167
67169
|
const p = {
|
|
67168
67170
|
...f,
|
|
67169
|
-
...
|
|
67170
|
-
fill:
|
|
67171
|
+
...g,
|
|
67172
|
+
fill: m,
|
|
67171
67173
|
key: f.id || Math.random(),
|
|
67172
67174
|
style: {
|
|
67173
67175
|
pointerEvents: "none",
|