stone-kit 0.0.375 → 0.0.376

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