stone-kit 0.0.847 → 0.0.848

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.
@@ -2,6 +2,7 @@
2
2
  interface Props {
3
3
  text?: string;
4
4
  error: boolean;
5
+ emitIsChecked?: (isChecked: boolean) => void;
5
6
  isChecked?: boolean;
6
7
  children?: React.ReactNode;
7
8
  }
@@ -1,43 +1,44 @@
1
- import { jsxs as h, jsx as c } from "react/jsx-runtime";
2
- import { Input as b } from "../Input/ui/Input.js";
3
- import { c as m } from "../../index-rKuIKazb.js";
4
- import { forwardRef as _ } from "react";
1
+ import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
+ import { Input as m } from "../Input/ui/Input.js";
3
+ import { c as _ } from "../../index-rKuIKazb.js";
4
+ import { forwardRef as x } from "react";
5
5
  import { NewIcon as i } from "../NewIcon/ui/NewIcon.js";
6
- const x = "_checkboxLabel_1uvh2_1", k = "_labelText_1uvh2_36", d = "_error_1uvh2_44", p = "_checkIcon_1uvh2_53", e = {
7
- checkboxLabel: x,
8
- labelText: k,
6
+ const k = "_checkboxLabel_1uvh2_1", p = "_labelText_1uvh2_36", d = "_error_1uvh2_44", f = "_checkIcon_1uvh2_53", o = {
7
+ checkboxLabel: k,
8
+ labelText: p,
9
9
  error: d,
10
- checkIcon: p
11
- }, s = m.bind(e), N = _(
12
- ({ text: o, isChecked: l, error: r, children: t, ...a }, n) => /* @__PURE__ */ h("label", { className: s(e.checkboxLabel, { [e.error]: r }), children: [
13
- /* @__PURE__ */ c(
14
- b,
10
+ checkIcon: f
11
+ }, n = _.bind(o), T = x(
12
+ ({ text: c, isChecked: r, error: a, children: s, emitIsChecked: l, ...t }, h) => /* @__PURE__ */ b("label", { className: n(o.checkboxLabel, { [o.error]: a }), children: [
13
+ /* @__PURE__ */ e(
14
+ m,
15
15
  {
16
16
  type: "checkbox",
17
- ...a,
18
- ref: n
17
+ ...t,
18
+ onChange: () => l && l(!r),
19
+ ref: h
19
20
  }
20
21
  ),
21
- l && /* @__PURE__ */ c(
22
+ r && /* @__PURE__ */ e(
22
23
  i,
23
24
  {
24
- additionalClass: e.checkIcon,
25
+ additionalClass: o.checkIcon,
25
26
  color: "#B1B5C3",
26
27
  strokeWidth: "1.5",
27
28
  name: "check",
28
29
  size: "20"
29
30
  }
30
31
  ),
31
- /* @__PURE__ */ c(
32
+ /* @__PURE__ */ e(
32
33
  "div",
33
34
  {
34
- className: s(e.labelText, { [e.error]: r }),
35
- dangerouslySetInnerHTML: o ? { __html: o } : void 0,
36
- children: t
35
+ className: n(o.labelText, { [o.error]: a }),
36
+ dangerouslySetInnerHTML: c ? { __html: c } : void 0,
37
+ children: s
37
38
  }
38
39
  )
39
40
  ] })
40
41
  );
41
42
  export {
42
- N as CheckBoxNew
43
+ T as CheckBoxNew
43
44
  };
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.847",
5
+ "version": "0.0.848",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",