stone-kit 0.0.550 → 0.0.551

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,9 +1,9 @@
1
1
  import { jsxs as b, jsx as e, Fragment as z } from "react/jsx-runtime";
2
- import { forwardRef as tt, useState as B, useRef as H, useEffect as A } from "react";
2
+ import { forwardRef as et, useState as B, useRef as H, useEffect as A } from "react";
3
3
  import { NewIcon as R } from "./components/NewIcon/ui/NewIcon.js";
4
4
  import { M as V } from "./Modal-BZv6nlLe.js";
5
5
  import { Text as G } from "./components/Text/ui/Text.js";
6
- import { c as J, g as et } from "./index-rKuIKazb.js";
6
+ import { c as J, g as it } from "./index-rKuIKazb.js";
7
7
  import { Button as F } from "./components/Button/ui/Button.js";
8
8
  import "./components/mobileButton/ui/MobileButton.js";
9
9
  import "./components/DestinationTab/ui/DestinationTab.js";
@@ -17,38 +17,38 @@ 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 D } from "./shared/useClientWidth.js";
20
- import { s as c, u as it } from "./useSortSelect-CjZXLFOG.js";
20
+ import { s as c, u as ot } 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";
24
24
  import "./components/FormModal/ui/ModalForm.js";
25
- import { O as ot } from "./Option-CyYM1iBJ.js";
26
- const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", at = "_rootCol_2bilg_32", lt = "_item_2bilg_38", ct = "_whiteRow_2bilg_57", dt = "_firstItem_2bilg_68", pt = "_lastItem_2bilg_72", mt = "_apart_2bilg_103", _t = "_isLong_2bilg_103", ht = "_autoWidth_2bilg_128", ut = "_mini_2bilg_132", ft = "_isDisabled_2bilg_140", yt = "_grayRow_2bilg_164", p = {
27
- root: rt,
28
- text: st,
29
- textMini: nt,
30
- rootCol: at,
31
- item: lt,
32
- whiteRow: ct,
33
- firstItem: dt,
34
- lastItem: pt,
35
- apart: mt,
36
- isLong: _t,
37
- autoWidth: ht,
38
- mini: ut,
39
- isDisabled: ft,
40
- grayRow: yt
41
- }, j = J.bind(p), vt = ({
25
+ import { O as rt } from "./Option-CyYM1iBJ.js";
26
+ const st = "_root_2bilg_1", nt = "_text_2bilg_18", at = "_textMini_2bilg_26", lt = "_rootCol_2bilg_32", ct = "_item_2bilg_38", dt = "_whiteRow_2bilg_57", pt = "_firstItem_2bilg_68", mt = "_lastItem_2bilg_72", _t = "_apart_2bilg_103", ht = "_isLong_2bilg_103", ut = "_autoWidth_2bilg_128", ft = "_mini_2bilg_132", yt = "_isDisabled_2bilg_140", vt = "_grayRow_2bilg_164", p = {
27
+ root: st,
28
+ text: nt,
29
+ textMini: at,
30
+ rootCol: lt,
31
+ item: ct,
32
+ whiteRow: dt,
33
+ firstItem: pt,
34
+ lastItem: mt,
35
+ apart: _t,
36
+ isLong: ht,
37
+ autoWidth: ut,
38
+ mini: ft,
39
+ isDisabled: yt,
40
+ grayRow: vt
41
+ }, j = J.bind(p), gt = ({
42
42
  children: n,
43
43
  variant: s = "whiteRow",
44
44
  isApart: a = !1,
45
45
  addClassName: _ = "",
46
46
  col: h = !1
47
- }) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], _, { [p.rootCol]: h, [p.apart]: a }), children: n }), K = tt((n, s) => {
47
+ }) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], _, { [p.rootCol]: h, [p.apart]: a }), children: n }), K = et((n, s) => {
48
48
  const { isTablet: a, isDesktop: _ } = D(), {
49
49
  index: h,
50
50
  children: t,
51
- addItemClassName: i,
51
+ addItemClassName: o,
52
52
  addTextClass: d,
53
53
  disabled: w = !1,
54
54
  itemsLength: k = 0,
@@ -82,7 +82,7 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
82
82
  { [p.autoWidth]: f },
83
83
  { [p.mini]: S }
84
84
  ),
85
- i
85
+ o
86
86
  ),
87
87
  children: /* @__PURE__ */ e(G, { className: j(p.text, { [p.textMini]: S }, d), children: t })
88
88
  }
@@ -90,31 +90,31 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
90
90
  ] });
91
91
  });
92
92
  K.displayName = "TabSwitcherItem";
93
- const q = Object.assign(vt, { Item: K }), M = J.bind(c), gt = ({
93
+ const q = Object.assign(gt, { Item: K }), M = J.bind(c), bt = ({
94
94
  options: n,
95
95
  selectedOption: s,
96
96
  placeholder: a = "",
97
97
  error: _,
98
98
  disabled: h,
99
99
  additionalClass: t = "",
100
- onChange: i,
100
+ onChange: o,
101
101
  onBlur: d,
102
102
  mini: w,
103
103
  openOnTop: k = !1,
104
104
  onClickItem: O,
105
105
  onCLickSelect: u
106
106
  }) => {
107
- const [l, m] = B(!1), S = H(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: y } = it(
107
+ const [l, m] = B(!1), S = H(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: y } = ot(
108
108
  {
109
109
  selectedOption: s,
110
110
  onClickOption: O,
111
- setSelectedOption: i,
111
+ setSelectedOption: o,
112
112
  setIsOpen: m,
113
113
  containerRef: S,
114
114
  isOpen: l,
115
115
  isMobile: C,
116
116
  placeholder: a,
117
- onChange: i,
117
+ onChange: o,
118
118
  onBlur: d
119
119
  }
120
120
  );
@@ -189,25 +189,25 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), gt = ({
189
189
  }
190
190
  );
191
191
  };
192
- gt.displayName = "SortSelect";
193
- const bt = "_root_j0tyy_1", Wt = "_filterWithSaveModal_j0tyy_15", Nt = "_modalAddBody_j0tyy_20", wt = "_closeBtn_j0tyy_29", Ot = "_btnName_j0tyy_35", St = "_modalTitle_j0tyy_39", Ct = "_tabSWitcherWrapper_j0tyy_48", kt = "_switcherTitle_j0tyy_56", xt = "_switcherScroll_j0tyy_63", Bt = "_tabs_j0tyy_67", jt = "_selectWrapper_j0tyy_72", It = "_filterOption_j0tyy_76", Mt = "_btnWrapper_j0tyy_83", Rt = "_resetBtn_j0tyy_89", Lt = "_saveBtn_j0tyy_90", At = "_desktopWrapper_j0tyy_94", Dt = "_desktopWrapperOpen_j0tyy_116", r = {
194
- root: bt,
195
- filterWithSaveModal: Wt,
196
- modalAddBody: Nt,
197
- closeBtn: wt,
198
- btnName: Ot,
199
- modalTitle: St,
200
- tabSWitcherWrapper: Ct,
201
- switcherTitle: kt,
202
- switcherScroll: xt,
203
- tabs: Bt,
204
- selectWrapper: jt,
205
- filterOption: It,
206
- btnWrapper: Mt,
207
- resetBtn: Rt,
208
- saveBtn: Lt,
209
- desktopWrapper: At,
210
- desktopWrapperOpen: Dt
192
+ bt.displayName = "SortSelect";
193
+ const Wt = "_root_j0tyy_1", Nt = "_filterWithSaveModal_j0tyy_15", wt = "_modalAddBody_j0tyy_20", Ot = "_closeBtn_j0tyy_29", St = "_btnName_j0tyy_35", Ct = "_modalTitle_j0tyy_39", kt = "_tabSWitcherWrapper_j0tyy_48", xt = "_switcherTitle_j0tyy_56", Bt = "_switcherScroll_j0tyy_63", jt = "_tabs_j0tyy_67", It = "_selectWrapper_j0tyy_72", Mt = "_filterOption_j0tyy_76", Rt = "_btnWrapper_j0tyy_83", Lt = "_resetBtn_j0tyy_89", At = "_saveBtn_j0tyy_90", Dt = "_desktopWrapper_j0tyy_94", Et = "_desktopWrapperOpen_j0tyy_116", r = {
194
+ root: Wt,
195
+ filterWithSaveModal: Nt,
196
+ modalAddBody: wt,
197
+ closeBtn: Ot,
198
+ btnName: St,
199
+ modalTitle: Ct,
200
+ tabSWitcherWrapper: kt,
201
+ switcherTitle: xt,
202
+ switcherScroll: Bt,
203
+ tabs: jt,
204
+ selectWrapper: It,
205
+ filterOption: Mt,
206
+ btnWrapper: Rt,
207
+ resetBtn: Lt,
208
+ saveBtn: At,
209
+ desktopWrapper: Dt,
210
+ desktopWrapperOpen: Et
211
211
  };
212
212
  var Q = { exports: {} };
213
213
  /*!
@@ -219,8 +219,8 @@ var Q = { exports: {} };
219
219
  (function() {
220
220
  var s = {}.hasOwnProperty;
221
221
  function a() {
222
- for (var t = "", i = 0; i < arguments.length; i++) {
223
- var d = arguments[i];
222
+ for (var t = "", o = 0; o < arguments.length; o++) {
223
+ var d = arguments[o];
224
224
  d && (t = h(t, _.call(this, d)));
225
225
  }
226
226
  return t;
@@ -234,57 +234,59 @@ var Q = { exports: {} };
234
234
  return a.apply(this, t);
235
235
  if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
236
236
  return t.toString();
237
- var i = "";
237
+ var o = "";
238
238
  for (var d in t)
239
- s.call(t, d) && t[d] && (i = h(i, this && this[d] || d));
240
- return i;
239
+ s.call(t, d) && t[d] && (o = h(o, this && this[d] || d));
240
+ return o;
241
241
  }
242
- function h(t, i) {
243
- return i ? t ? t + " " + i : t + i : t;
242
+ function h(t, o) {
243
+ return o ? t ? t + " " + o : t + o : t;
244
244
  }
245
245
  n.exports ? (a.default = a, n.exports = a) : window.classNames = a;
246
246
  })();
247
247
  })(Q);
248
- var Et = Q.exports;
249
- const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
248
+ var Pt = Q.exports;
249
+ const Tt = /* @__PURE__ */ it(Pt), $t = Tt.bind(r), me = ({
250
250
  disabledOptions: n = [],
251
251
  tabs: s = [],
252
252
  selectOptions: a = [],
253
253
  onChange: _,
254
254
  selectedValues: h = [],
255
255
  setSelectedTabs: t,
256
- selectedTabs: i = [],
256
+ selectedTabs: o = [],
257
257
  onClickItem: d,
258
258
  onCLickSelect: w,
259
259
  btnName: k = "Фильтр"
260
260
  }) => {
261
- const { isMobile: O } = D(), [u, l] = B(!1), m = H(null), [S, C] = B(i), [x] = B(h), [N, f] = B(S), [y, W] = B(x), U = (o) => {
262
- if (d && d(o), n.some((g) => g.value === o.value))
261
+ const { isMobile: O } = D(), [u, l] = B(!1), m = H(null), [S, C] = B(o), [x] = B(h), [N, f] = B(S), [y, W] = B(x), U = (i) => {
262
+ if (d && d(i), n.some((g) => g.value === i.value))
263
263
  return;
264
- const v = y.some((g) => g.value === o.value) ? y.filter((g) => g.value !== o.value) : [...y, o];
264
+ const v = y.some((g) => g.value === i.value) ? y.filter((g) => g.value !== i.value) : [...y, i];
265
265
  W(v);
266
266
  }, X = () => {
267
267
  C(s), W([]), _ && (_([]), t == null || t(s));
268
268
  }, Y = () => {
269
- W(h), f(i);
269
+ W(h), f(o);
270
270
  }, E = () => {
271
271
  Y(), l(!1);
272
272
  }, Z = () => {
273
273
  _ && (t == null || t(N), _(y)), l(!1);
274
274
  };
275
275
  A(() => {
276
- u && f(i);
276
+ u && f(o);
277
277
  }, [u]);
278
- const T = (o) => {
279
- if (console.log("Клик по:", o.target), !u || O)
278
+ const P = (i) => {
279
+ if (console.log("Клик по:", i.target), !u || O)
280
280
  return;
281
- const v = o.target;
282
- m.current && !m.current.contains(v) && o.target !== m.current && (console.log("Закрытие модалки"), E());
281
+ const v = i.target;
282
+ m.current && !m.current.contains(v) && i.target !== m.current && (console.log("Закрытие модалки"), E());
283
+ }, tt = (i) => {
284
+ i.stopPropagation(), U(i);
283
285
  };
284
- A(() => (console.log("Добавляю обработчик клика на document"), document.addEventListener("click", T), () => {
285
- console.log("Удаляю обработчик клика с document"), document.removeEventListener("click", T);
286
+ A(() => (console.log("Добавляю обработчик клика на document"), document.addEventListener("click", P), () => {
287
+ console.log("Удаляю обработчик клика с document"), document.removeEventListener("click", P);
286
288
  }), [u]);
287
- const $ = () => /* @__PURE__ */ b(z, { children: [
289
+ const T = () => /* @__PURE__ */ b(z, { children: [
288
290
  /* @__PURE__ */ e(
289
291
  "div",
290
292
  {
@@ -308,9 +310,9 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
308
310
  variant: "grayRow",
309
311
  addClassName: r.tabs,
310
312
  isApart: !0,
311
- children: s == null ? void 0 : s.map((o, v) => {
312
- var P;
313
- const g = o.value;
313
+ children: s == null ? void 0 : s.map((i, v) => {
314
+ var $;
315
+ const g = i.value;
314
316
  return /* @__PURE__ */ e(
315
317
  q.Item,
316
318
  {
@@ -319,7 +321,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
319
321
  value: g,
320
322
  onClick: () => {
321
323
  },
322
- checked: ((P = N == null ? void 0 : N.find((L) => L.value === g)) == null ? void 0 : P.state) ?? !1,
324
+ checked: (($ = N == null ? void 0 : N.find((L) => L.value === g)) == null ? void 0 : $.state) ?? !1,
323
325
  onChange: () => {
324
326
  f == null || f(
325
327
  (L) => L.map((I) => I.value === g ? { ...I, state: !I.state } : I)
@@ -339,16 +341,16 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
339
341
  "div",
340
342
  {
341
343
  className: r.selectWrapper,
342
- onClick: (o) => o.stopPropagation(),
343
- children: a == null ? void 0 : a.map((o, v) => /* @__PURE__ */ e(
344
- ot,
344
+ onClick: (i) => i.stopPropagation(),
345
+ children: a == null ? void 0 : a.map((i, v) => /* @__PURE__ */ e(
346
+ rt,
345
347
  {
346
348
  addClassName: r.filterOption,
347
349
  disabledOptions: [],
348
350
  clickableOptions: [],
349
351
  selectedOptions: y,
350
- option: o,
351
- handleOptionClick: U
352
+ option: i,
353
+ handleOptionClick: tt
352
354
  },
353
355
  v
354
356
  ))
@@ -381,8 +383,8 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
381
383
  "div",
382
384
  {
383
385
  className: r.root,
384
- onClick: (o) => {
385
- o.stopPropagation(), w && w(), l(O ? (v) => !v : !0);
386
+ onClick: (i) => {
387
+ i.stopPropagation(), w && w(), l(O ? (v) => !v : !0);
386
388
  },
387
389
  children: [
388
390
  /* @__PURE__ */ e("div", { className: r.btnName, children: k }),
@@ -398,8 +400,8 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
398
400
  {
399
401
  ref: m,
400
402
  className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: u }),
401
- onClick: (o) => o.stopPropagation(),
402
- children: /* @__PURE__ */ e($, {})
403
+ onClick: (i) => i.stopPropagation(),
404
+ children: /* @__PURE__ */ e(T, {})
403
405
  }
404
406
  )
405
407
  ]
@@ -413,13 +415,13 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
413
415
  isTransparentBack: !0,
414
416
  additionalClassModalBody: r.modalAddBody,
415
417
  additionalClass: r.filterWithSaveModal,
416
- children: /* @__PURE__ */ e($, {})
418
+ children: /* @__PURE__ */ e(T, {})
417
419
  }
418
420
  )
419
421
  ] });
420
422
  };
421
423
  export {
422
- pe as F,
424
+ me as F,
423
425
  q as S,
424
- gt as a
426
+ bt as a
425
427
  };
@@ -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-CbevT66T.js";
4
+ import { F as w } from "../../../FilterWithSave-Dnz0rRe1.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-CbevT66T.js";
1
+ import { a as r } from "../../FilterWithSave-Dnz0rRe1.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-CbevT66T.js";
16
+ import { a as z } from "../../../FilterWithSave-Dnz0rRe1.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-CbevT66T.js";
1
+ import { S as e } from "../../FilterWithSave-Dnz0rRe1.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-CbevT66T.js";
3
+ import { S as v } from "../../../FilterWithSave-Dnz0rRe1.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-CbevT66T.js";
14
+ import "../../../FilterWithSave-Dnz0rRe1.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-CbevT66T.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-Dnz0rRe1.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.550",
5
+ "version": "0.0.551",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",