stone-kit 0.0.569 → 0.0.570

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.
@@ -38,7 +38,7 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
38
38
  mini: ht,
39
39
  isDisabled: ut,
40
40
  grayRow: ft
41
- }, I = G.bind(p), gt = ({
41
+ }, I = G.bind(p), vt = ({
42
42
  children: n,
43
43
  variant: r = "whiteRow",
44
44
  isApart: a = !1,
@@ -53,12 +53,12 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
53
53
  disabled: O = !1,
54
54
  itemsLength: x = 0,
55
55
  isLongOn: S = !0,
56
- width: v,
56
+ width: f,
57
57
  width_m: c,
58
58
  width_l: h,
59
59
  mini: C = !1,
60
60
  ...k
61
- } = n, y = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (W, N) => W && c ? c : N && h ? h : v, u = !v && !c && !h && y;
61
+ } = n, y = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (v, N) => v && c ? c : N && h ? h : f, u = !f && !c && !h && y;
62
62
  return /* @__PURE__ */ b("label", { className: I({ [p.isLong]: y }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
@@ -90,7 +90,7 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
90
90
  ] });
91
91
  });
92
92
  J.displayName = "TabSwitcherItem";
93
- const T = Object.assign(gt, { Item: J }), R = G.bind(l), vt = ({
93
+ const T = Object.assign(vt, { Item: J }), R = G.bind(l), gt = ({
94
94
  options: n,
95
95
  selectedOption: r,
96
96
  placeholder: a = "",
@@ -102,9 +102,9 @@ const T = Object.assign(gt, { Item: J }), R = G.bind(l), vt = ({
102
102
  mini: O,
103
103
  openOnTop: x = !1,
104
104
  onClickItem: S,
105
- onCLickSelect: v
105
+ onCLickSelect: f
106
106
  }) => {
107
- const [c, h] = B(!1), C = q(null), { isMobile: k } = E(), { handleBlur: y, getInputValue: w, getOption: u, handleDocumentClick: W } = et(
107
+ const [c, h] = B(!1), C = q(null), { isMobile: k } = E(), { handleBlur: y, getInputValue: w, getOption: u, handleDocumentClick: v } = et(
108
108
  {
109
109
  selectedOption: r,
110
110
  onClickOption: S,
@@ -118,8 +118,8 @@ const T = Object.assign(gt, { Item: J }), R = G.bind(l), vt = ({
118
118
  onBlur: d
119
119
  }
120
120
  );
121
- return L(() => (document.addEventListener("click", W), () => {
122
- document.removeEventListener("click", W);
121
+ return L(() => (document.addEventListener("click", v), () => {
122
+ document.removeEventListener("click", v);
123
123
  }), []), /* @__PURE__ */ b(
124
124
  "div",
125
125
  {
@@ -133,7 +133,7 @@ const T = Object.assign(gt, { Item: J }), R = G.bind(l), vt = ({
133
133
  tabIndex: 0,
134
134
  onBlur: y,
135
135
  onClick: () => {
136
- v && v();
136
+ f && f();
137
137
  },
138
138
  children: [
139
139
  /* @__PURE__ */ b("div", { className: R(l.inputWrapper), children: [
@@ -189,7 +189,7 @@ const T = Object.assign(gt, { Item: J }), R = G.bind(l), vt = ({
189
189
  }
190
190
  );
191
191
  };
192
- vt.displayName = "SortSelect";
192
+ gt.displayName = "SortSelect";
193
193
  const Wt = "_root_1occg_1", bt = "_filterWithSaveModal_1occg_15", Nt = "_modalAddBody_1occg_20", wt = "_closeBtn_1occg_29", Ot = "_btnName_1occg_35", St = "_modalTitle_1occg_39", Ct = "_tabSWitcherWrapper_1occg_48", kt = "_switcherTitle_1occg_56", xt = "_switcherScroll_1occg_63", yt = "_tabs_1occg_67", Bt = "_selectWrapper_1occg_72", It = "_filterOption_1occg_76", Mt = "_btnWrapper_1occg_83", Rt = "_resetBtn_1occg_89", Lt = "_saveBtn_1occg_90", At = "_desktopWrapper_1occg_94", Dt = "_desktopWrapperOpen_1occg_116", o = {
194
194
  root: Wt,
195
195
  filterWithSaveModal: bt,
@@ -258,10 +258,10 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
258
258
  onCLickSelect: O,
259
259
  btnName: x = "Фильтр"
260
260
  }) => {
261
- const { isMobile: S } = E(), [v, c] = B(!1), h = q(null), [C, k] = B(i), [y] = B(_), [w, u] = B(C), [W, N] = B(y), Q = (s) => {
262
- if (d && d(s), n.some((f) => f.value === s.value))
261
+ const { isMobile: S } = E(), [f, c] = B(!1), h = q(null), [C, k] = B(i), [y] = B(_), [w, u] = B(C), [v, N] = B(y), Q = (s) => {
262
+ if (d && d(s), n.some((W) => W.value === s.value))
263
263
  return;
264
- const g = W.some((f) => f.value === s.value) ? W.filter((f) => f.value !== s.value) : [...W, s];
264
+ const g = v.some((W) => W.value === s.value) ? v.filter((W) => W.value !== s.value) : [...v, s];
265
265
  N(g);
266
266
  }, U = () => {
267
267
  k(r), u(r), N([]), m && (m([]), t == null || t(r));
@@ -270,20 +270,15 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
270
270
  }, j = () => {
271
271
  X(), c(!1);
272
272
  }, Y = () => {
273
- m && (t == null || t(w), m(W)), c(!1);
273
+ m && (t == null || t(w), m(v)), c(!1);
274
274
  };
275
275
  L(() => {
276
- v || u(i);
277
- }, [v]), L(() => {
276
+ f || u(i);
277
+ }, [f]), L(() => {
278
278
  u(i);
279
279
  }, [i]), L(() => {
280
280
  const s = (g) => {
281
- const f = g.target;
282
- if (h.current && !h.current.contains(g.target)) {
283
- if (f.closest("svg"))
284
- return;
285
- j();
286
- }
281
+ h.current && !h.current.contains(g.target) && j();
287
282
  };
288
283
  return document.addEventListener("click", s), () => {
289
284
  document.removeEventListener("click", s);
@@ -315,24 +310,24 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
315
310
  isApart: !0,
316
311
  children: r == null ? void 0 : r.map((s, g) => {
317
312
  var z;
318
- const f = s.value;
313
+ const W = s.value;
319
314
  return /* @__PURE__ */ e(
320
315
  T.Item,
321
316
  {
322
317
  itemsLength: r == null ? void 0 : r.length,
323
318
  mini: !0,
324
- value: f,
319
+ value: W,
325
320
  onClick: () => {
326
321
  },
327
- checked: ((z = w == null ? void 0 : w.find((D) => D.value === f)) == null ? void 0 : z.state) ?? !1,
322
+ checked: ((z = w == null ? void 0 : w.find((D) => D.value === W)) == null ? void 0 : z.state) ?? !1,
328
323
  onChange: () => {
329
324
  u == null || u(
330
- (D) => D.map((M) => M.value === f ? { ...M, state: !M.state } : M)
325
+ (D) => D.map((M) => M.value === W ? { ...M, state: !M.state } : M)
331
326
  );
332
327
  },
333
328
  index: g,
334
329
  addItemClassName: o.tabSwitcher,
335
- children: f
330
+ children: W
336
331
  },
337
332
  g
338
333
  );
@@ -346,7 +341,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
346
341
  addClassName: o.filterOption,
347
342
  disabledOptions: [],
348
343
  clickableOptions: [],
349
- selectedOptions: W,
344
+ selectedOptions: v,
350
345
  option: s,
351
346
  handleOptionClick: Q
352
347
  },
@@ -396,7 +391,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
396
391
  "div",
397
392
  {
398
393
  ref: h,
399
- className: $t(o.desktopWrapper, { [o.desktopWrapperOpen]: v }),
394
+ className: $t(o.desktopWrapper, { [o.desktopWrapperOpen]: f }),
400
395
  onClick: (s) => s.stopPropagation(),
401
396
  children: /* @__PURE__ */ e($, {})
402
397
  }
@@ -407,7 +402,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
407
402
  S && /* @__PURE__ */ e(
408
403
  H,
409
404
  {
410
- isOpen: v,
405
+ isOpen: f,
411
406
  emitIsOpen: c,
412
407
  isTransparentBack: !0,
413
408
  additionalClassModalBody: o.modalAddBody,
@@ -420,5 +415,5 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
420
415
  export {
421
416
  de as F,
422
417
  T as S,
423
- vt as a
418
+ gt as a
424
419
  };
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../NewIcon/ui/NewIcon.js";
4
- import { F as w } from "../../../FilterWithSave-B0JEzFbi.js";
4
+ import { F as w } from "../../../FilterWithSave-BNlzox9b.js";
5
5
  import "../../../Modal-BZv6nlLe.js";
6
6
  import "../../../Option-CyYM1iBJ.js";
7
7
  import "../../Button/ui/Button.js";
@@ -1,4 +1,4 @@
1
- import { a as r } from "../../FilterWithSave-B0JEzFbi.js";
1
+ import { a as r } from "../../FilterWithSave-BNlzox9b.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-B0JEzFbi.js";
16
+ import { a as z } from "../../../FilterWithSave-BNlzox9b.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-B0JEzFbi.js";
1
+ import { S as e } from "../../FilterWithSave-BNlzox9b.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-B0JEzFbi.js";
3
+ import { S as v } from "../../../FilterWithSave-BNlzox9b.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-B0JEzFbi.js";
14
+ import "../../../FilterWithSave-BNlzox9b.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-B0JEzFbi.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-BNlzox9b.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.569",
5
+ "version": "0.0.570",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",