stone-kit 0.0.392 → 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 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", 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: T,
8
- route: b,
9
- auto: x,
10
- full: w,
11
- transparent: W,
12
- long: z,
13
- withBg: B
14
- }, a = j.bind(c), A = ({
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: _ = "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: s(
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: 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: 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,8 +51,8 @@ const N = "_root_1aljy_1", v = "_iconsWrapper_1aljy_17", T = "_metroColor_1aljy_
51
51
  }
52
52
  )
53
53
  },
54
- i + `${n.name}`
55
- ) : /* @__PURE__ */ l(
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__ */ s(
66
+ o == null ? void 0 : o.map((n, i) => !n.mode || !n.timeTo ? null : /* @__PURE__ */ l(
67
67
  "div",
68
68
  {
69
- className: c.route,
69
+ className: a.route,
70
70
  children: [
71
- h.includes(n.mode) && /* @__PURE__ */ l(
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
- i + n.timeTo
82
+ `route - ${n.name} - ${i}`
83
83
  ))
84
84
  ]
85
85
  }
86
- ) : /* @__PURE__ */ s(
86
+ ) : /* @__PURE__ */ l(
87
87
  "div",
88
88
  {
89
- className: a(
90
- c.root,
91
- c[_],
92
- c[u ? "long" : ""],
93
- c[p ? "withBg" : ""],
89
+ className: s(
90
+ a.root,
91
+ a[u],
92
+ a[_ ? "long" : ""],
93
+ a[p ? "withBg" : ""],
94
94
  e,
95
- c[d]
95
+ a[d]
96
96
  ),
97
97
  ...g,
98
98
  children: [
99
- /* @__PURE__ */ s("div", { className: a(c.metroColor, t), children: [
100
- (o == null ? void 0 : o.icon) && /* @__PURE__ */ l(
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__ */ l("span", { style: { background: (o == null ? void 0 : o.color) ?? "" } }),
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__ */ s("div", { className: a(c.route, y), children: [
112
- o.mode && h.includes(o.mode) && /* @__PURE__ */ l(
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",
@@ -124,5 +124,5 @@ const N = "_root_1aljy_1", v = "_iconsWrapper_1aljy_17", T = "_metroColor_1aljy_
124
124
  );
125
125
  };
126
126
  export {
127
- A as MetroTag
127
+ k as MetroTag
128
128
  };
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.392",
5
+ "version": "0.0.394",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",