stone-kit 0.0.393 → 0.0.395
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.
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { c as j } from "../../../index-rKuIKazb.js";
|
|
3
3
|
import { NewIcon as r } from "../../NewIcon/ui/NewIcon.js";
|
|
4
|
-
const N = "_root_1aljy_1", v = "_iconsWrapper_1aljy_17",
|
|
4
|
+
const N = "_root_1aljy_1", v = "_iconsWrapper_1aljy_17", $ = "_metroColor_1aljy_27", b = "_route_1aljy_37", x = "_auto_1aljy_47", T = "_full_1aljy_51", w = "_transparent_1aljy_55", W = "_long_1aljy_60", z = "_withBg_1aljy_64", a = {
|
|
5
5
|
root: N,
|
|
6
6
|
iconsWrapper: v,
|
|
7
|
-
metroColor:
|
|
7
|
+
metroColor: $,
|
|
8
8
|
route: b,
|
|
9
9
|
auto: x,
|
|
10
|
-
full:
|
|
11
|
-
transparent:
|
|
12
|
-
long:
|
|
13
|
-
withBg:
|
|
14
|
-
},
|
|
10
|
+
full: T,
|
|
11
|
+
transparent: w,
|
|
12
|
+
long: W,
|
|
13
|
+
withBg: z
|
|
14
|
+
}, i = j.bind(a), k = ({
|
|
15
15
|
addClassName: e,
|
|
16
16
|
addClassNameColor: t,
|
|
17
17
|
addClassNameTimeTo: y,
|
|
18
18
|
metro: o,
|
|
19
19
|
separatorColor: f = "#F4F5F6",
|
|
20
20
|
width: d = "auto",
|
|
21
|
-
variant:
|
|
22
|
-
isBetween:
|
|
21
|
+
variant: u = "default",
|
|
22
|
+
isBetween: _ = !1,
|
|
23
23
|
withBg: p = !1,
|
|
24
24
|
...g
|
|
25
25
|
}) => {
|
|
26
26
|
const h = ["pedestrian", "auto"];
|
|
27
|
-
return Array.isArray(o) ? /* @__PURE__ */
|
|
27
|
+
return Array.isArray(o) ? /* @__PURE__ */ l(
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
|
-
className:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
className: i(
|
|
31
|
+
a.root,
|
|
32
|
+
a[u],
|
|
33
|
+
a[_ ? "long" : ""],
|
|
34
|
+
a[p ? "withBg" : ""],
|
|
35
35
|
e,
|
|
36
|
-
|
|
36
|
+
a[d]
|
|
37
37
|
),
|
|
38
38
|
...g,
|
|
39
39
|
children: [
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ l("div", { className: i(a.metroColor, t), children: [
|
|
41
|
+
/* @__PURE__ */ c("div", { className: a.iconsWrapper, children: o.map((n, s) => n.icon ? /* @__PURE__ */ c(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
|
-
className:
|
|
45
|
-
children: (n == null ? void 0 : n.icon) && /* @__PURE__ */
|
|
44
|
+
className: a.icon,
|
|
45
|
+
children: (n == null ? void 0 : n.icon) && /* @__PURE__ */ c(
|
|
46
46
|
r,
|
|
47
47
|
{
|
|
48
48
|
size: "20",
|
|
@@ -51,24 +51,25 @@ const N = "_root_1aljy_1", v = "_iconsWrapper_1aljy_17", T = "_metroColor_1aljy_
|
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
},
|
|
54
|
-
|
|
55
|
-
) : /* @__PURE__ */
|
|
54
|
+
`metro + ${n.name} + ${s}`
|
|
55
|
+
) : /* @__PURE__ */ c(
|
|
56
56
|
"span",
|
|
57
57
|
{
|
|
58
58
|
style: {
|
|
59
59
|
background: (n == null ? void 0 : n.color) ?? "",
|
|
60
|
-
border:
|
|
60
|
+
border: s > 0 ? `1px solid ${f}` : ""
|
|
61
61
|
}
|
|
62
|
-
}
|
|
62
|
+
},
|
|
63
|
+
`color + ${n.name} + ${s}`
|
|
63
64
|
)) }),
|
|
64
65
|
o.map((n) => n.name).join(", ")
|
|
65
66
|
] }),
|
|
66
|
-
o == null ? void 0 : o.map((n,
|
|
67
|
+
o == null ? void 0 : o.map((n, s) => !n.mode || !n.timeTo ? null : /* @__PURE__ */ l(
|
|
67
68
|
"div",
|
|
68
69
|
{
|
|
69
|
-
className:
|
|
70
|
+
className: a.route,
|
|
70
71
|
children: [
|
|
71
|
-
h.includes(n.mode) && /* @__PURE__ */
|
|
72
|
+
h.includes(n.mode) && /* @__PURE__ */ c(
|
|
72
73
|
r,
|
|
73
74
|
{
|
|
74
75
|
size: "20",
|
|
@@ -79,25 +80,25 @@ const N = "_root_1aljy_1", v = "_iconsWrapper_1aljy_17", T = "_metroColor_1aljy_
|
|
|
79
80
|
n.timeTo + " мин"
|
|
80
81
|
]
|
|
81
82
|
},
|
|
82
|
-
|
|
83
|
+
`route - ${n.name} - ${s}`
|
|
83
84
|
))
|
|
84
85
|
]
|
|
85
86
|
}
|
|
86
|
-
) : /* @__PURE__ */
|
|
87
|
+
) : /* @__PURE__ */ l(
|
|
87
88
|
"div",
|
|
88
89
|
{
|
|
89
|
-
className:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
className: i(
|
|
91
|
+
a.root,
|
|
92
|
+
a[u],
|
|
93
|
+
a[_ ? "long" : ""],
|
|
94
|
+
a[p ? "withBg" : ""],
|
|
94
95
|
e,
|
|
95
|
-
|
|
96
|
+
a[d]
|
|
96
97
|
),
|
|
97
98
|
...g,
|
|
98
99
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
(o == null ? void 0 : o.icon) && /* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ l("div", { className: i(a.metroColor, t), children: [
|
|
101
|
+
(o == null ? void 0 : o.icon) && /* @__PURE__ */ c(
|
|
101
102
|
"img",
|
|
102
103
|
{
|
|
103
104
|
src: o.icon,
|
|
@@ -105,11 +106,11 @@ const N = "_root_1aljy_1", v = "_iconsWrapper_1aljy_17", T = "_metroColor_1aljy_
|
|
|
105
106
|
height: 20
|
|
106
107
|
}
|
|
107
108
|
),
|
|
108
|
-
(o == null ? void 0 : o.color) && !(o != null && o.icon) && /* @__PURE__ */
|
|
109
|
+
(o == null ? void 0 : o.color) && !(o != null && o.icon) && /* @__PURE__ */ c("span", { style: { background: (o == null ? void 0 : o.color) ?? "" } }),
|
|
109
110
|
o.name
|
|
110
111
|
] }),
|
|
111
|
-
o.timeTo && /* @__PURE__ */
|
|
112
|
-
o.mode && h.includes(o.mode) && /* @__PURE__ */
|
|
112
|
+
o.timeTo && /* @__PURE__ */ l("div", { className: i(a.route, y), children: [
|
|
113
|
+
o.mode && h.includes(o.mode) && /* @__PURE__ */ c(
|
|
113
114
|
r,
|
|
114
115
|
{
|
|
115
116
|
size: "20",
|