stone-kit 0.0.393 → 0.0.394
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", b = "_metroColor_1aljy_27", x = "_route_1aljy_37", T = "_auto_1aljy_47", $ = "_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:
|
|
8
|
-
route:
|
|
9
|
-
auto:
|
|
10
|
-
full:
|
|
11
|
-
transparent:
|
|
12
|
-
long:
|
|
13
|
-
withBg:
|
|
14
|
-
},
|
|
7
|
+
metroColor: b,
|
|
8
|
+
route: x,
|
|
9
|
+
auto: T,
|
|
10
|
+
full: $,
|
|
11
|
+
transparent: w,
|
|
12
|
+
long: W,
|
|
13
|
+
withBg: z
|
|
14
|
+
}, s = 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: s(
|
|
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: s(a.metroColor, t), children: [
|
|
41
|
+
/* @__PURE__ */ c("div", { className: a.iconsWrapper, children: o.map((n, i) => 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,8 +51,8 @@ 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} + ${i}`
|
|
55
|
+
) : /* @__PURE__ */ c(
|
|
56
56
|
"span",
|
|
57
57
|
{
|
|
58
58
|
style: {
|
|
@@ -63,12 +63,12 @@ const N = "_root_1aljy_1", v = "_iconsWrapper_1aljy_17", T = "_metroColor_1aljy_
|
|
|
63
63
|
)) }),
|
|
64
64
|
o.map((n) => n.name).join(", ")
|
|
65
65
|
] }),
|
|
66
|
-
o == null ? void 0 : o.map((n, i) => !n.mode || !n.timeTo ? null : /* @__PURE__ */
|
|
66
|
+
o == null ? void 0 : o.map((n, i) => !n.mode || !n.timeTo ? null : /* @__PURE__ */ l(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
|
-
className:
|
|
69
|
+
className: a.route,
|
|
70
70
|
children: [
|
|
71
|
-
h.includes(n.mode) && /* @__PURE__ */
|
|
71
|
+
h.includes(n.mode) && /* @__PURE__ */ c(
|
|
72
72
|
r,
|
|
73
73
|
{
|
|
74
74
|
size: "20",
|
|
@@ -79,25 +79,25 @@ const N = "_root_1aljy_1", v = "_iconsWrapper_1aljy_17", T = "_metroColor_1aljy_
|
|
|
79
79
|
n.timeTo + " мин"
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
|
-
|
|
82
|
+
`route - ${n.name} - ${i}`
|
|
83
83
|
))
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
|
-
) : /* @__PURE__ */
|
|
86
|
+
) : /* @__PURE__ */ l(
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
|
-
className:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
className: s(
|
|
90
|
+
a.root,
|
|
91
|
+
a[u],
|
|
92
|
+
a[_ ? "long" : ""],
|
|
93
|
+
a[p ? "withBg" : ""],
|
|
94
94
|
e,
|
|
95
|
-
|
|
95
|
+
a[d]
|
|
96
96
|
),
|
|
97
97
|
...g,
|
|
98
98
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
(o == null ? void 0 : o.icon) && /* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ l("div", { className: s(a.metroColor, t), children: [
|
|
100
|
+
(o == null ? void 0 : o.icon) && /* @__PURE__ */ c(
|
|
101
101
|
"img",
|
|
102
102
|
{
|
|
103
103
|
src: o.icon,
|
|
@@ -105,11 +105,11 @@ const N = "_root_1aljy_1", v = "_iconsWrapper_1aljy_17", T = "_metroColor_1aljy_
|
|
|
105
105
|
height: 20
|
|
106
106
|
}
|
|
107
107
|
),
|
|
108
|
-
(o == null ? void 0 : o.color) && !(o != null && o.icon) && /* @__PURE__ */
|
|
108
|
+
(o == null ? void 0 : o.color) && !(o != null && o.icon) && /* @__PURE__ */ c("span", { style: { background: (o == null ? void 0 : o.color) ?? "" } }),
|
|
109
109
|
o.name
|
|
110
110
|
] }),
|
|
111
|
-
o.timeTo && /* @__PURE__ */
|
|
112
|
-
o.mode && h.includes(o.mode) && /* @__PURE__ */
|
|
111
|
+
o.timeTo && /* @__PURE__ */ l("div", { className: s(a.route, y), children: [
|
|
112
|
+
o.mode && h.includes(o.mode) && /* @__PURE__ */ c(
|
|
113
113
|
r,
|
|
114
114
|
{
|
|
115
115
|
size: "20",
|