stone-kit 0.0.527 → 0.0.529

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,10 +1,10 @@
1
1
  import { jsxs as _, Fragment as z, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as c, useEffect as F } from "react";
3
- import { NewIcon as N } from "../../NewIcon/ui/NewIcon.js";
3
+ import { NewIcon as C } from "../../NewIcon/ui/NewIcon.js";
4
4
  import { M as R } from "../../../Modal-BZv6nlLe.js";
5
- import { S as O } from "../../../SortSelect-Chp89Mue.js";
5
+ import { S as N } from "../../../SortSelect-Chp89Mue.js";
6
6
  import { O as E } from "../../../Option-CyYM1iBJ.js";
7
- import { Button as S } from "../../Button/ui/Button.js";
7
+ import { Button as O } from "../../Button/ui/Button.js";
8
8
  const q = "_root_1fkwh_1", D = "_filterWithSaveModal_1fkwh_15", G = "_modalAddBody_1fkwh_20", H = "_closeBtn_1fkwh_29", J = "_modalTitle_1fkwh_35", K = "_tabSWitcherWrapper_1fkwh_44", L = "_switcherTitle_1fkwh_52", P = "_switcherScroll_1fkwh_59", Q = "_tabs_1fkwh_63", U = "_selectWrapper_1fkwh_68", X = "_filterOption_1fkwh_72", Y = "_btnWrapper_1fkwh_79", Z = "_resetBtn_1fkwh_85", $ = "_saveBtn_1fkwh_86", t = {
9
9
  root: q,
10
10
  filterWithSaveModal: D,
@@ -20,22 +20,22 @@ const q = "_root_1fkwh_1", D = "_filterWithSaveModal_1fkwh_15", G = "_modalAddBo
20
20
  btnWrapper: Y,
21
21
  resetBtn: Z,
22
22
  saveBtn: $
23
- }, rt = ({
24
- disabledOptions: M = [],
25
- tabs: r = [],
23
+ }, at = ({
24
+ disabledOptions: S = [],
25
+ tabs: a = [],
26
26
  selectOptions: v = [],
27
27
  onChange: d,
28
28
  selectedValues: u = [],
29
29
  setSelectedTabs: l,
30
30
  selectedTabs: h = []
31
31
  }) => {
32
- const [w, m] = c(!1), [B] = c(h), [y] = c(u), [p, n] = c(B), [s, k] = c(y), A = (i) => {
33
- if (M.some((a) => a.value === i.value))
32
+ const [w, m] = c(!1), [M] = c(h), [y] = c(u), [p, n] = c(M), [s, k] = c(y), A = (i) => {
33
+ if (S.some((r) => r.value === i.value))
34
34
  return;
35
- const o = s.some((a) => a.value === i.value) ? s.filter((a) => a.value !== i.value) : [...s, i];
35
+ const o = s.some((r) => r.value === i.value) ? s.filter((r) => r.value !== i.value) : [...s, i];
36
36
  k(o);
37
37
  }, I = () => {
38
- n([]), k([]), d && (d([]), l == null || l(B));
38
+ n(a), k([]), d && (d([]), l == null || l(a));
39
39
  }, x = () => {
40
40
  k(u), n(h);
41
41
  }, g = () => {
@@ -54,7 +54,7 @@ const q = "_root_1fkwh_1", D = "_filterWithSaveModal_1fkwh_15", G = "_modalAddBo
54
54
  m((i) => !i);
55
55
  },
56
56
  children: /* @__PURE__ */ e(
57
- N,
57
+ C,
58
58
  {
59
59
  name: "filter",
60
60
  size: "16"
@@ -77,7 +77,7 @@ const q = "_root_1fkwh_1", D = "_filterWithSaveModal_1fkwh_15", G = "_modalAddBo
77
77
  className: t.closeBtn,
78
78
  onClick: g,
79
79
  children: /* @__PURE__ */ e(
80
- N,
80
+ C,
81
81
  {
82
82
  name: "close",
83
83
  size: "24"
@@ -89,31 +89,31 @@ const q = "_root_1fkwh_1", D = "_filterWithSaveModal_1fkwh_15", G = "_modalAddBo
89
89
  /* @__PURE__ */ _("div", { className: t.tabSWitcherWrapper, children: [
90
90
  /* @__PURE__ */ e("div", { className: t.switcherTitle, children: "Готовность" }),
91
91
  /* @__PURE__ */ e("div", { className: t.switcherScroll, children: /* @__PURE__ */ e(
92
- O,
92
+ N,
93
93
  {
94
94
  variant: "grayRow",
95
95
  addClassName: t.tabs,
96
96
  isApart: !0,
97
- children: r == null ? void 0 : r.map((i, o) => {
98
- var C;
99
- const a = i.value;
97
+ children: a == null ? void 0 : a.map((i, o) => {
98
+ var B;
99
+ const r = i.value;
100
100
  return /* @__PURE__ */ e(
101
- O.Item,
101
+ N.Item,
102
102
  {
103
- itemsLength: r == null ? void 0 : r.length,
103
+ itemsLength: a == null ? void 0 : a.length,
104
104
  mini: !0,
105
- value: a,
105
+ value: r,
106
106
  onClick: () => {
107
107
  },
108
- checked: ((C = p == null ? void 0 : p.find((W) => W.value === a)) == null ? void 0 : C.state) ?? !1,
108
+ checked: ((B = p == null ? void 0 : p.find((W) => W.value === r)) == null ? void 0 : B.state) ?? !1,
109
109
  onChange: () => {
110
110
  n == null || n(
111
- (W) => W.map((f) => f.value === a ? { ...f, state: !f.state } : f)
111
+ (W) => W.map((f) => f.value === r ? { ...f, state: !f.state } : f)
112
112
  );
113
113
  },
114
114
  index: o,
115
115
  addItemClassName: t.tabSwitcher,
116
- children: a
116
+ children: r
117
117
  },
118
118
  o
119
119
  );
@@ -135,7 +135,7 @@ const q = "_root_1fkwh_1", D = "_filterWithSaveModal_1fkwh_15", G = "_modalAddBo
135
135
  )) }),
136
136
  /* @__PURE__ */ _("div", { className: t.btnWrapper, children: [
137
137
  /* @__PURE__ */ e(
138
- S,
138
+ O,
139
139
  {
140
140
  as: "button",
141
141
  variant: "gray",
@@ -145,7 +145,7 @@ const q = "_root_1fkwh_1", D = "_filterWithSaveModal_1fkwh_15", G = "_modalAddBo
145
145
  }
146
146
  ),
147
147
  /* @__PURE__ */ e(
148
- S,
148
+ O,
149
149
  {
150
150
  as: "button",
151
151
  additionalClass: t.saveBtn,
@@ -160,5 +160,5 @@ const q = "_root_1fkwh_1", D = "_filterWithSaveModal_1fkwh_15", G = "_modalAddBo
160
160
  ] });
161
161
  };
162
162
  export {
163
- rt as FilterWithSave
163
+ at as FilterWithSave
164
164
  };
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.527",
5
+ "version": "0.0.529",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",