stone-kit 0.0.769 → 0.0.770

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,7 +1,7 @@
1
- import { jsx as t, jsxs as m, Fragment as r } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as m, Fragment as r } from "react/jsx-runtime";
2
2
  import { c as g } from "../../../index-rKuIKazb.js";
3
3
  import { NewIcon as k } from "../../NewIcon/ui/NewIcon.js";
4
- const w = "_btnCommon_ty9np_1", f = "_btnLoading_ty9np_20", C = "_isHidden_ty9np_24", N = "_blue_ty9np_68", v = "_lightBlue_ty9np_82", H = "_sokolniki_ty9np_97", S = "_black_ty9np_111", B = "_gray_ty9np_125", L = "_whiteStroke_ty9np_139", $ = "_whiteFilled_ty9np_151", x = "_shade_ty9np_165", F = "_transparent_ty9np_171", j = "_volodiyaLight_ty9np_192", I = "_loader_ty9np_198", q = "_LoaderSpin_ty9np_1", n = {
4
+ const w = "_btnCommon_ty9np_1", f = "_btnLoading_ty9np_20", C = "_isHidden_ty9np_24", N = "_blue_ty9np_68", v = "_lightBlue_ty9np_82", H = "_sokolniki_ty9np_97", S = "_black_ty9np_111", B = "_gray_ty9np_125", L = "_whiteStroke_ty9np_139", $ = "_whiteFilled_ty9np_151", x = "_shade_ty9np_165", F = "_transparent_ty9np_171", j = "_volodiyaLight_ty9np_192", I = "_loader_ty9np_198", q = "_LoaderSpin_ty9np_1", e = {
5
5
  btnCommon: w,
6
6
  btnLoading: f,
7
7
  isHidden: C,
@@ -31,63 +31,63 @@ const w = "_btnCommon_ty9np_1", f = "_btnLoading_ty9np_20", C = "_isHidden_ty9np
31
31
  "small-size_l": "_small-size_l_ty9np_241",
32
32
  "medium-size_l": "_medium-size_l_ty9np_248",
33
33
  "large-size_l": "_large-size_l_ty9np_255"
34
- }, e = g.bind(n), G = ({
34
+ }, i = g.bind(e), G = ({
35
35
  size: y = "medium",
36
36
  size_m: c,
37
- size_l: p,
38
- onCLick: o,
39
- pre: i = !1,
40
- children: z = "",
37
+ size_l: z,
38
+ onCLick: a,
39
+ pre: l = !1,
40
+ children: p = "",
41
41
  post: s = !1,
42
42
  variant: h = "blue",
43
43
  width: u = "auto",
44
44
  additionalClass: b = "",
45
- isLoading: _ = !1,
46
- ...l
45
+ isLoading: t = !1,
46
+ ..._
47
47
  }) => {
48
- const a = e(
49
- n.btnCommon,
50
- n[`${y}-size`],
51
- n[`${c}-size_m`],
52
- n[`${p}-size_l`],
53
- n[`${h}`],
54
- { [n.btnLoading]: _ },
55
- { [n.btnCommonInline]: i || s },
56
- n[`${u}-width`],
48
+ const o = i(
49
+ e.btnCommon,
50
+ e[`${y}-size`],
51
+ e[`${c}-size_m`],
52
+ e[`${z}-size_l`],
53
+ e[`${h}`],
54
+ { [e.btnLoading]: t },
55
+ { [e.btnCommonInline]: l || s },
56
+ e[`${u}-width`],
57
57
  b
58
58
  ), d = () => /* @__PURE__ */ m(r, { children: [
59
- _ && /* @__PURE__ */ t(
59
+ t && /* @__PURE__ */ n(
60
60
  k,
61
61
  {
62
62
  name: "loader",
63
63
  size: "24",
64
64
  color: "currentColor",
65
- additionalClass: n.loader
65
+ additionalClass: e.loader
66
66
  }
67
67
  ),
68
68
  /* @__PURE__ */ m(r, { children: [
69
- i && /* @__PURE__ */ t("div", { className: e({ [n.isHidden]: _ }), children: i }),
70
- /* @__PURE__ */ t("div", { className: e({ [n.isHidden]: _ }), children: z }),
71
- s && /* @__PURE__ */ t("div", { className: e({ [n.isHidden]: _ }), children: s })
69
+ l && /* @__PURE__ */ n("div", { className: i({ [e.isHidden]: t }), children: l }),
70
+ /* @__PURE__ */ n("div", { className: i({ [e.isHidden]: t }), children: p }),
71
+ s && /* @__PURE__ */ n("div", { className: i({ [e.isHidden]: t }), children: s })
72
72
  ] })
73
73
  ] });
74
- return l.as === "link" ? /* @__PURE__ */ t(
74
+ return _.as === "link" ? (delete _.as, /* @__PURE__ */ n(
75
75
  "a",
76
76
  {
77
- className: a,
78
- onClick: o,
79
- ...l,
77
+ className: o,
78
+ onClick: a,
79
+ ..._,
80
80
  children: d()
81
81
  }
82
- ) : /* @__PURE__ */ t(
82
+ )) : (delete _.as, /* @__PURE__ */ n(
83
83
  "button",
84
84
  {
85
- className: a,
86
- onClick: o,
87
- ...l,
85
+ className: o,
86
+ onClick: a,
87
+ ..._,
88
88
  children: d()
89
89
  }
90
- );
90
+ ));
91
91
  };
92
92
  export {
93
93
  G as Button
@@ -26,12 +26,12 @@ interface ButtonProps {
26
26
  width?: btnWidth;
27
27
  additionalClass?: string;
28
28
  isLoading?: boolean;
29
- as: 'button' | 'link';
30
- onCLick?: () => {};
29
+ as?: 'button' | 'link';
30
+ onCLick?: () => any;
31
31
  }
32
32
  export type ComponentProps = ButtonProps & ((React.ButtonHTMLAttributes<HTMLButtonElement> & {
33
- as: 'button';
33
+ as?: 'button';
34
34
  }) | (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
35
- as: 'link';
35
+ as?: 'link';
36
36
  } & Required<Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>));
37
37
  export {};
@@ -0,0 +1 @@
1
+ export declare const deepEqual: (obj1: Record<string, unknown>, obj2: Record<string, unknown>) => boolean;
@@ -0,0 +1,16 @@
1
+ const f = (e, t) => {
2
+ if (e === t)
3
+ return !0;
4
+ if (e == null || typeof e != "object" || t == null || typeof t != "object")
5
+ return !1;
6
+ const r = Object.keys(e), s = Object.keys(t);
7
+ if (r.length !== s.length)
8
+ return !1;
9
+ for (const n of r)
10
+ if (!s.includes(n) || !f(e[n], t[n]))
11
+ return !1;
12
+ return !0;
13
+ };
14
+ export {
15
+ f as deepEqual
16
+ };
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.769",
5
+ "version": "0.0.770",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",