stone-kit 0.0.668 → 0.0.670

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 f, jsx as t, Fragment as P } from "react/jsx-runtime";
1
+ import { jsxs as g, jsx as t, Fragment as P } from "react/jsx-runtime";
2
2
  import { NewIcon as $ } from "./components/NewIcon/ui/NewIcon.js";
3
3
  import { M as J } from "./Modal-BZv6nlLe.js";
4
4
  import { forwardRef as Q, useState as R, useRef as q, useEffect as j } from "react";
@@ -17,7 +17,7 @@ import "./components/MetroTag/ui/MetroTag.js";
17
17
  import "./components/LotCard/ui/LotCard.js";
18
18
  import "./components/Select/ui/Select.js";
19
19
  import { useClientWidth as F } from "./shared/useClientWidth.js";
20
- import { s as _, u as X } from "./useSortSelect-CjZXLFOG.js";
20
+ import { s as p, u as X } from "./useSortSelect-CjZXLFOG.js";
21
21
  import "./components/SliderNavigation/ui/SliderNavigation.js";
22
22
  import "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
23
23
  import "./components/TabSelect/ui/TabSelect.js";
@@ -57,67 +57,67 @@ const Y = "_root_lgek7_1", Z = "_text_lgek7_18", ee = "_textMini_lgek7_26", te =
57
57
  "text-medium-size_l": "_text-medium-size_l_lgek7_274",
58
58
  "text-large-size_l": "_text-large-size_l_lgek7_278"
59
59
  }, L = V.bind(o), _e = ({
60
- children: a,
61
- variant: r = "whiteRow",
62
- isApart: n = !1,
60
+ children: n,
61
+ variant: a = "whiteRow",
62
+ isApart: s = !1,
63
63
  addClassName: W = "",
64
- col: c = !1
65
- }) => /* @__PURE__ */ t("div", { className: L(o.root, o[r], W, { [o.rootCol]: c, [o.apart]: n }), children: a }), G = Q((a, r) => {
66
- const { isTablet: n, isDesktop: W } = F(), {
67
- index: c,
64
+ col: d = !1
65
+ }) => /* @__PURE__ */ t("div", { className: L(o.root, o[a], W, { [o.rootCol]: d, [o.apart]: s }), children: n }), G = Q((n, a) => {
66
+ const { isTablet: s, isDesktop: W } = F(), {
67
+ index: d,
68
68
  children: e,
69
- addItemClassName: l,
70
- addTextClass: d,
71
- size_s: g = "large",
69
+ addItemClassName: r,
70
+ addTextClass: m,
71
+ size_s: v = "large",
72
72
  size_m: C,
73
- size_l: O,
74
- disabled: p = !1,
73
+ size_l: S,
74
+ disabled: u = !1,
75
75
  itemsLength: z = 0,
76
76
  isLongOn: N = !0,
77
- width: S,
78
- width_m: m,
79
- width_l: u,
80
- mini: v = !1,
81
- ...k
82
- } = a, y = (e != null && e.toString().length ? (e == null ? void 0 : e.toString().length) > 2 : !1) && N, B = (x, s) => x && m ? m : s && u ? u : S, b = !S && !m && !u && y;
83
- return /* @__PURE__ */ f("label", { className: L({ [o.isLong]: y }), children: [
77
+ width: y,
78
+ width_m: _,
79
+ width_l: h,
80
+ mini: k = !1,
81
+ ...x
82
+ } = n, B = (e != null && e.toString().length ? (e == null ? void 0 : e.toString().length) > 2 : !1) && N, O = (w, l) => w && _ ? _ : l && h ? h : y, b = !y && !_ && !h && B;
83
+ return /* @__PURE__ */ g("label", { className: L({ [o.isLong]: B }), children: [
84
84
  /* @__PURE__ */ t(
85
85
  "input",
86
86
  {
87
- ref: r,
87
+ ref: a,
88
88
  type: "checkbox",
89
- ...k,
90
- disabled: p
89
+ ...x,
90
+ disabled: u
91
91
  }
92
92
  ),
93
93
  /* @__PURE__ */ t(
94
94
  "div",
95
95
  {
96
- style: { width: B(n, W) },
96
+ style: { width: O(s, W) },
97
97
  className: L(
98
98
  L(
99
99
  o.item,
100
- { [o.firstItem]: c === 0 },
101
- { [o.lastItem]: c === z - 1 },
102
- { [o.isDisabled]: p },
100
+ { [o.firstItem]: d === 0 },
101
+ { [o.lastItem]: d === z - 1 },
102
+ { [o.isDisabled]: u },
103
103
  { [o.autoWidth]: b },
104
- o[`${g}-size`],
104
+ o[`${v}-size`],
105
105
  o[`${C}-size_m`],
106
- o[`${O}-size_l`],
107
- { [o.mini]: v }
106
+ o[`${S}-size_l`],
107
+ { [o.mini]: k }
108
108
  ),
109
- l
109
+ r
110
110
  ),
111
111
  children: /* @__PURE__ */ t(
112
112
  H,
113
113
  {
114
114
  className: L(
115
115
  o.text,
116
- o[`text-${g}-size`],
116
+ o[`text-${v}-size`],
117
117
  o[`text-${C}-size_m`],
118
- o[`text-${O}-size_l`],
119
- { [o.textMini]: v },
120
- d
118
+ o[`text-${S}-size_l`],
119
+ { [o.textMini]: k },
120
+ m
121
121
  ),
122
122
  children: e
123
123
  }
@@ -127,63 +127,63 @@ const Y = "_root_lgek7_1", Z = "_text_lgek7_18", ee = "_textMini_lgek7_26", te =
127
127
  ] });
128
128
  });
129
129
  G.displayName = "TabSwitcherItem";
130
- const D = Object.assign(_e, { Item: G }), E = V.bind(_), pe = ({
131
- options: a,
132
- selectedOption: r,
133
- placeholder: n = "",
130
+ const D = Object.assign(_e, { Item: G }), E = V.bind(p), pe = ({
131
+ options: n,
132
+ selectedOption: a,
133
+ placeholder: s = "",
134
134
  error: W,
135
- disabled: c,
135
+ disabled: d,
136
136
  additionalClass: e = "",
137
- onChange: l,
138
- onBlur: d,
139
- mini: g,
137
+ onChange: r,
138
+ onBlur: m,
139
+ mini: v,
140
140
  openOnTop: C = !1,
141
- onClickItem: O,
142
- onCLickSelect: p
141
+ onClickItem: S,
142
+ onCLickSelect: u
143
143
  }) => {
144
- const [z, N] = R(!1), S = q(null), { isMobile: m } = F(), { handleBlur: u, getInputValue: v, getOption: k, handleDocumentClick: y } = X(
144
+ const [z, N] = R(!1), y = q(null), { isMobile: _ } = F(), { handleBlur: h, getInputValue: k, getOption: x, handleDocumentClick: B } = X(
145
145
  {
146
- selectedOption: r,
147
- onClickOption: O,
148
- setSelectedOption: l,
146
+ selectedOption: a,
147
+ onClickOption: S,
148
+ setSelectedOption: r,
149
149
  setIsOpen: N,
150
- containerRef: S,
150
+ containerRef: y,
151
151
  isOpen: z,
152
- isMobile: m,
153
- placeholder: n,
154
- onChange: l,
155
- onBlur: d
152
+ isMobile: _,
153
+ placeholder: s,
154
+ onChange: r,
155
+ onBlur: m
156
156
  }
157
157
  );
158
- return j(() => (document.addEventListener("click", y), () => {
159
- document.removeEventListener("click", y);
160
- }), []), /* @__PURE__ */ f(
158
+ return j(() => (document.addEventListener("click", B), () => {
159
+ document.removeEventListener("click", B);
160
+ }), []), /* @__PURE__ */ g(
161
161
  "div",
162
162
  {
163
- ref: S,
163
+ ref: y,
164
164
  className: E(
165
- _.sortSelectWrapper,
166
- { [_.sortSelectWrapperError]: W },
167
- { [_.sortSelectWrapperTop]: C },
165
+ p.sortSelectWrapper,
166
+ { [p.sortSelectWrapperError]: W },
167
+ { [p.sortSelectWrapperTop]: C },
168
168
  e
169
169
  ),
170
170
  tabIndex: 0,
171
- onBlur: u,
171
+ onBlur: h,
172
172
  onClick: () => {
173
- p && p();
173
+ u && u();
174
174
  },
175
175
  children: [
176
- /* @__PURE__ */ f("div", { className: E(_.inputWrapper), children: [
176
+ /* @__PURE__ */ g("div", { className: E(p.inputWrapper), children: [
177
177
  /* @__PURE__ */ t(
178
178
  "input",
179
179
  {
180
180
  type: "text",
181
181
  readOnly: !0,
182
- value: v(),
182
+ value: k(),
183
183
  className: E(
184
- _.selectedOptions,
185
- { [_.selectOptionsDisabled]: c },
186
- { [_.selectionOptionMini]: g }
184
+ p.selectedOptions,
185
+ { [p.selectOptionsDisabled]: d },
186
+ { [p.selectionOptionMini]: v }
187
187
  ),
188
188
  onClick: () => N(!z)
189
189
  }
@@ -193,21 +193,21 @@ const D = Object.assign(_e, { Item: G }), E = V.bind(_), pe = ({
193
193
  {
194
194
  name: "twoArrows",
195
195
  size: "24",
196
- additionalClass: _.icon
196
+ additionalClass: p.icon
197
197
  }
198
198
  )
199
199
  ] }),
200
- z && m && /* @__PURE__ */ f(
200
+ z && _ && /* @__PURE__ */ g(
201
201
  J,
202
202
  {
203
203
  isOpen: z,
204
204
  emitIsOpen: N,
205
- additionalClassModalBody: _.modalAddBody,
206
- additionalClass: _.selectModal,
205
+ additionalClassModalBody: p.modalAddBody,
206
+ additionalClass: p.selectModal,
207
207
  createPortalObj: { domNode: document.querySelector("body") },
208
208
  isTransparentBack: !0,
209
209
  children: [
210
- /* @__PURE__ */ f("div", { className: _.mobileSortHeader, children: [
210
+ /* @__PURE__ */ g("div", { className: p.mobileSortHeader, children: [
211
211
  /* @__PURE__ */ t(H, { children: "Сортировка" }),
212
212
  /* @__PURE__ */ t("div", { onClick: () => N(!1), children: /* @__PURE__ */ t(
213
213
  $,
@@ -217,17 +217,17 @@ const D = Object.assign(_e, { Item: G }), E = V.bind(_), pe = ({
217
217
  }
218
218
  ) })
219
219
  ] }),
220
- /* @__PURE__ */ t("div", { className: _.mobileOptionList, children: a == null ? void 0 : a.map((B) => k(B)) })
220
+ /* @__PURE__ */ t("div", { className: p.mobileOptionList, children: n == null ? void 0 : n.map((O) => x(O)) })
221
221
  ]
222
222
  }
223
223
  ),
224
- z && !m && /* @__PURE__ */ t("div", { className: E(_.optionsList, { [_.optionListOnTop]: C }), children: a == null ? void 0 : a.map((B) => k(B)) })
224
+ z && !_ && /* @__PURE__ */ t("div", { className: E(p.optionsList, { [p.optionListOnTop]: C }), children: n == null ? void 0 : n.map((O) => x(O)) })
225
225
  ]
226
226
  }
227
227
  );
228
228
  };
229
229
  pe.displayName = "SortSelect";
230
- const ue = "_root_xwd22_1", he = "_filterWithSaveModal_xwd22_15", fe = "_modalAddBody_xwd22_20", ge = "_closeBtn_xwd22_29", ve = "_btnName_xwd22_35", ke = "_modalTitle_xwd22_39", xe = "_tabSWitcherWrapper_xwd22_48", we = "_switcherTitle_xwd22_56", ze = "_switcherScroll_xwd22_63", Ne = "_tabs_xwd22_72", We = "_selectWrapper_xwd22_77", Ce = "_filterOption_xwd22_81", Oe = "_btnWrapper_xwd22_88", Se = "_resetBtn_xwd22_94", ye = "_saveBtn_xwd22_95", Be = "_desktopWrapper_xwd22_99", Ie = "_desktopWrapperOpen_xwd22_122", i = {
230
+ const ue = "_root_xwd22_1", he = "_filterWithSaveModal_xwd22_15", fe = "_modalAddBody_xwd22_20", ge = "_closeBtn_xwd22_29", ve = "_btnName_xwd22_35", ke = "_modalTitle_xwd22_39", xe = "_tabSWitcherWrapper_xwd22_48", we = "_switcherTitle_xwd22_56", ze = "_switcherScroll_xwd22_63", Ne = "_tabs_xwd22_72", We = "_selectWrapper_xwd22_77", Ce = "_filterOption_xwd22_81", Se = "_btnWrapper_xwd22_88", ye = "_resetBtn_xwd22_94", Be = "_saveBtn_xwd22_95", Oe = "_desktopWrapper_xwd22_99", Ie = "_desktopWrapperOpen_xwd22_122", i = {
231
231
  root: ue,
232
232
  filterWithSaveModal: he,
233
233
  modalAddBody: fe,
@@ -240,10 +240,10 @@ const ue = "_root_xwd22_1", he = "_filterWithSaveModal_xwd22_15", fe = "_modalAd
240
240
  tabs: Ne,
241
241
  selectWrapper: We,
242
242
  filterOption: Ce,
243
- btnWrapper: Oe,
244
- resetBtn: Se,
245
- saveBtn: ye,
246
- desktopWrapper: Be,
243
+ btnWrapper: Se,
244
+ resetBtn: ye,
245
+ saveBtn: Be,
246
+ desktopWrapper: Oe,
247
247
  desktopWrapperOpen: Ie
248
248
  };
249
249
  var K = { exports: {} };
@@ -252,13 +252,13 @@ var K = { exports: {} };
252
252
  Licensed under the MIT License (MIT), see
253
253
  http://jedwatson.github.io/classnames
254
254
  */
255
- (function(a) {
255
+ (function(n) {
256
256
  (function() {
257
- var r = {}.hasOwnProperty;
258
- function n() {
259
- for (var e = "", l = 0; l < arguments.length; l++) {
260
- var d = arguments[l];
261
- d && (e = c(e, W.call(this, d)));
257
+ var a = {}.hasOwnProperty;
258
+ function s() {
259
+ for (var e = "", r = 0; r < arguments.length; r++) {
260
+ var m = arguments[r];
261
+ m && (e = d(e, W.call(this, m)));
262
262
  }
263
263
  return e;
264
264
  }
@@ -268,109 +268,109 @@ var K = { exports: {} };
268
268
  if (typeof e != "object")
269
269
  return "";
270
270
  if (Array.isArray(e))
271
- return n.apply(this, e);
271
+ return s.apply(this, e);
272
272
  if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
273
273
  return e.toString();
274
- var l = "";
275
- for (var d in e)
276
- r.call(e, d) && e[d] && (l = c(l, this && this[d] || d));
277
- return l;
274
+ var r = "";
275
+ for (var m in e)
276
+ a.call(e, m) && e[m] && (r = d(r, this && this[m] || m));
277
+ return r;
278
278
  }
279
- function c(e, l) {
280
- return l ? e ? e + " " + l : e + l : e;
279
+ function d(e, r) {
280
+ return r ? e ? e + " " + r : e + r : e;
281
281
  }
282
- a.exports ? (n.default = n, a.exports = n) : window.classNames = n;
282
+ n.exports ? (s.default = s, n.exports = s) : window.classNames = s;
283
283
  })();
284
284
  })(K);
285
285
  var Me = K.exports;
286
286
  const be = /* @__PURE__ */ U(Me), Re = ({
287
- selectedTabs: a = [],
288
- selectedValues: r = [],
289
- onClickItem: n,
287
+ selectedTabs: n = [],
288
+ selectedValues: a = [],
289
+ onClickItem: s,
290
290
  disabledOptions: W = [],
291
- tabs: c = [],
291
+ tabs: d = [],
292
292
  onChange: e,
293
- setSelectedTabs: l
293
+ setSelectedTabs: r
294
294
  }) => {
295
- const { isMobile: d } = F(), [g, C] = R(!1), O = q(null), [p, z] = R(a), [N] = R(r), [S, m] = R(p), [u, v] = R(N), k = (s) => {
296
- if (n && n(s), W.some((h) => h.value === s.value))
295
+ const { isMobile: m } = F(), [v, C] = R(!1), S = q(null), [u, z] = R(n), [N] = R(a), [y, _] = R(u), [h, k] = R(N), x = (l) => {
296
+ if (s && s(l), W.some((f) => f.value === l.value))
297
297
  return;
298
- const w = u.some((h) => h.value === s.value) ? u.filter((h) => h.value !== s.value) : [...u, s];
299
- v(w);
300
- }, y = () => {
301
- z(c), m(c), v([]), e && (e([]), l == null || l(c));
298
+ const c = h.some((f) => f.value === l.value) ? h.filter((f) => f.value !== l.value) : [...h, l];
299
+ k(c);
302
300
  }, B = () => {
303
- v(r), m(a);
301
+ z(d), _(d), k([]), e && (e([]), r == null || r(d));
302
+ }, O = () => {
303
+ k(a), _(n);
304
304
  }, b = () => {
305
- B(), C(!1);
306
- }, x = (s) => {
307
- s.stopPropagation(), e && (l == null || l(S), e(u)), C(!1);
305
+ O(), C(!1);
306
+ }, w = (l) => {
307
+ l.stopPropagation(), e && (r == null || r(y), e(h)), C(!1);
308
308
  };
309
309
  return j(() => {
310
- g || m((s) => JSON.stringify(s) !== JSON.stringify(a) ? a : s);
311
- }, [g, a]), j(() => {
312
- const s = (w) => {
313
- if (!O.current)
310
+ v || _((l) => JSON.stringify(l) !== JSON.stringify(n) ? n : l);
311
+ }, [v, n]), j(() => {
312
+ const l = (c) => {
313
+ if (!S.current)
314
314
  return;
315
- const h = w.target;
316
- O.current.contains(h) || h.closest("svg") || b();
315
+ const f = c.target;
316
+ S.current.contains(f) || f.closest("svg") || b();
317
317
  };
318
- return g ? document.addEventListener("click", s) : document.removeEventListener("click", s), () => {
319
- document.removeEventListener("click", s);
318
+ return v ? document.addEventListener("click", l) : document.removeEventListener("click", l), () => {
319
+ document.removeEventListener("click", l);
320
320
  };
321
- }, [g]), {
322
- isMobile: d,
323
- handleClearClick: y,
321
+ }, [v]), {
322
+ isMobile: m,
323
+ handleClearClick: B,
324
324
  handleCloseModal: b,
325
- handleOptionClick: k,
326
- handleSaveClick: x,
327
- localSelectedTabs: S,
328
- selectedOptions: u,
329
- setSelectedOptions: v,
330
- isModalOpen: g,
325
+ handleOptionClick: x,
326
+ handleSaveClick: w,
327
+ localSelectedTabs: y,
328
+ selectedOptions: h,
329
+ setSelectedOptions: k,
330
+ isModalOpen: v,
331
331
  setIsModalOpen: C,
332
- setLocalSelectedTabs: m,
333
- containerRef: O
332
+ setLocalSelectedTabs: _,
333
+ containerRef: S
334
334
  };
335
335
  }, Le = be.bind(i), at = ({
336
- disabledOptions: a,
337
- tabs: r = [],
338
- selectOptions: n = [],
336
+ disabledOptions: n,
337
+ tabs: a = [],
338
+ selectOptions: s = [],
339
339
  onChange: W,
340
- selectedValues: c,
340
+ selectedValues: d,
341
341
  setSelectedTabs: e,
342
- selectedTabs: l,
343
- onClickItem: d,
344
- onCLickSelect: g,
342
+ selectedTabs: r,
343
+ onClickItem: m,
344
+ onCLickSelect: v,
345
345
  btnName: C = "Фильтр"
346
346
  }) => {
347
347
  const {
348
- handleCloseModal: O,
349
- localSelectedTabs: p,
348
+ handleCloseModal: S,
349
+ localSelectedTabs: u,
350
350
  selectedOptions: z,
351
351
  isMobile: N,
352
- handleOptionClick: S,
353
- handleClearClick: m,
354
- handleSaveClick: u,
355
- isModalOpen: v,
356
- setLocalSelectedTabs: k,
357
- setIsModalOpen: y,
358
- containerRef: B
352
+ handleOptionClick: y,
353
+ handleClearClick: _,
354
+ handleSaveClick: h,
355
+ isModalOpen: k,
356
+ setLocalSelectedTabs: x,
357
+ setIsModalOpen: B,
358
+ containerRef: O
359
359
  } = Re({
360
- selectedTabs: l,
361
- onClickItem: d,
360
+ selectedTabs: r,
361
+ onClickItem: m,
362
362
  setSelectedTabs: e,
363
- tabs: r,
363
+ tabs: a,
364
364
  onChange: W,
365
- disabledOptions: a,
366
- selectedValues: c
367
- }), b = () => /* @__PURE__ */ f(P, { children: [
365
+ disabledOptions: n,
366
+ selectedValues: d
367
+ }), b = () => /* @__PURE__ */ g(P, { children: [
368
368
  /* @__PURE__ */ t(
369
369
  "div",
370
370
  {
371
371
  className: i.closeBtn,
372
372
  onClick: () => {
373
- O();
373
+ S();
374
374
  },
375
375
  children: /* @__PURE__ */ t(
376
376
  $,
@@ -382,7 +382,7 @@ const be = /* @__PURE__ */ U(Me), Re = ({
382
382
  }
383
383
  ),
384
384
  /* @__PURE__ */ t("div", { className: i.modalTitle, children: "Фильтры" }),
385
- /* @__PURE__ */ f("div", { className: i.tabSWitcherWrapper, children: [
385
+ /* @__PURE__ */ g("div", { className: i.tabSWitcherWrapper, children: [
386
386
  /* @__PURE__ */ t("div", { className: i.switcherTitle, children: "Готовность" }),
387
387
  /* @__PURE__ */ t("div", { className: i.switcherScroll, children: /* @__PURE__ */ t(
388
388
  D,
@@ -390,54 +390,54 @@ const be = /* @__PURE__ */ U(Me), Re = ({
390
390
  variant: "grayRow",
391
391
  addClassName: i.tabs,
392
392
  isApart: !0,
393
- children: r == null ? void 0 : r.map((x, s) => {
394
- var h;
395
- const w = x.value;
393
+ children: a == null ? void 0 : a.map((w, l) => {
394
+ var f;
395
+ const c = w.value;
396
396
  return /* @__PURE__ */ t(
397
397
  D.Item,
398
398
  {
399
- itemsLength: r == null ? void 0 : r.length,
399
+ itemsLength: a == null ? void 0 : a.length,
400
400
  mini: !0,
401
401
  size_s: "small",
402
- value: w,
402
+ value: c,
403
403
  onClick: () => {
404
404
  },
405
- checked: ((h = p == null ? void 0 : p.find((M) => M.value === w)) == null ? void 0 : h.state) ?? !1,
405
+ checked: ((f = u == null ? void 0 : u.find((M) => M.value === c)) == null ? void 0 : f.state) ?? !1,
406
406
  onChange: () => {
407
- k == null || k(
408
- (M) => M.map((I) => I.value === w ? { ...I, state: !I.state } : I)
407
+ x == null || x(
408
+ (M) => M.map((I) => I.value === c ? { ...I, state: !I.state } : I)
409
409
  );
410
410
  },
411
- index: s,
412
- children: w
411
+ index: l,
412
+ children: c
413
413
  },
414
- s
414
+ l
415
415
  );
416
416
  })
417
417
  }
418
418
  ) })
419
419
  ] }),
420
- /* @__PURE__ */ t("div", { className: i.selectWrapper, children: n == null ? void 0 : n.map((x, s) => /* @__PURE__ */ t(
420
+ /* @__PURE__ */ t("div", { className: i.selectWrapper, children: s == null ? void 0 : s.map((w, l) => /* @__PURE__ */ t(
421
421
  T,
422
422
  {
423
423
  sizeIcon: "24",
424
424
  addClassName: i.filterOption,
425
425
  disabledOptions: [],
426
- clickableOptions: [],
426
+ clickableOptions: s == null ? void 0 : s.map((c) => c.value.toString()),
427
427
  selectedOptions: z,
428
- option: x,
429
- handleOptionClick: S
428
+ option: w,
429
+ handleOptionClick: y
430
430
  },
431
- s
431
+ l
432
432
  )) }),
433
- /* @__PURE__ */ f("div", { className: i.btnWrapper, children: [
433
+ /* @__PURE__ */ g("div", { className: i.btnWrapper, children: [
434
434
  /* @__PURE__ */ t(
435
435
  A,
436
436
  {
437
437
  as: "button",
438
438
  variant: "gray",
439
439
  additionalClass: i.resetBtn,
440
- onClick: m,
440
+ onClick: _,
441
441
  children: "Сбросить"
442
442
  }
443
443
  ),
@@ -446,20 +446,20 @@ const be = /* @__PURE__ */ U(Me), Re = ({
446
446
  {
447
447
  as: "button",
448
448
  additionalClass: i.saveBtn,
449
- onClick: u,
449
+ onClick: h,
450
450
  children: "Сохранить"
451
451
  }
452
452
  )
453
453
  ] })
454
454
  ] });
455
- return /* @__PURE__ */ f(P, { children: [
456
- /* @__PURE__ */ f("div", { style: { position: "relative" }, children: [
457
- /* @__PURE__ */ f(
455
+ return /* @__PURE__ */ g(P, { children: [
456
+ /* @__PURE__ */ g("div", { style: { position: "relative" }, children: [
457
+ /* @__PURE__ */ g(
458
458
  "div",
459
459
  {
460
460
  className: i.root,
461
461
  onClick: () => {
462
- g && g(), N ? y((x) => !x) : v || y(!0);
462
+ v && v(), N ? B((w) => !w) : k || B(!0);
463
463
  },
464
464
  children: [
465
465
  /* @__PURE__ */ t("div", { className: i.btnName, children: C }),
@@ -473,18 +473,18 @@ const be = /* @__PURE__ */ U(Me), Re = ({
473
473
  ]
474
474
  }
475
475
  ),
476
- !N && /* @__PURE__ */ f(
476
+ !N && /* @__PURE__ */ g(
477
477
  "div",
478
478
  {
479
- ref: B,
480
- className: Le(i.desktopWrapper, { [i.desktopWrapperOpen]: v }),
479
+ ref: O,
480
+ className: Le(i.desktopWrapper, { [i.desktopWrapperOpen]: k }),
481
481
  children: [
482
482
  /* @__PURE__ */ t(
483
483
  "div",
484
484
  {
485
485
  className: i.closeBtn,
486
486
  onClick: () => {
487
- O();
487
+ S();
488
488
  },
489
489
  children: /* @__PURE__ */ t(
490
490
  $,
@@ -496,7 +496,7 @@ const be = /* @__PURE__ */ U(Me), Re = ({
496
496
  }
497
497
  ),
498
498
  /* @__PURE__ */ t("div", { className: i.modalTitle, children: "Фильтры" }),
499
- /* @__PURE__ */ f("div", { className: i.tabSWitcherWrapper, children: [
499
+ /* @__PURE__ */ g("div", { className: i.tabSWitcherWrapper, children: [
500
500
  /* @__PURE__ */ t("div", { className: i.switcherTitle, children: "Готовность" }),
501
501
  /* @__PURE__ */ t("div", { className: i.switcherScroll, children: /* @__PURE__ */ t(
502
502
  D,
@@ -504,55 +504,55 @@ const be = /* @__PURE__ */ U(Me), Re = ({
504
504
  variant: "grayRow",
505
505
  addClassName: i.tabs,
506
506
  isApart: !0,
507
- children: r == null ? void 0 : r.map((x, s) => {
508
- var h;
509
- const w = x.value;
507
+ children: a == null ? void 0 : a.map((w, l) => {
508
+ var f;
509
+ const c = w.value;
510
510
  return /* @__PURE__ */ t(
511
511
  D.Item,
512
512
  {
513
- itemsLength: r == null ? void 0 : r.length,
513
+ itemsLength: a == null ? void 0 : a.length,
514
514
  size_s: "small",
515
515
  mini: !0,
516
- value: w,
516
+ value: c,
517
517
  onClick: () => {
518
518
  },
519
- checked: ((h = p == null ? void 0 : p.find((M) => M.value === w)) == null ? void 0 : h.state) ?? !1,
519
+ checked: ((f = u == null ? void 0 : u.find((M) => M.value === c)) == null ? void 0 : f.state) ?? !1,
520
520
  onChange: () => {
521
- k == null || k(
522
- (M) => M.map((I) => I.value === w ? { ...I, state: !I.state } : I)
521
+ x == null || x(
522
+ (M) => M.map((I) => I.value === c ? { ...I, state: !I.state } : I)
523
523
  );
524
524
  },
525
- index: s,
525
+ index: l,
526
526
  addItemClassName: i.tabSwitcher,
527
- children: w
527
+ children: c
528
528
  },
529
- s
529
+ l
530
530
  );
531
531
  })
532
532
  }
533
533
  ) })
534
534
  ] }),
535
- /* @__PURE__ */ t("div", { className: i.selectWrapper, children: n == null ? void 0 : n.map((x, s) => /* @__PURE__ */ t(
535
+ /* @__PURE__ */ t("div", { className: i.selectWrapper, children: s == null ? void 0 : s.map((w, l) => /* @__PURE__ */ t(
536
536
  T,
537
537
  {
538
538
  sizeIcon: "24",
539
539
  addClassName: i.filterOption,
540
540
  disabledOptions: [],
541
- clickableOptions: [],
541
+ clickableOptions: s == null ? void 0 : s.map((c) => c.value.toString()),
542
542
  selectedOptions: z,
543
- option: x,
544
- handleOptionClick: S
543
+ option: w,
544
+ handleOptionClick: y
545
545
  },
546
- s
546
+ l
547
547
  )) }),
548
- /* @__PURE__ */ f("div", { className: i.btnWrapper, children: [
548
+ /* @__PURE__ */ g("div", { className: i.btnWrapper, children: [
549
549
  /* @__PURE__ */ t(
550
550
  A,
551
551
  {
552
552
  as: "button",
553
553
  variant: "gray",
554
554
  additionalClass: i.resetBtn,
555
- onClick: m,
555
+ onClick: _,
556
556
  children: "Сбросить"
557
557
  }
558
558
  ),
@@ -561,7 +561,7 @@ const be = /* @__PURE__ */ U(Me), Re = ({
561
561
  {
562
562
  as: "button",
563
563
  additionalClass: i.saveBtn,
564
- onClick: u,
564
+ onClick: h,
565
565
  children: "Сохранить"
566
566
  }
567
567
  )
@@ -573,8 +573,8 @@ const be = /* @__PURE__ */ U(Me), Re = ({
573
573
  N && /* @__PURE__ */ t(
574
574
  J,
575
575
  {
576
- isOpen: v,
577
- emitIsOpen: y,
576
+ isOpen: k,
577
+ emitIsOpen: B,
578
578
  isTransparentBack: !0,
579
579
  additionalClassModalBody: i.modalAddBody,
580
580
  additionalClass: i.filterWithSaveModal,
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
11
11
  import "../../Input/ui/Input.js";
12
12
  import "react/jsx-runtime";
13
13
  import "../../../Modal-BZv6nlLe.js";
14
- import { u as q } from "../../../FilterWithSave-BdP32juW.js";
14
+ import { u as q } from "../../../FilterWithSave-CfEBghv2.js";
15
15
  import "../../GroupedInput/ui/GroupedInputs.js";
16
16
  import "../../../index-rKuIKazb.js";
17
17
  import "../../MetroTag/ui/MetroTag.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../NewIcon/ui/NewIcon.js";
3
- import { F as a } from "../../../FilterWithSave-BdP32juW.js";
3
+ import { F as a } from "../../../FilterWithSave-CfEBghv2.js";
4
4
  import "../../../Modal-BZv6nlLe.js";
5
5
  import "../../../Option-C4HGcCtY.js";
6
6
  import "../../Button/ui/Button.js";
@@ -1,4 +1,4 @@
1
- import { a as r } from "../../FilterWithSave-BdP32juW.js";
1
+ import { a as r } from "../../FilterWithSave-CfEBghv2.js";
2
2
  export {
3
3
  r as SortSelect
4
4
  };
@@ -13,7 +13,7 @@ import "../../Text/ui/Text.js";
13
13
  import "../../Flex/ui/Flex.js";
14
14
  import "../../Input/ui/Input.js";
15
15
  import "../../../Modal-BZv6nlLe.js";
16
- import { a as z } from "../../../FilterWithSave-BdP32juW.js";
16
+ import { a as z } from "../../../FilterWithSave-CfEBghv2.js";
17
17
  import "../../GroupedInput/ui/GroupedInputs.js";
18
18
  import "../../MetroTag/ui/MetroTag.js";
19
19
  import "../../LotCard/ui/LotCard.js";
@@ -1,4 +1,4 @@
1
- import { S as e } from "../../FilterWithSave-BdP32juW.js";
1
+ import { S as e } from "../../FilterWithSave-CfEBghv2.js";
2
2
  export {
3
3
  e as TabSwitcher
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { S as v } from "../../../FilterWithSave-BdP32juW.js";
3
+ import { S as v } from "../../../FilterWithSave-CfEBghv2.js";
4
4
  import "../../Text/ui/Text.js";
5
5
  import "../../../index-rKuIKazb.js";
6
6
  import "../../Button/ui/Button.js";
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
11
11
  import "../../Input/ui/Input.js";
12
12
  import "react";
13
13
  import "../../../Modal-BZv6nlLe.js";
14
- import "../../../FilterWithSave-BdP32juW.js";
14
+ import "../../../FilterWithSave-CfEBghv2.js";
15
15
  import "../../GroupedInput/ui/GroupedInputs.js";
16
16
  import "../../../index-rKuIKazb.js";
17
17
  import "../../MetroTag/ui/MetroTag.js";
package/dist/main.js CHANGED
@@ -10,7 +10,7 @@ import { Flex as T } from "./components/Flex/ui/Flex.js";
10
10
  import { Input as F } from "./components/Input/ui/Input.js";
11
11
  import { M as g } from "./Modal-BZv6nlLe.js";
12
12
  import { FieldInput as I } from "./components/FieldInput/ui/FieldInput.js";
13
- import { F as B, a as L, S as k } from "./FilterWithSave-BdP32juW.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-CfEBghv2.js";
14
14
  import { GroupedInputs as N } from "./components/GroupedInput/ui/GroupedInputs.js";
15
15
  import { Logo as j } from "./components/Logo/ui/Logo.js";
16
16
  import { MetroTag as D } from "./components/MetroTag/ui/MetroTag.js";
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.668",
5
+ "version": "0.0.670",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",