stone-kit 0.0.1076 → 0.0.1077

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,8 +1,8 @@
1
- import { jsxs as e, jsx as i } from "react/jsx-runtime";
2
- import { c as M } from "../../../index-YnD2EP-S.js";
3
- import { NewIcon as l } from "../../NewIcon/ui/NewIcon.js";
4
- const w = "_root_16fjr_1", N = "_iconsWrapper_16fjr_17", W = "_metroColor_16fjr_27", x = "_route_16fjr_37", B = "_auto_16fjr_47", T = "_full_16fjr_51", $ = "_transparent_16fjr_55", C = "_long_16fjr_60", b = "_mini_16fjr_64", v = "_metroColorMini_16fjr_68", y = "_routeMini_16fjr_77", I = "_withBg_16fjr_90", z = "_withWhiteBg_16fjr_94", o = {
5
- root: w,
1
+ import { jsxs as e, jsx as n } from "react/jsx-runtime";
2
+ import { c as w } from "../../../index-YnD2EP-S.js";
3
+ import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
4
+ const M = "_root_16fjr_1", N = "_iconsWrapper_16fjr_17", W = "_metroColor_16fjr_27", x = "_route_16fjr_37", B = "_auto_16fjr_47", T = "_full_16fjr_51", $ = "_transparent_16fjr_55", C = "_long_16fjr_60", b = "_mini_16fjr_64", v = "_metroColorMini_16fjr_68", y = "_routeMini_16fjr_77", I = "_withBg_16fjr_90", F = "_withWhiteBg_16fjr_94", o = {
5
+ root: M,
6
6
  iconsWrapper: N,
7
7
  metroColor: W,
8
8
  route: x,
@@ -14,102 +14,102 @@ const w = "_root_16fjr_1", N = "_iconsWrapper_16fjr_17", W = "_metroColor_16fjr_
14
14
  metroColorMini: v,
15
15
  routeMini: y,
16
16
  withBg: I,
17
- withWhiteBg: z
18
- }, c = M.bind(o), A = ({
19
- addClassName: a,
20
- addClassNameColor: _,
17
+ withWhiteBg: F
18
+ }, s = w.bind(o), E = ({
19
+ addClassName: l,
20
+ addClassNameColor: a,
21
21
  addClassNameTimeTo: g,
22
22
  metro: r,
23
23
  separatorColor: j = "#F4F5F6",
24
- width: u = "auto",
25
- variant: s = "default",
26
- isBetween: f = !1,
24
+ width: _ = "auto",
25
+ variant: c = "default",
26
+ isBetween: u = !1,
27
27
  withBg: d = !1,
28
- withWhiteBg: m = !1,
29
- ...p
28
+ withWhiteBg: f = !1,
29
+ ...h
30
30
  }) => {
31
- const h = ["pedestrian", "auto"];
31
+ const m = ["pedestrian", "auto"];
32
32
  return Array.isArray(r) ? /* @__PURE__ */ e(
33
33
  "div",
34
34
  {
35
- className: c(
35
+ className: s(
36
36
  o.root,
37
- o[s],
38
- o[f ? "long" : ""],
37
+ o[c],
38
+ o[u ? "long" : ""],
39
39
  o[d ? "withBg" : ""],
40
- o[m ? "withWhiteBg" : ""],
41
- a,
42
- o[u]
40
+ o[f ? "withWhiteBg" : ""],
41
+ l,
42
+ o[_]
43
43
  ),
44
- ...p,
44
+ ...h,
45
45
  children: [
46
- /* @__PURE__ */ e("div", { className: c(o.metroColor, _), children: [
47
- /* @__PURE__ */ i("div", { className: o.iconsWrapper, children: r.map((n, t) => n.icon ? /* @__PURE__ */ i(
46
+ /* @__PURE__ */ e("div", { className: s(o.metroColor, a), children: [
47
+ /* @__PURE__ */ n("div", { className: o.iconsWrapper, children: r.map((i, t) => i.icon ? /* @__PURE__ */ n(
48
48
  "div",
49
49
  {
50
50
  className: o.icon,
51
- children: n?.icon && /* @__PURE__ */ i(
52
- l,
51
+ children: /* @__PURE__ */ n(
52
+ "img",
53
53
  {
54
- size: "20",
55
- name: n.icon,
56
- color: "#777E90"
54
+ src: i.icon,
55
+ width: 20,
56
+ height: 20
57
57
  }
58
58
  )
59
59
  },
60
- `metro + ${n.name} + ${t}`
61
- ) : /* @__PURE__ */ i(
60
+ `metro + ${i.name} + ${t}`
61
+ ) : /* @__PURE__ */ n(
62
62
  "span",
63
63
  {
64
64
  style: {
65
- background: n?.color ?? "",
65
+ background: i?.color ?? "",
66
66
  border: t > 0 ? `1px solid ${j}` : ""
67
67
  }
68
68
  },
69
- `color + ${n.name} + ${t}`
69
+ `color + ${i.name} + ${t}`
70
70
  )) }),
71
- r.map((n) => n.name).join(", ")
71
+ r.map((i) => i.name).join(", ")
72
72
  ] }),
73
- r?.map((n, t) => !n.mode || !n.timeTo ? null : /* @__PURE__ */ e(
73
+ r?.map((i, t) => !i.mode || !i.timeTo ? null : /* @__PURE__ */ e(
74
74
  "div",
75
75
  {
76
76
  className: o.route,
77
77
  children: [
78
- h.includes(n.mode) && /* @__PURE__ */ i(
79
- l,
78
+ m.includes(i.mode) && /* @__PURE__ */ n(
79
+ p,
80
80
  {
81
81
  size: "20",
82
- name: n.mode,
82
+ name: i.mode,
83
83
  color: "#777E90"
84
84
  }
85
85
  ),
86
- n.timeTo + " " + (n.selfIconText ?? "мин")
86
+ i.timeTo + " " + (i.selfIconText ?? "мин")
87
87
  ]
88
88
  },
89
- `route - ${n.name} - ${t}`
89
+ `route - ${i.name} - ${t}`
90
90
  ))
91
91
  ]
92
92
  }
93
93
  ) : /* @__PURE__ */ e(
94
94
  "div",
95
95
  {
96
- className: c(
96
+ className: s(
97
97
  o.root,
98
- o[s],
99
- o[f ? "long" : ""],
98
+ o[c],
99
+ o[u ? "long" : ""],
100
100
  o[d ? "withBg" : ""],
101
- o[m ? "withWhiteBg" : ""],
102
- a,
103
- o[u]
101
+ o[f ? "withWhiteBg" : ""],
102
+ l,
103
+ o[_]
104
104
  ),
105
- ...p,
105
+ ...h,
106
106
  children: [
107
107
  /* @__PURE__ */ e(
108
108
  "div",
109
109
  {
110
- className: c(o.metroColor, _, { [o.metroColorMini]: s === "mini" }),
110
+ className: s(o.metroColor, a, { [o.metroColorMini]: c === "mini" }),
111
111
  children: [
112
- r?.icon && /* @__PURE__ */ i(
112
+ r?.icon && /* @__PURE__ */ n(
113
113
  "img",
114
114
  {
115
115
  src: r.icon,
@@ -117,14 +117,14 @@ const w = "_root_16fjr_1", N = "_iconsWrapper_16fjr_17", W = "_metroColor_16fjr_
117
117
  height: 20
118
118
  }
119
119
  ),
120
- r?.color && !r?.icon && /* @__PURE__ */ i("span", { style: { background: r?.color ?? "" } }),
120
+ r?.color && !r?.icon && /* @__PURE__ */ n("span", { style: { background: r?.color ?? "" } }),
121
121
  r.name
122
122
  ]
123
123
  }
124
124
  ),
125
- r.timeTo && /* @__PURE__ */ e("div", { className: c(o.route, g, { [o.routeMini]: s === "mini" }), children: [
126
- r.mode && h.includes(r.mode) && /* @__PURE__ */ i(
127
- l,
125
+ r.timeTo && /* @__PURE__ */ e("div", { className: s(o.route, g, { [o.routeMini]: c === "mini" }), children: [
126
+ r.mode && m.includes(r.mode) && /* @__PURE__ */ n(
127
+ p,
128
128
  {
129
129
  size: "20",
130
130
  name: r.mode,
@@ -138,5 +138,5 @@ const w = "_root_16fjr_1", N = "_iconsWrapper_16fjr_17", W = "_metroColor_16fjr_
138
138
  );
139
139
  };
140
140
  export {
141
- A as MetroTag
141
+ E as MetroTag
142
142
  };
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.1076",
5
+ "version": "0.0.1077",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",