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 s, jsx as l } from "react/jsx-runtime";
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", 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 = {
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: T,
7
+ metroColor: $,
8
8
  route: b,
9
9
  auto: x,
10
- full: w,
11
- transparent: W,
12
- long: z,
13
- withBg: B
14
- }, a = j.bind(c), k = ({
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: _ = "default",
22
- isBetween: u = !1,
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__ */ s(
27
+ return Array.isArray(o) ? /* @__PURE__ */ l(
28
28
  "div",
29
29
  {
30
- className: a(
31
- c.root,
32
- c[_],
33
- c[u ? "long" : ""],
34
- c[p ? "withBg" : ""],
30
+ className: i(
31
+ a.root,
32
+ a[u],
33
+ a[_ ? "long" : ""],
34
+ a[p ? "withBg" : ""],
35
35
  e,
36
- c[d]
36
+ a[d]
37
37
  ),
38
38
  ...g,
39
39
  children: [
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(
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: c.icon,
45
- children: (n == null ? void 0 : n.icon) && /* @__PURE__ */ l(
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
- `${n.name} - ${i}`
55
- ) : /* @__PURE__ */ l(
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: i > 0 ? `1px solid ${f}` : ""
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, i) => !n.mode || !n.timeTo ? null : /* @__PURE__ */ s(
67
+ o == null ? void 0 : o.map((n, s) => !n.mode || !n.timeTo ? null : /* @__PURE__ */ l(
67
68
  "div",
68
69
  {
69
- className: c.route,
70
+ className: a.route,
70
71
  children: [
71
- h.includes(n.mode) && /* @__PURE__ */ l(
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
- i + n.timeTo
83
+ `route - ${n.name} - ${s}`
83
84
  ))
84
85
  ]
85
86
  }
86
- ) : /* @__PURE__ */ s(
87
+ ) : /* @__PURE__ */ l(
87
88
  "div",
88
89
  {
89
- className: a(
90
- c.root,
91
- c[_],
92
- c[u ? "long" : ""],
93
- c[p ? "withBg" : ""],
90
+ className: i(
91
+ a.root,
92
+ a[u],
93
+ a[_ ? "long" : ""],
94
+ a[p ? "withBg" : ""],
94
95
  e,
95
- c[d]
96
+ a[d]
96
97
  ),
97
98
  ...g,
98
99
  children: [
99
- /* @__PURE__ */ s("div", { className: a(c.metroColor, t), children: [
100
- (o == null ? void 0 : o.icon) && /* @__PURE__ */ l(
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__ */ l("span", { style: { background: (o == null ? void 0 : o.color) ?? "" } }),
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__ */ s("div", { className: a(c.route, y), children: [
112
- o.mode && h.includes(o.mode) && /* @__PURE__ */ l(
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",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.393",
5
+ "version": "0.0.395",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",