stone-kit 0.0.385 → 0.0.386

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