stone-kit 0.0.537 → 0.0.538

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.
@@ -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 D } from "./shared/useClientWidth.js";
20
- import { s as l, u as et } from "./useSortSelect-CjZXLFOG.js";
20
+ import { s as c, u as et } 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";
@@ -39,17 +39,17 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
39
39
  isDisabled: ut,
40
40
  grayRow: ft
41
41
  }, j = V.bind(p), yt = ({
42
- children: o,
42
+ children: a,
43
43
  variant: s = "whiteRow",
44
- isApart: a = !1,
44
+ isApart: l = !1,
45
45
  addClassName: m = "",
46
46
  col: _ = !1
47
- }) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], m, { [p.rootCol]: _, [p.apart]: a }), children: o }), G = Z((o, s) => {
48
- const { isTablet: a, isDesktop: m } = D(), {
47
+ }) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], m, { [p.rootCol]: _, [p.apart]: l }), children: a }), G = Z((a, s) => {
48
+ const { isTablet: l, isDesktop: m } = D(), {
49
49
  index: _,
50
50
  children: t,
51
51
  addItemClassName: i,
52
- addTextClass: c,
52
+ addTextClass: d,
53
53
  disabled: g = !1,
54
54
  itemsLength: k = 0,
55
55
  isLongOn: O = !0,
@@ -58,7 +58,7 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
58
58
  width_l: u,
59
59
  mini: S = !1,
60
60
  ...C
61
- } = o, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, N = (v, W) => v && n ? n : W && u ? u : h, y = !h && !n && !u && x;
61
+ } = a, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, N = (v, W) => v && n ? n : W && u ? u : h, y = !h && !n && !u && x;
62
62
  return /* @__PURE__ */ b("label", { className: j({ [p.isLong]: x }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
@@ -72,7 +72,7 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
72
72
  /* @__PURE__ */ e(
73
73
  "div",
74
74
  {
75
- style: { width: N(a, m) },
75
+ style: { width: N(l, m) },
76
76
  className: j(
77
77
  j(
78
78
  p.item,
@@ -84,21 +84,21 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
84
84
  ),
85
85
  i
86
86
  ),
87
- children: /* @__PURE__ */ e(H, { className: j(p.text, { [p.textMini]: S }, c), children: t })
87
+ children: /* @__PURE__ */ e(H, { className: j(p.text, { [p.textMini]: S }, d), children: t })
88
88
  }
89
89
  )
90
90
  ] });
91
91
  });
92
92
  G.displayName = "TabSwitcherItem";
93
- const F = Object.assign(yt, { Item: G }), M = V.bind(l), vt = ({
94
- options: o,
93
+ const F = Object.assign(yt, { Item: G }), M = V.bind(c), vt = ({
94
+ options: a,
95
95
  selectedOption: s,
96
- placeholder: a = "",
96
+ placeholder: l = "",
97
97
  error: m,
98
98
  disabled: _,
99
99
  additionalClass: t = "",
100
100
  onChange: i,
101
- onBlur: c,
101
+ onBlur: d,
102
102
  mini: g,
103
103
  openOnTop: k = !1,
104
104
  onClickItem: O,
@@ -113,9 +113,9 @@ const F = Object.assign(yt, { Item: G }), M = V.bind(l), vt = ({
113
113
  containerRef: S,
114
114
  isOpen: n,
115
115
  isMobile: C,
116
- placeholder: a,
116
+ placeholder: l,
117
117
  onChange: i,
118
- onBlur: c
118
+ onBlur: d
119
119
  }
120
120
  );
121
121
  return A(() => (document.addEventListener("click", v), () => {
@@ -125,9 +125,9 @@ const F = Object.assign(yt, { Item: G }), M = V.bind(l), vt = ({
125
125
  {
126
126
  ref: S,
127
127
  className: M(
128
- l.sortSelectWrapper,
129
- { [l.sortSelectWrapperError]: m },
130
- { [l.sortSelectWrapperTop]: k },
128
+ c.sortSelectWrapper,
129
+ { [c.sortSelectWrapperError]: m },
130
+ { [c.sortSelectWrapperTop]: k },
131
131
  t
132
132
  ),
133
133
  tabIndex: 0,
@@ -136,7 +136,7 @@ const F = Object.assign(yt, { Item: G }), M = V.bind(l), vt = ({
136
136
  h && h();
137
137
  },
138
138
  children: [
139
- /* @__PURE__ */ b("div", { className: M(l.inputWrapper), children: [
139
+ /* @__PURE__ */ b("div", { className: M(c.inputWrapper), children: [
140
140
  /* @__PURE__ */ e(
141
141
  "input",
142
142
  {
@@ -144,9 +144,9 @@ const F = Object.assign(yt, { Item: G }), M = V.bind(l), vt = ({
144
144
  readOnly: !0,
145
145
  value: N(),
146
146
  className: M(
147
- l.selectedOptions,
148
- { [l.selectOptionsDisabled]: _ },
149
- { [l.selectionOptionMini]: g }
147
+ c.selectedOptions,
148
+ { [c.selectOptionsDisabled]: _ },
149
+ { [c.selectionOptionMini]: g }
150
150
  ),
151
151
  onClick: () => u(!n)
152
152
  }
@@ -156,7 +156,7 @@ const F = Object.assign(yt, { Item: G }), M = V.bind(l), vt = ({
156
156
  {
157
157
  name: "twoArrows",
158
158
  size: "24",
159
- additionalClass: l.icon
159
+ additionalClass: c.icon
160
160
  }
161
161
  )
162
162
  ] }),
@@ -165,12 +165,12 @@ const F = Object.assign(yt, { Item: G }), M = V.bind(l), vt = ({
165
165
  {
166
166
  isOpen: n,
167
167
  emitIsOpen: u,
168
- additionalClassModalBody: l.modalAddBody,
169
- additionalClass: l.selectModal,
168
+ additionalClassModalBody: c.modalAddBody,
169
+ additionalClass: c.selectModal,
170
170
  createPortalObj: { domNode: document.querySelector("body") },
171
171
  isTransparentBack: !0,
172
172
  children: [
173
- /* @__PURE__ */ b("div", { className: l.mobileSortHeader, children: [
173
+ /* @__PURE__ */ b("div", { className: c.mobileSortHeader, children: [
174
174
  /* @__PURE__ */ e(H, { children: "Сортировка" }),
175
175
  /* @__PURE__ */ e("div", { onClick: () => u(!1), children: /* @__PURE__ */ e(
176
176
  R,
@@ -180,11 +180,11 @@ const F = Object.assign(yt, { Item: G }), M = V.bind(l), vt = ({
180
180
  }
181
181
  ) })
182
182
  ] }),
183
- /* @__PURE__ */ e("div", { className: l.mobileOptionList, children: o == null ? void 0 : o.map((W) => y(W)) })
183
+ /* @__PURE__ */ e("div", { className: c.mobileOptionList, children: a == null ? void 0 : a.map((W) => y(W)) })
184
184
  ]
185
185
  }
186
186
  ),
187
- n && !C && /* @__PURE__ */ e("div", { className: M(l.optionsList, { [l.optionListOnTop]: k }), children: o == null ? void 0 : o.map((W) => y(W)) })
187
+ n && !C && /* @__PURE__ */ e("div", { className: M(c.optionsList, { [c.optionListOnTop]: k }), children: a == null ? void 0 : a.map((W) => y(W)) })
188
188
  ]
189
189
  }
190
190
  );
@@ -215,13 +215,13 @@ var J = { exports: {} };
215
215
  Licensed under the MIT License (MIT), see
216
216
  http://jedwatson.github.io/classnames
217
217
  */
218
- (function(o) {
218
+ (function(a) {
219
219
  (function() {
220
220
  var s = {}.hasOwnProperty;
221
- function a() {
221
+ function l() {
222
222
  for (var t = "", i = 0; i < arguments.length; i++) {
223
- var c = arguments[i];
224
- c && (t = _(t, m.call(this, c)));
223
+ var d = arguments[i];
224
+ d && (t = _(t, m.call(this, d)));
225
225
  }
226
226
  return t;
227
227
  }
@@ -231,37 +231,37 @@ var J = { exports: {} };
231
231
  if (typeof t != "object")
232
232
  return "";
233
233
  if (Array.isArray(t))
234
- return a.apply(this, t);
234
+ return l.apply(this, t);
235
235
  if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
236
236
  return t.toString();
237
237
  var i = "";
238
- for (var c in t)
239
- s.call(t, c) && t[c] && (i = _(i, this && this[c] || c));
238
+ for (var d in t)
239
+ s.call(t, d) && t[d] && (i = _(i, this && this[d] || d));
240
240
  return i;
241
241
  }
242
242
  function _(t, i) {
243
243
  return i ? t ? t + " " + i : t + i : t;
244
244
  }
245
- o.exports ? (a.default = a, o.exports = a) : window.classNames = a;
245
+ a.exports ? (l.default = l, a.exports = l) : window.classNames = l;
246
246
  })();
247
247
  })(J);
248
248
  var Dt = J.exports;
249
249
  const Et = /* @__PURE__ */ tt(Dt), Tt = Et.bind(r), de = ({
250
- disabledOptions: o = [],
250
+ disabledOptions: a = [],
251
251
  tabs: s = [],
252
- selectOptions: a = [],
252
+ selectOptions: l = [],
253
253
  onChange: m,
254
254
  selectedValues: _ = [],
255
255
  setSelectedTabs: t,
256
256
  selectedTabs: i = [],
257
- onClickItem: c,
257
+ onClickItem: d,
258
258
  onCLickSelect: g,
259
259
  btnName: k = "Фильтр"
260
260
  }) => {
261
- const { isMobile: O } = D(), [h, n] = B(!1), u = P(null), [S, C] = B(i), [x] = B(_), [N, y] = B(S), [v, W] = B(x), K = (d) => {
262
- if (c && c(d), o.some((f) => f.value === d.value))
261
+ const { isMobile: O } = D(), [h, n] = B(!1), u = P(null), [S, C] = B(i), [x] = B(_), [N, y] = B(S), [v, W] = B(x), K = (o) => {
262
+ if (d && d(o), a.some((f) => f.value === o.value))
263
263
  return;
264
- const w = v.some((f) => f.value === d.value) ? v.filter((f) => f.value !== d.value) : [...v, d];
264
+ const w = v.some((f) => f.value === o.value) ? v.filter((f) => f.value !== o.value) : [...v, o];
265
265
  W(w);
266
266
  }, Q = () => {
267
267
  C(s), W([]), m && (m([]), t == null || t(s));
@@ -275,16 +275,16 @@ const Et = /* @__PURE__ */ tt(Dt), Tt = Et.bind(r), de = ({
275
275
  A(() => {
276
276
  h && y(i);
277
277
  }, [h]), A(() => {
278
- const d = (w) => {
278
+ const o = (w) => {
279
279
  if (!h || O)
280
280
  return;
281
281
  const f = w.target;
282
282
  u.current && !u.current.contains(f) && n(!1);
283
283
  };
284
284
  return setTimeout(() => {
285
- document.addEventListener("click", d);
285
+ document.addEventListener("click", o);
286
286
  }, 0), () => {
287
- document.removeEventListener("click", d);
287
+ document.removeEventListener("click", o);
288
288
  };
289
289
  }, [h]);
290
290
  const E = () => /* @__PURE__ */ b($, { children: [
@@ -311,9 +311,9 @@ const Et = /* @__PURE__ */ tt(Dt), Tt = Et.bind(r), de = ({
311
311
  variant: "grayRow",
312
312
  addClassName: r.tabs,
313
313
  isApart: !0,
314
- children: s == null ? void 0 : s.map((d, w) => {
314
+ children: s == null ? void 0 : s.map((o, w) => {
315
315
  var T;
316
- const f = d.value;
316
+ const f = o.value;
317
317
  return /* @__PURE__ */ e(
318
318
  F.Item,
319
319
  {
@@ -338,14 +338,14 @@ const Et = /* @__PURE__ */ tt(Dt), Tt = Et.bind(r), de = ({
338
338
  }
339
339
  ) })
340
340
  ] }),
341
- /* @__PURE__ */ e("div", { className: r.selectWrapper, children: a == null ? void 0 : a.map((d, w) => /* @__PURE__ */ e(
341
+ /* @__PURE__ */ e("div", { className: r.selectWrapper, children: l == null ? void 0 : l.map((o, w) => /* @__PURE__ */ e(
342
342
  it,
343
343
  {
344
344
  addClassName: r.filterOption,
345
345
  disabledOptions: [],
346
346
  clickableOptions: [],
347
347
  selectedOptions: v,
348
- option: d,
348
+ option: o,
349
349
  handleOptionClick: K
350
350
  },
351
351
  w
@@ -378,7 +378,7 @@ const Et = /* @__PURE__ */ tt(Dt), Tt = Et.bind(r), de = ({
378
378
  {
379
379
  className: r.root,
380
380
  onClick: () => {
381
- g && g(), n(O ? (d) => !d : !0);
381
+ g && g(), n(O ? (o) => !o : !0);
382
382
  },
383
383
  children: [
384
384
  /* @__PURE__ */ e("div", { className: r.btnName, children: k }),
@@ -394,6 +394,7 @@ const Et = /* @__PURE__ */ tt(Dt), Tt = Et.bind(r), de = ({
394
394
  {
395
395
  ref: u,
396
396
  className: Tt(r.desktopWrapper, { [r.desktopWrapperOpen]: h }),
397
+ onClick: (o) => o.stopPropagation(),
397
398
  children: /* @__PURE__ */ e(E, {})
398
399
  }
399
400
  )
@@ -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-DOfCOmcV.js";
4
+ import { F as w } from "../../../FilterWithSave-BtG-6Bmp.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-DOfCOmcV.js";
1
+ import { a as r } from "../../FilterWithSave-BtG-6Bmp.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-DOfCOmcV.js";
16
+ import { a as z } from "../../../FilterWithSave-BtG-6Bmp.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-DOfCOmcV.js";
1
+ import { S as e } from "../../FilterWithSave-BtG-6Bmp.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-DOfCOmcV.js";
3
+ import { S as v } from "../../../FilterWithSave-BtG-6Bmp.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-DOfCOmcV.js";
14
+ import "../../../FilterWithSave-BtG-6Bmp.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-DOfCOmcV.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-BtG-6Bmp.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.537",
5
+ "version": "0.0.538",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",