@conboai/storybook.components 0.3.71 → 0.3.73
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.
|
@@ -8,6 +8,7 @@ interface IMetroMap {
|
|
|
8
8
|
onSelect?: (clusterId: string, subCluster: string) => void;
|
|
9
9
|
isMultiSelect?: boolean;
|
|
10
10
|
onHover?: (element: string) => void;
|
|
11
|
+
viewBox?: string;
|
|
11
12
|
}
|
|
12
13
|
interface IElement {
|
|
13
14
|
tag: string;
|
|
@@ -26,6 +27,6 @@ interface IElement {
|
|
|
26
27
|
children: IElement[];
|
|
27
28
|
className?: string;
|
|
28
29
|
}
|
|
29
|
-
declare function MetroMap({ elements, onSelect, selectedCluster, minor, major, isMultiSelect, onHover }: IMetroMap): React.JSX.Element | null;
|
|
30
|
+
declare function MetroMap({ elements, onSelect, selectedCluster, minor, major, isMultiSelect, onHover, viewBox }: IMetroMap): React.JSX.Element | null;
|
|
30
31
|
declare const _default: React.MemoExoticComponent<typeof MetroMap>;
|
|
31
32
|
export default _default;
|
|
@@ -67144,40 +67144,42 @@ function Gle({
|
|
|
67144
67144
|
minor: o,
|
|
67145
67145
|
major: r,
|
|
67146
67146
|
isMultiSelect: s = !1,
|
|
67147
|
-
onHover: a
|
|
67147
|
+
onHover: a,
|
|
67148
|
+
viewBox: l
|
|
67148
67149
|
}) {
|
|
67149
67150
|
if (!t) return null;
|
|
67150
|
-
const
|
|
67151
|
-
var
|
|
67152
|
-
if (!
|
|
67153
|
-
const { tag:
|
|
67154
|
-
let
|
|
67155
|
-
(
|
|
67156
|
-
let
|
|
67157
|
-
(
|
|
67158
|
-
const
|
|
67159
|
-
...
|
|
67160
|
-
|
|
67161
|
-
|
|
67151
|
+
const c = (u) => {
|
|
67152
|
+
var C, v, D, y;
|
|
67153
|
+
if (!u) return null;
|
|
67154
|
+
const { tag: d, attributes: f, children: A } = u, m = {};
|
|
67155
|
+
let g = f.fill;
|
|
67156
|
+
d === "svg" && (m.viewBox = l || f.viewBox), (C = f == null ? void 0 : f.id) != null && C.includes("_fill") && (o != null && o.includes(pw(f.id, "_fill")) && (g = Yle), r != null && r.includes(pw(f.id, "_fill")) && (g = Nle));
|
|
67157
|
+
let h = (v = f.id) != null && v.endsWith("_hover") ? "none" : "block";
|
|
67158
|
+
(D = f.id) != null && D.includes("_selected") && (s ? h = !n || !zle(f.id, n) ? "none" : "block" : h = !n || !f.id.startsWith(n) ? "none" : "block");
|
|
67159
|
+
const p = {
|
|
67160
|
+
...f,
|
|
67161
|
+
...m,
|
|
67162
|
+
fill: g,
|
|
67163
|
+
key: f.id || Math.random(),
|
|
67162
67164
|
style: {
|
|
67163
67165
|
pointerEvents: "none",
|
|
67164
|
-
display:
|
|
67166
|
+
display: h
|
|
67165
67167
|
}
|
|
67166
67168
|
};
|
|
67167
|
-
return (
|
|
67168
|
-
let
|
|
67169
|
-
const
|
|
67170
|
-
|
|
67171
|
-
},
|
|
67172
|
-
const
|
|
67173
|
-
|
|
67169
|
+
return (y = f.id) != null && y.endsWith("_hover") && (p.className = "svg_hover_area"), "clusterid" in f && (p.className = "svg-clickable", p.onClick = () => {
|
|
67170
|
+
let B = "";
|
|
67171
|
+
const M = f.clusterid.match(/a2_(x\d+)/);
|
|
67172
|
+
M && (B = M[1]), e && e(f.clusterid, B);
|
|
67173
|
+
}, p.onMouseEnter = () => {
|
|
67174
|
+
const B = f.id.split("_");
|
|
67175
|
+
B && a && a(B[0]);
|
|
67174
67176
|
}), cl(
|
|
67175
|
-
|
|
67176
|
-
|
|
67177
|
-
|
|
67177
|
+
d,
|
|
67178
|
+
p,
|
|
67179
|
+
A.map(c)
|
|
67178
67180
|
);
|
|
67179
67181
|
};
|
|
67180
|
-
return /* @__PURE__ */ N.jsx(N.Fragment, { children: t &&
|
|
67182
|
+
return /* @__PURE__ */ N.jsx(N.Fragment, { children: t && c(t) });
|
|
67181
67183
|
}
|
|
67182
67184
|
const bye = xo(Gle), Ule = (t, e) => ({
|
|
67183
67185
|
"&.MuiTextField-root": {
|
|
@@ -97241,6 +97243,9 @@ const Eve = Hme, kve = (t, e) => ({
|
|
|
97241
97243
|
showPoints: !1,
|
|
97242
97244
|
selected: c,
|
|
97243
97245
|
onShapeSelect: u,
|
|
97246
|
+
styles: {
|
|
97247
|
+
width: "50%"
|
|
97248
|
+
},
|
|
97244
97249
|
children: /* @__PURE__ */ N.jsx(
|
|
97245
97250
|
Hh,
|
|
97246
97251
|
{
|
|
@@ -97254,7 +97259,9 @@ const Eve = Hme, kve = (t, e) => ({
|
|
|
97254
97259
|
),
|
|
97255
97260
|
r && /* @__PURE__ */ N.jsx(Pt, { sx: Rve, children: /* @__PURE__ */ N.jsx(kl, { sx: Hve }) })
|
|
97256
97261
|
] }),
|
|
97257
|
-
/* @__PURE__ */ N.jsx(x1, {
|
|
97262
|
+
/* @__PURE__ */ N.jsx(x1, { sx: {
|
|
97263
|
+
paddingBottom: "0 !important"
|
|
97264
|
+
}, children: /* @__PURE__ */ N.jsxs(Pt, { sx: Tve, children: [
|
|
97258
97265
|
/* @__PURE__ */ N.jsxs(Pt, { display: "flex", justifyContent: "space-between", children: [
|
|
97259
97266
|
/* @__PURE__ */ N.jsx(Jt, { variant: "body2", sx: m, children: t.length ? h(n(t[0])) : "Start time" }),
|
|
97260
97267
|
/* @__PURE__ */ N.jsx(Jt, { variant: "body2", sx: m, children: t.length ? h(n(t[d])) : "Current time" }),
|
|
@@ -97279,7 +97286,6 @@ const Eve = Hme, kve = (t, e) => ({
|
|
|
97279
97286
|
display: "flex",
|
|
97280
97287
|
justifyContent: "center",
|
|
97281
97288
|
alignItems: "center",
|
|
97282
|
-
mb: 2,
|
|
97283
97289
|
sx: A,
|
|
97284
97290
|
gap: "12px",
|
|
97285
97291
|
children: [
|