stone-kit 0.0.408 → 0.0.409

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,30 +1,30 @@
1
1
  import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
2
  import { c as w } from "../../../index-rKuIKazb.js";
3
3
  import { NewIcon as t } from "../../NewIcon/ui/NewIcon.js";
4
- const N = "_root_16fjr_1", W = "_iconsWrapper_16fjr_17", B = "_metroColor_16fjr_27", $ = "_route_16fjr_37", C = "_auto_16fjr_47", b = "_full_16fjr_51", v = "_transparent_16fjr_55", x = "_long_16fjr_60", T = "_mini_16fjr_64", y = "_metroColorMini_16fjr_68", z = "_routeMini_16fjr_77", E = "_withBg_16fjr_90", F = "_withWhiteBg_16fjr_94", n = {
4
+ const N = "_root_16fjr_1", W = "_iconsWrapper_16fjr_17", x = "_metroColor_16fjr_27", B = "_route_16fjr_37", T = "_auto_16fjr_47", $ = "_full_16fjr_51", C = "_transparent_16fjr_55", b = "_long_16fjr_60", v = "_mini_16fjr_64", y = "_metroColorMini_16fjr_68", I = "_routeMini_16fjr_77", z = "_withBg_16fjr_90", E = "_withWhiteBg_16fjr_94", n = {
5
5
  root: N,
6
6
  iconsWrapper: W,
7
- metroColor: B,
8
- route: $,
9
- auto: C,
10
- full: b,
11
- transparent: v,
12
- long: x,
13
- mini: T,
7
+ metroColor: x,
8
+ route: B,
9
+ auto: T,
10
+ full: $,
11
+ transparent: C,
12
+ long: b,
13
+ mini: v,
14
14
  metroColorMini: y,
15
- routeMini: z,
16
- withBg: E,
17
- withWhiteBg: F
18
- }, l = w.bind(n), q = ({
15
+ routeMini: I,
16
+ withBg: z,
17
+ withWhiteBg: E
18
+ }, e = w.bind(n), q = ({
19
19
  addClassName: a,
20
20
  addClassNameColor: _,
21
21
  addClassNameTimeTo: j,
22
22
  metro: o,
23
23
  separatorColor: M = "#F4F5F6",
24
24
  width: u = "auto",
25
- variant: e = "default",
26
- isBetween: d = !1,
27
- withBg: f = !1,
25
+ variant: l = "default",
26
+ isBetween: f = !1,
27
+ withBg: d = !1,
28
28
  withWhiteBg: p = !1,
29
29
  ...h
30
30
  }) => {
@@ -32,18 +32,18 @@ const N = "_root_16fjr_1", W = "_iconsWrapper_16fjr_17", B = "_metroColor_16fjr_
32
32
  return Array.isArray(o) ? /* @__PURE__ */ c(
33
33
  "div",
34
34
  {
35
- className: l(
35
+ className: e(
36
36
  n.root,
37
- n[e],
38
- n[d ? "long" : ""],
39
- n[f ? "withBg" : ""],
37
+ n[l],
38
+ n[f ? "long" : ""],
39
+ n[d ? "withBg" : ""],
40
40
  n[p ? "withWhiteBg" : ""],
41
41
  a,
42
42
  n[u]
43
43
  ),
44
44
  ...h,
45
45
  children: [
46
- /* @__PURE__ */ c("div", { className: l(n.metroColor, _), children: [
46
+ /* @__PURE__ */ c("div", { className: e(n.metroColor, _), children: [
47
47
  /* @__PURE__ */ r("div", { className: n.iconsWrapper, children: o.map((i, s) => i.icon ? /* @__PURE__ */ r(
48
48
  "div",
49
49
  {
@@ -83,7 +83,7 @@ const N = "_root_16fjr_1", W = "_iconsWrapper_16fjr_17", B = "_metroColor_16fjr_
83
83
  color: "#777E90"
84
84
  }
85
85
  ),
86
- i.timeTo + " мин"
86
+ i.timeTo + " " + (i.selfIconText ?? "мин")
87
87
  ]
88
88
  },
89
89
  `route - ${i.name} - ${s}`
@@ -93,11 +93,11 @@ const N = "_root_16fjr_1", W = "_iconsWrapper_16fjr_17", B = "_metroColor_16fjr_
93
93
  ) : /* @__PURE__ */ c(
94
94
  "div",
95
95
  {
96
- className: l(
96
+ className: e(
97
97
  n.root,
98
- n[e],
99
- n[d ? "long" : ""],
100
- n[f ? "withBg" : ""],
98
+ n[l],
99
+ n[f ? "long" : ""],
100
+ n[d ? "withBg" : ""],
101
101
  n[p ? "withWhiteBg" : ""],
102
102
  a,
103
103
  n[u]
@@ -107,7 +107,7 @@ const N = "_root_16fjr_1", W = "_iconsWrapper_16fjr_17", B = "_metroColor_16fjr_
107
107
  /* @__PURE__ */ c(
108
108
  "div",
109
109
  {
110
- className: l(n.metroColor, _, { [n.metroColorMini]: e === "mini" }),
110
+ className: e(n.metroColor, _, { [n.metroColorMini]: l === "mini" }),
111
111
  children: [
112
112
  (o == null ? void 0 : o.icon) && /* @__PURE__ */ r(
113
113
  "img",
@@ -122,7 +122,7 @@ const N = "_root_16fjr_1", W = "_iconsWrapper_16fjr_17", B = "_metroColor_16fjr_
122
122
  ]
123
123
  }
124
124
  ),
125
- o.timeTo && /* @__PURE__ */ c("div", { className: l(n.route, j, { [n.routeMini]: e === "mini" }), children: [
125
+ o.timeTo && /* @__PURE__ */ c("div", { className: e(n.route, j, { [n.routeMini]: l === "mini" }), children: [
126
126
  o.mode && g.includes(o.mode) && /* @__PURE__ */ r(
127
127
  t,
128
128
  {
@@ -131,7 +131,7 @@ const N = "_root_16fjr_1", W = "_iconsWrapper_16fjr_17", B = "_metroColor_16fjr_
131
131
  color: "#777E90"
132
132
  }
133
133
  ),
134
- o.timeTo + " мин"
134
+ o.timeTo + " " + (o.selfIconText ?? "мин")
135
135
  ] })
136
136
  ]
137
137
  }
@@ -7,6 +7,7 @@ export interface IMetroTagProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  color?: string;
8
8
  timeTo?: number;
9
9
  mode?: string;
10
+ selfIconText?: string | undefined;
10
11
  icon?: string;
11
12
  } | {
12
13
  name?: string;
@@ -14,6 +15,7 @@ export interface IMetroTagProps extends React.HTMLAttributes<HTMLDivElement> {
14
15
  color?: string;
15
16
  timeTo?: number;
16
17
  mode?: string;
18
+ selfIconText?: string | undefined;
17
19
  icon?: string;
18
20
  }[];
19
21
  separatorColor?: 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.408",
5
+ "version": "0.0.409",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",