stone-kit 0.0.675 → 0.0.680

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,4 +1,4 @@
1
- import { jsxs as a, Fragment as m, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as a, Fragment as m, jsx as p } from "react/jsx-runtime";
2
2
  import { forwardRef as x } from "react";
3
3
  import { c as k } from "../../../index-rKuIKazb.js";
4
4
  const f = "_inputWrapper_1ice0_10", P = "_inputWrapperPost_1ice0_37", g = "_inputWrapperPre_1ice0_38", w = "_light_1ice0_54", $ = "_dark_1ice0_92", B = "_inputWrapperError_1ice0_133", E = "_checkBox_1ice0_147", r = {
@@ -21,11 +21,11 @@ const f = "_inputWrapper_1ice0_10", P = "_inputWrapperPost_1ice0_37", g = "_inpu
21
21
  variant: l = "light",
22
22
  width: h = "auto",
23
23
  error: d,
24
- type: p,
24
+ type: i,
25
25
  additionalClass: W = "",
26
26
  ...c
27
27
  }, n) => /* @__PURE__ */ a(m, { children: [
28
- p !== "checkbox" && /* @__PURE__ */ a(
28
+ i !== "checkbox" && /* @__PURE__ */ a(
29
29
  "div",
30
30
  {
31
31
  className: o(
@@ -41,20 +41,20 @@ const f = "_inputWrapper_1ice0_10", P = "_inputWrapperPost_1ice0_37", g = "_inpu
41
41
  W
42
42
  ),
43
43
  children: [
44
- e && /* @__PURE__ */ i("span", { children: e }),
45
- /* @__PURE__ */ i(
44
+ e && /* @__PURE__ */ p("div", { children: e }),
45
+ /* @__PURE__ */ p(
46
46
  "input",
47
47
  {
48
48
  ref: n,
49
- type: p,
49
+ type: i,
50
50
  ...c
51
51
  }
52
52
  ),
53
- t && /* @__PURE__ */ i("span", { children: t })
53
+ t && /* @__PURE__ */ p("div", { children: t })
54
54
  ]
55
55
  }
56
56
  ),
57
- p === "checkbox" && /* @__PURE__ */ i("input", { className: o(r.checkBox), ref: n, type: p, ...c })
57
+ i === "checkbox" && /* @__PURE__ */ p("input", { className: o(r.checkBox), ref: n, type: i, ...c })
58
58
  ] })
59
59
  );
60
60
  N.displayName = "Input";
@@ -1,60 +1,60 @@
1
- import { jsxs as _, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as d, jsx as l } from "react/jsx-runtime";
2
2
  import { c as u } from "../../../index-rKuIKazb.js";
3
- const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", n = {
3
+ const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", t = {
4
4
  btnCommon: w,
5
5
  "auto-width": "_auto-width_1act6_18",
6
6
  "full-width": "_full-width_1act6_22",
7
7
  "small-size": "_small-size_1act6_26",
8
8
  whiteFilled: r
9
- }, h = u.bind(n), F = ({
10
- size: a = "small",
11
- pre: t = !1,
12
- children: e = "",
13
- post: l = !1,
14
- variant: m = "whiteFilled",
15
- width: o = "auto",
16
- additionalClass: c = "",
17
- ...i
9
+ }, _ = u.bind(t), F = ({
10
+ size: m = "small",
11
+ pre: n = !1,
12
+ children: o = "",
13
+ post: i = !1,
14
+ variant: s = "whiteFilled",
15
+ width: c = "auto",
16
+ additionalClass: a = "",
17
+ ...e
18
18
  }) => {
19
- if (i.as === "link") {
20
- const { as: C, ...b } = i;
21
- return /* @__PURE__ */ _(
19
+ if (e.as === "link") {
20
+ const { as: C, ...b } = e;
21
+ return /* @__PURE__ */ d(
22
22
  "a",
23
23
  {
24
- className: h(
25
- n.btnCommon,
26
- n[`${a}-size`],
27
- n[`${m}`],
28
- { [n.btnCommonInline]: t || l },
29
- n[`${o}-width`],
30
- c
24
+ className: _(
25
+ t.btnCommon,
26
+ t[`${m}-size`],
27
+ t[`${s}`],
28
+ { [t.btnCommonInline]: n || i },
29
+ t[`${c}-width`],
30
+ a
31
31
  ),
32
32
  ...b,
33
33
  children: [
34
- t && /* @__PURE__ */ s("span", { children: t }),
35
- e,
36
- l && /* @__PURE__ */ s("span", { children: l })
34
+ n && /* @__PURE__ */ l("div", { children: n }),
35
+ o,
36
+ i && /* @__PURE__ */ l("div", { children: i })
37
37
  ]
38
38
  }
39
39
  );
40
40
  }
41
- const { as: f, ...d } = i;
42
- return /* @__PURE__ */ _(
41
+ const { as: f, ...h } = e;
42
+ return /* @__PURE__ */ d(
43
43
  "button",
44
44
  {
45
- className: h(
46
- n.btnCommon,
47
- n[`${a}-size`],
48
- n[`${m}`],
49
- { [n.btnCommonInline]: t || l },
50
- n[`${o}-width`],
51
- c
45
+ className: _(
46
+ t.btnCommon,
47
+ t[`${m}-size`],
48
+ t[`${s}`],
49
+ { [t.btnCommonInline]: n || i },
50
+ t[`${c}-width`],
51
+ a
52
52
  ),
53
- ...d,
53
+ ...h,
54
54
  children: [
55
- t && /* @__PURE__ */ s("span", { children: t }),
56
- e,
57
- l && /* @__PURE__ */ s("span", { children: l })
55
+ n && /* @__PURE__ */ l("div", { children: n }),
56
+ o,
57
+ i && /* @__PURE__ */ l("div", { children: i })
58
58
  ]
59
59
  }
60
60
  );
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.675",
5
+ "version": "0.0.680",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",