stone-kit 0.0.167 → 0.0.168

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,3 +1,3 @@
1
1
  import { IMetroTagProps } from './MetroTag.types';
2
2
 
3
- export declare const MetroTag: ({ addClassName, metro, width, variant, isBetween, ...rest }: IMetroTagProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const MetroTag: ({ addClassName, addClassNameColor, metro, width, variant, isBetween, ...rest }: IMetroTagProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,33 +1,41 @@
1
1
  import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
- import { c as g } from "../../../index-DIxK0V-G.js";
3
- import { NewIcon as d } from "../../NewIcon/ui/NewIcon.js";
4
- const p = "_root_egoo4_1", f = "_metroColor_egoo4_15", N = "_route_egoo4_25", m = "_auto_egoo4_35", x = "_full_egoo4_39", C = "_transparent_egoo4_43", b = "_long_egoo4_49", s = {
5
- root: p,
6
- metroColor: f,
7
- route: N,
8
- auto: m,
9
- full: x,
10
- transparent: C,
11
- long: b
12
- }, h = g.bind(s), w = ({ addClassName: e, metro: o, width: r = "auto", variant: c = "default", isBetween: l = !1, ..._ }) => {
13
- const u = ["car", "walk"];
2
+ import { c as p } from "../../../index-DIxK0V-G.js";
3
+ import { NewIcon as f } from "../../NewIcon/ui/NewIcon.js";
4
+ const N = "_root_egoo4_1", m = "_metroColor_egoo4_15", x = "_route_egoo4_25", C = "_auto_egoo4_35", b = "_full_egoo4_39", h = "_transparent_egoo4_43", v = "_long_egoo4_49", s = {
5
+ root: N,
6
+ metroColor: m,
7
+ route: x,
8
+ auto: C,
9
+ full: b,
10
+ transparent: h,
11
+ long: v
12
+ }, e = p.bind(s), I = ({
13
+ addClassName: r,
14
+ addClassNameColor: c,
15
+ metro: o,
16
+ width: l = "auto",
17
+ variant: _ = "default",
18
+ isBetween: u = !1,
19
+ ...i
20
+ }) => {
21
+ const g = ["car", "walk"];
14
22
  return /* @__PURE__ */ t(
15
23
  "div",
16
24
  {
17
- className: h(s.root, s[c], s[l ? "long" : ""], e, s[r]),
18
- ..._,
25
+ className: e(s.root, s[_], s[u ? "long" : ""], r, s[l]),
26
+ ...i,
19
27
  children: [
20
- /* @__PURE__ */ t("div", { className: s.metroColor, children: [
28
+ /* @__PURE__ */ t("div", { className: e(s.metroColor, c), children: [
21
29
  (o == null ? void 0 : o.color) && /* @__PURE__ */ a("span", { style: { background: (o == null ? void 0 : o.color) ?? "" } }),
22
30
  o.name
23
31
  ] }),
24
- o.routes && o.routes.map((n, i) => /* @__PURE__ */ t(
32
+ o.routes && o.routes.map((n, d) => /* @__PURE__ */ t(
25
33
  "div",
26
34
  {
27
35
  className: s.route,
28
36
  children: [
29
- n.iconName && u.includes(n.iconName) && /* @__PURE__ */ a(
30
- d,
37
+ n.iconName && g.includes(n.iconName) && /* @__PURE__ */ a(
38
+ f,
31
39
  {
32
40
  size: "20",
33
41
  name: n.iconName,
@@ -37,12 +45,12 @@ const p = "_root_egoo4_1", f = "_metroColor_egoo4_15", N = "_route_egoo4_25", m
37
45
  n.timeTo + " мин"
38
46
  ]
39
47
  },
40
- i
48
+ d
41
49
  ))
42
50
  ]
43
51
  }
44
52
  );
45
53
  };
46
54
  export {
47
- w as MetroTag
55
+ I as MetroTag
48
56
  };
@@ -11,6 +11,7 @@ export interface IMetroTagProps extends React.HTMLAttributes<HTMLDivElement> {
11
11
  };
12
12
  variant?: 'default' | 'transparent';
13
13
  addClassName?: string;
14
+ addClassNameColor?: string;
14
15
  isBetween?: boolean;
15
16
  width?: TagWidth;
16
17
  }
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.167",
5
+ "version": "0.0.168",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",