stone-kit 0.0.376 → 0.0.377

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,57 +1,55 @@
1
- import { jsxs as i, jsx as s } from "react/jsx-runtime";
2
- import { c as p } from "../../../index-rKuIKazb.js";
3
- import { NewIcon as z } from "../../NewIcon/ui/NewIcon.js";
4
- const f = "_root_1izmi_1", h = "_metroColor_1izmi_16", b = "_route_1izmi_26", x = "_auto_1izmi_36", w = "_full_1izmi_40", N = "_transparent_1izmi_44", k = "_long_1izmi_49", m = "_withBg_1izmi_53", n = {
1
+ import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
+ import { c as h } from "../../../index-rKuIKazb.js";
3
+ import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
4
+ const f = "_root_1izmi_1", z = "_metroColor_1izmi_16", w = "_route_1izmi_26", N = "_auto_1izmi_36", m = "_full_1izmi_40", x = "_transparent_1izmi_44", B = "_long_1izmi_49", C = "_withBg_1izmi_53", i = {
5
5
  root: f,
6
- metroColor: h,
7
- route: b,
8
- auto: x,
9
- full: w,
10
- transparent: N,
11
- long: k,
12
- withBg: m
13
- }, a = p.bind(n), I = ({
14
- addClassName: c,
15
- addClassNameColor: l,
6
+ metroColor: z,
7
+ route: w,
8
+ auto: N,
9
+ full: m,
10
+ transparent: x,
11
+ long: B,
12
+ withBg: C
13
+ }, c = h.bind(i), j = ({
14
+ addClassName: l,
15
+ addClassNameColor: a,
16
16
  addClassNameTimeTo: t,
17
17
  metro: o,
18
18
  width: _ = "auto",
19
19
  variant: u = "default",
20
- isBetween: e = !1,
20
+ isBetween: d = !1,
21
21
  withBg: r = !1,
22
- ...d
22
+ ...e
23
23
  }) => {
24
24
  const g = ["pedestrian", "auto"];
25
- return /* @__PURE__ */ i(
25
+ return /* @__PURE__ */ s(
26
26
  "div",
27
27
  {
28
- className: a(
29
- n.root,
30
- n[u],
31
- n[e ? "long" : ""],
32
- n[r ? "withBg" : ""],
33
- c,
34
- n[_]
28
+ className: c(
29
+ i.root,
30
+ i[u],
31
+ i[d ? "long" : ""],
32
+ i[r ? "withBg" : ""],
33
+ l,
34
+ i[_]
35
35
  ),
36
- ...d,
36
+ ...e,
37
37
  children: [
38
- /* @__PURE__ */ i("div", { className: a(n.metroColor, l), children: [
39
- (o == null ? void 0 : o.icon) && /* @__PURE__ */ s(
40
- "div",
38
+ /* @__PURE__ */ s("div", { className: c(i.metroColor, a), children: [
39
+ (o == null ? void 0 : o.icon) && /* @__PURE__ */ n(
40
+ "img",
41
41
  {
42
- style: {
43
- backgroundImage: `url${o.icon}`,
44
- backgroundSize: "20px 20px",
45
- backgroundRepeat: "no-repeat"
46
- }
42
+ src: o.icon,
43
+ width: 20,
44
+ height: 20
47
45
  }
48
46
  ),
49
- (o == null ? void 0 : o.color) && !(o != null && o.icon) && /* @__PURE__ */ s("span", { style: { background: (o == null ? void 0 : o.color) ?? "" } }),
47
+ (o == null ? void 0 : o.color) && !(o != null && o.icon) && /* @__PURE__ */ n("span", { style: { background: (o == null ? void 0 : o.color) ?? "" } }),
50
48
  o.name
51
49
  ] }),
52
- o.timeTo && /* @__PURE__ */ i("div", { className: a(n.route, t), children: [
53
- o.mode && g.includes(o.mode) && /* @__PURE__ */ s(
54
- z,
50
+ o.timeTo && /* @__PURE__ */ s("div", { className: c(i.route, t), children: [
51
+ o.mode && g.includes(o.mode) && /* @__PURE__ */ n(
52
+ p,
55
53
  {
56
54
  size: "20",
57
55
  name: o.mode,
@@ -65,5 +63,5 @@ const f = "_root_1izmi_1", h = "_metroColor_1izmi_16", b = "_route_1izmi_26", x
65
63
  );
66
64
  };
67
65
  export {
68
- I as MetroTag
66
+ j as MetroTag
69
67
  };
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.376",
5
+ "version": "0.0.377",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",