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