stone-kit 0.0.588 → 0.0.589

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 E } 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";
@@ -49,23 +49,23 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
49
49
  index: _,
50
50
  children: t,
51
51
  addItemClassName: i,
52
- addTextClass: c,
52
+ addTextClass: d,
53
53
  disabled: g = !1,
54
- itemsLength: k = 0,
55
- isLongOn: C = !0,
54
+ itemsLength: C = 0,
55
+ isLongOn: O = !0,
56
56
  width: u,
57
- width_m: d,
57
+ width_m: l,
58
58
  width_l: h,
59
- mini: O = !1,
60
- ...S
61
- } = o, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && C, N = (v, W) => v && d ? d : W && h ? h : u, f = !u && !d && !h && x;
59
+ mini: S = !1,
60
+ ...k
61
+ } = o, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, N = (v, W) => v && l ? l : W && h ? h : u, f = !u && !l && !h && x;
62
62
  return /* @__PURE__ */ y("label", { className: I({ [p.isLong]: x }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
65
65
  {
66
66
  ref: n,
67
67
  type: "checkbox",
68
- ...S,
68
+ ...k,
69
69
  disabled: g
70
70
  }
71
71
  ),
@@ -77,20 +77,20 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
77
77
  I(
78
78
  p.item,
79
79
  { [p.firstItem]: _ === 0 },
80
- { [p.lastItem]: _ === k - 1 },
80
+ { [p.lastItem]: _ === C - 1 },
81
81
  { [p.isDisabled]: g },
82
82
  { [p.autoWidth]: f },
83
- { [p.mini]: O }
83
+ { [p.mini]: S }
84
84
  ),
85
85
  i
86
86
  ),
87
- children: /* @__PURE__ */ e(H, { className: I(p.text, { [p.textMini]: O }, c), children: t })
87
+ children: /* @__PURE__ */ e(H, { className: I(p.text, { [p.textMini]: S }, d), children: t })
88
88
  }
89
89
  )
90
90
  ] });
91
91
  });
92
92
  G.displayName = "TabSwitcherItem";
93
- const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
93
+ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
94
94
  options: o,
95
95
  selectedOption: n,
96
96
  placeholder: a = "",
@@ -98,24 +98,24 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
98
98
  disabled: _,
99
99
  additionalClass: t = "",
100
100
  onChange: i,
101
- onBlur: c,
101
+ onBlur: d,
102
102
  mini: g,
103
- openOnTop: k = !1,
104
- onClickItem: C,
103
+ openOnTop: C = !1,
104
+ onClickItem: O,
105
105
  onCLickSelect: u
106
106
  }) => {
107
- const [d, h] = B(!1), O = J(null), { isMobile: S } = E(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: v } = et(
107
+ const [l, h] = B(!1), S = J(null), { isMobile: k } = E(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: v } = et(
108
108
  {
109
109
  selectedOption: n,
110
- onClickOption: C,
110
+ onClickOption: O,
111
111
  setSelectedOption: i,
112
112
  setIsOpen: h,
113
- containerRef: O,
114
- isOpen: d,
115
- isMobile: S,
113
+ containerRef: S,
114
+ isOpen: l,
115
+ isMobile: k,
116
116
  placeholder: a,
117
117
  onChange: i,
118
- onBlur: c
118
+ onBlur: d
119
119
  }
120
120
  );
121
121
  return D(() => (document.addEventListener("click", v), () => {
@@ -123,11 +123,11 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
123
123
  }), []), /* @__PURE__ */ y(
124
124
  "div",
125
125
  {
126
- ref: O,
126
+ ref: S,
127
127
  className: L(
128
- l.sortSelectWrapper,
129
- { [l.sortSelectWrapperError]: m },
130
- { [l.sortSelectWrapperTop]: k },
128
+ c.sortSelectWrapper,
129
+ { [c.sortSelectWrapperError]: m },
130
+ { [c.sortSelectWrapperTop]: C },
131
131
  t
132
132
  ),
133
133
  tabIndex: 0,
@@ -136,7 +136,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
136
136
  u && u();
137
137
  },
138
138
  children: [
139
- /* @__PURE__ */ y("div", { className: L(l.inputWrapper), children: [
139
+ /* @__PURE__ */ y("div", { className: L(c.inputWrapper), children: [
140
140
  /* @__PURE__ */ e(
141
141
  "input",
142
142
  {
@@ -144,11 +144,11 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
144
144
  readOnly: !0,
145
145
  value: N(),
146
146
  className: L(
147
- l.selectedOptions,
148
- { [l.selectOptionsDisabled]: _ },
149
- { [l.selectionOptionMini]: g }
147
+ c.selectedOptions,
148
+ { [c.selectOptionsDisabled]: _ },
149
+ { [c.selectionOptionMini]: g }
150
150
  ),
151
- onClick: () => h(!d)
151
+ onClick: () => h(!l)
152
152
  }
153
153
  ),
154
154
  /* @__PURE__ */ e(
@@ -156,21 +156,21 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
156
156
  {
157
157
  name: "twoArrows",
158
158
  size: "24",
159
- additionalClass: l.icon
159
+ additionalClass: c.icon
160
160
  }
161
161
  )
162
162
  ] }),
163
- d && S && /* @__PURE__ */ y(
163
+ l && k && /* @__PURE__ */ y(
164
164
  q,
165
165
  {
166
- isOpen: d,
166
+ isOpen: l,
167
167
  emitIsOpen: h,
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__ */ y("div", { className: l.mobileSortHeader, children: [
173
+ /* @__PURE__ */ y("div", { className: c.mobileSortHeader, children: [
174
174
  /* @__PURE__ */ e(H, { children: "Сортировка" }),
175
175
  /* @__PURE__ */ e("div", { onClick: () => h(!1), children: /* @__PURE__ */ e(
176
176
  R,
@@ -180,11 +180,11 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
180
180
  }
181
181
  ) })
182
182
  ] }),
183
- /* @__PURE__ */ e("div", { className: l.mobileOptionList, children: o == null ? void 0 : o.map((W) => f(W)) })
183
+ /* @__PURE__ */ e("div", { className: c.mobileOptionList, children: o == null ? void 0 : o.map((W) => f(W)) })
184
184
  ]
185
185
  }
186
186
  ),
187
- d && !S && /* @__PURE__ */ e("div", { className: L(l.optionsList, { [l.optionListOnTop]: k }), children: o == null ? void 0 : o.map((W) => f(W)) })
187
+ l && !k && /* @__PURE__ */ e("div", { className: L(c.optionsList, { [c.optionListOnTop]: C }), children: o == null ? void 0 : o.map((W) => f(W)) })
188
188
  ]
189
189
  }
190
190
  );
@@ -220,8 +220,8 @@ var K = { exports: {} };
220
220
  var n = {}.hasOwnProperty;
221
221
  function a() {
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
  }
@@ -235,8 +235,8 @@ var K = { exports: {} };
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
- n.call(t, c) && t[c] && (i = _(i, this && this[c] || c));
238
+ for (var d in t)
239
+ n.call(t, d) && t[d] && (i = _(i, this && this[d] || d));
240
240
  return i;
241
241
  }
242
242
  function _(t, i) {
@@ -254,23 +254,23 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
254
254
  selectedValues: _ = [],
255
255
  setSelectedTabs: t,
256
256
  selectedTabs: i = [],
257
- onClickItem: c,
257
+ onClickItem: d,
258
258
  onCLickSelect: g,
259
- btnName: k = "Фильтр"
259
+ btnName: C = "Фильтр"
260
260
  }) => {
261
- const { isMobile: C } = E(), [u, d] = B(!1), h = J(null), [O, S] = B(i), [x] = B(_), [N, f] = B(O), [v, W] = B(x), Q = (r) => {
262
- if (c && c(r), o.some((w) => w.value === r.value))
261
+ const { isMobile: O } = E(), [u, l] = B(!1), h = J(null), [S, k] = B(i), [x] = B(_), [N, f] = B(S), [v, W] = B(x), Q = (r) => {
262
+ if (d && d(r), o.some((w) => w.value === r.value))
263
263
  return;
264
264
  const b = v.some((w) => w.value === r.value) ? v.filter((w) => w.value !== r.value) : [...v, r];
265
265
  W(b);
266
266
  }, U = () => {
267
- S(n), f(n), W([]), m && (m([]), t == null || t(n));
267
+ k(n), f(n), W([]), m && (m([]), t == null || t(n));
268
268
  }, X = () => {
269
269
  W(_), f(i);
270
270
  }, j = () => {
271
- X(), d(!1);
271
+ X(), l(!1);
272
272
  }, Y = (r) => {
273
- r.stopPropagation(), m && (t == null || t(N), m(v)), d(!1);
273
+ r.stopPropagation(), m && (t == null || t(N), m(v)), l(!1);
274
274
  };
275
275
  D(() => {
276
276
  u || f((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
@@ -376,10 +376,10 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
376
376
  ref: h,
377
377
  className: s.root,
378
378
  onClick: () => {
379
- g && g(), d((r) => !r);
379
+ g && g(), l(O ? (r) => !r : !0);
380
380
  },
381
381
  children: [
382
- /* @__PURE__ */ e("div", { className: s.btnName, children: k }),
382
+ /* @__PURE__ */ e("div", { className: s.btnName, children: C }),
383
383
  /* @__PURE__ */ e(
384
384
  R,
385
385
  {
@@ -387,15 +387,15 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
387
387
  size: "16"
388
388
  }
389
389
  ),
390
- !C && /* @__PURE__ */ e("div", { className: $t(s.desktopWrapper, { [s.desktopWrapperOpen]: u }), children: /* @__PURE__ */ e($, {}) })
390
+ !O && /* @__PURE__ */ e("div", { className: $t(s.desktopWrapper, { [s.desktopWrapperOpen]: u }), children: /* @__PURE__ */ e($, {}) })
391
391
  ]
392
392
  }
393
393
  ),
394
- C && /* @__PURE__ */ e(
394
+ O && /* @__PURE__ */ e(
395
395
  q,
396
396
  {
397
397
  isOpen: u,
398
- emitIsOpen: d,
398
+ emitIsOpen: l,
399
399
  isTransparentBack: !0,
400
400
  additionalClassModalBody: s.modalAddBody,
401
401
  additionalClass: s.filterWithSaveModal,
@@ -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-3eZynMTN.js";
4
+ import { F as w } from "../../../FilterWithSave-B9pmfYVO.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-3eZynMTN.js";
1
+ import { a as r } from "../../FilterWithSave-B9pmfYVO.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-3eZynMTN.js";
16
+ import { a as z } from "../../../FilterWithSave-B9pmfYVO.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-3eZynMTN.js";
1
+ import { S as e } from "../../FilterWithSave-B9pmfYVO.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-3eZynMTN.js";
3
+ import { S as v } from "../../../FilterWithSave-B9pmfYVO.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-3eZynMTN.js";
14
+ import "../../../FilterWithSave-B9pmfYVO.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-3eZynMTN.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-B9pmfYVO.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.588",
5
+ "version": "0.0.589",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",