stone-kit 0.0.765 → 0.0.766

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.
@@ -6,6 +6,7 @@ interface ICheckboxSelectProps {
6
6
  isSelected: boolean;
7
7
  setValue: () => void;
8
8
  }[];
9
+ addClassname?: string;
9
10
  }
10
11
  export declare const CheckboxSelect: React.FC<ICheckboxSelectProps>;
11
12
  export {};
@@ -1,29 +1,30 @@
1
1
  import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
- import { c as i } from "../../../index-rKuIKazb.js";
3
- const s = "_root_1m9ru_1", o = "_nameWrapper_1m9ru_8", p = "_clearBtn_1m9ru_18", _ = "_checkboxWrapper_1m9ru_33", d = "_checkboxItem_1m9ru_39", m = "_checkboxItemActive_1m9ru_55", e = {
4
- root: s,
5
- nameWrapper: o,
6
- clearBtn: p,
7
- checkboxWrapper: _,
8
- checkboxItem: d,
9
- checkboxItemActive: m
10
- }, u = i.bind(e), W = ({
11
- label: n = "Тип квартиры",
12
- checkboxes: t
2
+ import { c as o } from "../../../index-rKuIKazb.js";
3
+ const p = "_root_1m9ru_1", _ = "_nameWrapper_1m9ru_8", d = "_clearBtn_1m9ru_18", m = "_checkboxWrapper_1m9ru_33", u = "_checkboxItem_1m9ru_39", v = "_checkboxItemActive_1m9ru_55", e = {
4
+ root: p,
5
+ nameWrapper: _,
6
+ clearBtn: d,
7
+ checkboxWrapper: m,
8
+ checkboxItem: u,
9
+ checkboxItemActive: v
10
+ }, n = o.bind(e), N = ({
11
+ label: c = "Тип квартиры",
12
+ checkboxes: t,
13
+ addClassname: i
13
14
  }) => {
14
- const c = () => {
15
+ const s = () => {
15
16
  t == null || t.forEach((r) => {
16
17
  r != null && r.isSelected && (r == null || r.setValue());
17
18
  });
18
19
  };
19
- return /* @__PURE__ */ l("div", { className: e.root, children: [
20
+ return /* @__PURE__ */ l("div", { className: n(e.root, i), children: [
20
21
  /* @__PURE__ */ l("div", { className: e.nameWrapper, children: [
21
- /* @__PURE__ */ a("div", { children: n }),
22
+ /* @__PURE__ */ a("div", { children: c }),
22
23
  /* @__PURE__ */ a(
23
24
  "div",
24
25
  {
25
26
  className: e.clearBtn,
26
- onClick: c,
27
+ onClick: s,
27
28
  children: "Очистить"
28
29
  }
29
30
  )
@@ -31,7 +32,7 @@ const s = "_root_1m9ru_1", o = "_nameWrapper_1m9ru_8", p = "_clearBtn_1m9ru_18",
31
32
  /* @__PURE__ */ a("div", { className: e.checkboxWrapper, children: t == null ? void 0 : t.map((r) => /* @__PURE__ */ a(
32
33
  "div",
33
34
  {
34
- className: u(e.checkboxItem, { [e.checkboxItemActive]: r == null ? void 0 : r.isSelected }),
35
+ className: n(e.checkboxItem, { [e.checkboxItemActive]: r == null ? void 0 : r.isSelected }),
35
36
  onClick: () => r == null ? void 0 : r.setValue(),
36
37
  children: r == null ? void 0 : r.label
37
38
  },
@@ -40,5 +41,5 @@ const s = "_root_1m9ru_1", o = "_nameWrapper_1m9ru_8", p = "_clearBtn_1m9ru_18",
40
41
  ] });
41
42
  };
42
43
  export {
43
- W as CheckboxSelect
44
+ N as CheckboxSelect
44
45
  };
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.765",
5
+ "version": "0.0.766",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",