stone-kit 0.0.57 → 0.0.62

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,85 +1,88 @@
1
- import { jsx as e, jsxs as t, Fragment as o } from "react/jsx-runtime";
2
- import { c as k } from "../../../index-DIxK0V-G.js";
3
- import { NewIcon as f } from "../../NewIcon/ui/NewIcon.js";
4
- const w = "_btnCommon_2h1hm_1", y = "_blue_2h1hm_58", g = "_sokolniki_2h1hm_72", C = "_black_2h1hm_86", S = "_gray_2h1hm_100", N = "_whiteStroke_2h1hm_114", $ = "_whiteFilled_2h1hm_126", x = "_shade_2h1hm_140", F = "_loader_2h1hm_154", j = "_LoaderSpin_2h1hm_1", _ = {
5
- btnCommon: w,
6
- "auto-width": "_auto-width_2h1hm_18",
7
- "full-width": "_full-width_2h1hm_22",
8
- "tiny-size": "_tiny-size_2h1hm_26",
9
- "small-size": "_small-size_2h1hm_34",
10
- "medium-size": "_medium-size_2h1hm_42",
11
- "large-size": "_large-size_2h1hm_50",
12
- blue: y,
13
- sokolniki: g,
14
- black: C,
15
- gray: S,
16
- whiteStroke: N,
17
- whiteFilled: $,
18
- shade: x,
19
- loader: F,
20
- LoaderSpin: j,
21
- "tiny-size_m": "_tiny-size_m_2h1hm_159",
22
- "small-size_m": "_small-size_m_2h1hm_166",
23
- "medium-size_m": "_medium-size_m_2h1hm_173",
24
- "large-size_m": "_large-size_m_2h1hm_180",
25
- "tiny-size_l": "_tiny-size_l_2h1hm_189",
26
- "small-size_l": "_small-size_l_2h1hm_196",
27
- "medium-size_l": "_medium-size_l_2h1hm_203",
28
- "large-size_l": "_large-size_l_2h1hm_210"
29
- }, B = k.bind(_), q = ({
30
- size: a = "medium",
1
+ import { jsx as e, jsxs as a, Fragment as m } from "react/jsx-runtime";
2
+ import { c as f } from "../../../index-DIxK0V-G.js";
3
+ import { NewIcon as w } from "../../NewIcon/ui/NewIcon.js";
4
+ const g = "_btnCommon_8itoc_1", y = "_btnLoading_8itoc_19", N = "_isHidden_8itoc_23", C = "_blue_8itoc_67", H = "_sokolniki_8itoc_81", S = "_black_8itoc_95", $ = "_gray_8itoc_109", x = "_whiteStroke_8itoc_123", F = "_whiteFilled_8itoc_135", L = "_shade_8itoc_149", j = "_loader_8itoc_163", p = "_LoaderSpin_8itoc_1", i = {
5
+ btnCommon: g,
6
+ btnLoading: y,
7
+ isHidden: N,
8
+ "auto-width": "_auto-width_8itoc_27",
9
+ "full-width": "_full-width_8itoc_31",
10
+ "tiny-size": "_tiny-size_8itoc_35",
11
+ "small-size": "_small-size_8itoc_43",
12
+ "medium-size": "_medium-size_8itoc_51",
13
+ "large-size": "_large-size_8itoc_59",
14
+ blue: C,
15
+ sokolniki: H,
16
+ black: S,
17
+ gray: $,
18
+ whiteStroke: x,
19
+ whiteFilled: F,
20
+ shade: L,
21
+ loader: j,
22
+ LoaderSpin: p,
23
+ "tiny-size_m": "_tiny-size_m_8itoc_169",
24
+ "small-size_m": "_small-size_m_8itoc_176",
25
+ "medium-size_m": "_medium-size_m_8itoc_183",
26
+ "large-size_m": "_large-size_m_8itoc_190",
27
+ "tiny-size_l": "_tiny-size_l_8itoc_199",
28
+ "small-size_l": "_small-size_l_8itoc_206",
29
+ "medium-size_l": "_medium-size_l_8itoc_213",
30
+ "large-size_l": "_large-size_l_8itoc_220"
31
+ }, t = f.bind(i), v = ({
32
+ size: d = "medium",
31
33
  size_m: r,
32
- size_l: d,
33
- pre: i = !1,
34
- children: c = "",
35
- post: m = !1,
36
- variant: z = "blue",
37
- width: u = "auto",
38
- additionalClass: b = "",
39
- isLoading: l = !1,
40
- ...s
34
+ size_l: z,
35
+ pre: s = !1,
36
+ children: u = "",
37
+ post: o = !1,
38
+ variant: b = "blue",
39
+ width: h = "auto",
40
+ additionalClass: k = "",
41
+ isLoading: _ = !1,
42
+ ...l
41
43
  }) => {
42
- const h = B(
43
- _.btnCommon,
44
- _[`${a}-size`],
45
- _[`${r}-size_m`],
46
- _[`${d}-size_l`],
47
- _[`${z}`],
48
- { [_.btnCommonInline]: i || m },
49
- _[`${u}-width`],
50
- b
51
- ), n = () => /* @__PURE__ */ t(o, { children: [
52
- l && /* @__PURE__ */ e(
53
- f,
44
+ const n = t(
45
+ i.btnCommon,
46
+ i[`${d}-size`],
47
+ i[`${r}-size_m`],
48
+ i[`${z}-size_l`],
49
+ i[`${b}`],
50
+ { [i.btnLoading]: _ },
51
+ { [i.btnCommonInline]: s || o },
52
+ i[`${h}-width`],
53
+ k
54
+ ), c = () => /* @__PURE__ */ a(m, { children: [
55
+ _ && /* @__PURE__ */ e(
56
+ w,
54
57
  {
55
58
  name: "loader",
56
59
  size: "24",
57
60
  color: "#fff",
58
- additionalClass: _.loader
61
+ additionalClass: i.loader
59
62
  }
60
63
  ),
61
- !l && /* @__PURE__ */ t(o, { children: [
62
- i && /* @__PURE__ */ e("span", { children: i }),
63
- c,
64
- m && /* @__PURE__ */ e("span", { children: m })
64
+ /* @__PURE__ */ a(m, { children: [
65
+ s && /* @__PURE__ */ e("span", { className: t({ [i.isHidden]: _ }), children: s }),
66
+ /* @__PURE__ */ e("span", { className: t({ [i.isHidden]: _ }), children: u }),
67
+ o && /* @__PURE__ */ e("span", { className: t({ [i.isHidden]: _ }), children: o })
65
68
  ] })
66
69
  ] });
67
- return s.as === "link" ? /* @__PURE__ */ e(
70
+ return l.as === "link" ? /* @__PURE__ */ e(
68
71
  "a",
69
72
  {
70
- className: h,
71
- ...s,
72
- children: n()
73
+ className: n,
74
+ ...l,
75
+ children: c()
73
76
  }
74
77
  ) : /* @__PURE__ */ e(
75
78
  "button",
76
79
  {
77
- className: h,
78
- ...s,
79
- children: n()
80
+ className: n,
81
+ ...l,
82
+ children: c()
80
83
  }
81
84
  );
82
85
  };
83
86
  export {
84
- q as Button
87
+ v as Button
85
88
  };
@@ -1,4 +1,4 @@
1
- import { M as r } from "../../Modal-Ch1wdLz_.js";
1
+ import { Modal as a } from "./ui/Modal.js";
2
2
  export {
3
- r as Modal
3
+ a as Modal
4
4
  };