stone-kit 0.0.601 → 0.0.603

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.
@@ -53,12 +53,12 @@ const nt = "_root_2bilg_1", ot = "_text_2bilg_18", at = "_textMini_2bilg_26", lt
53
53
  disabled: g = !1,
54
54
  itemsLength: k = 0,
55
55
  isLongOn: N = !0,
56
- width: f,
56
+ width: y,
57
57
  width_m: d,
58
- width_l: w,
58
+ width_l: u,
59
59
  mini: O = !1,
60
60
  ...h
61
- } = o, C = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, B = (W, u) => W && d ? d : u && w ? w : f, x = !f && !d && !w && C;
61
+ } = o, C = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, B = (W, f) => W && d ? d : f && u ? u : y, x = !y && !d && !u && C;
62
62
  return /* @__PURE__ */ v("label", { className: M({ [p.isLong]: C }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
@@ -102,14 +102,14 @@ const J = Object.assign(yt, { Item: K }), R = G.bind(l), Wt = ({
102
102
  mini: g,
103
103
  openOnTop: k = !1,
104
104
  onClickItem: N,
105
- onCLickSelect: f
105
+ onCLickSelect: y
106
106
  }) => {
107
- const [d, w] = S(!1), O = q(null), { isMobile: h } = $(), { handleBlur: C, getInputValue: B, getOption: x, handleDocumentClick: W } = rt(
107
+ const [d, u] = S(!1), O = q(null), { isMobile: h } = $(), { handleBlur: C, getInputValue: B, getOption: x, handleDocumentClick: W } = rt(
108
108
  {
109
109
  selectedOption: n,
110
110
  onClickOption: N,
111
111
  setSelectedOption: i,
112
- setIsOpen: w,
112
+ setIsOpen: u,
113
113
  containerRef: O,
114
114
  isOpen: d,
115
115
  isMobile: h,
@@ -133,7 +133,7 @@ const J = Object.assign(yt, { Item: K }), R = G.bind(l), Wt = ({
133
133
  tabIndex: 0,
134
134
  onBlur: C,
135
135
  onClick: () => {
136
- f && f();
136
+ y && y();
137
137
  },
138
138
  children: [
139
139
  /* @__PURE__ */ v("div", { className: R(l.inputWrapper), children: [
@@ -148,7 +148,7 @@ const J = Object.assign(yt, { Item: K }), R = G.bind(l), Wt = ({
148
148
  { [l.selectOptionsDisabled]: _ },
149
149
  { [l.selectionOptionMini]: g }
150
150
  ),
151
- onClick: () => w(!d)
151
+ onClick: () => u(!d)
152
152
  }
153
153
  ),
154
154
  /* @__PURE__ */ e(
@@ -164,7 +164,7 @@ const J = Object.assign(yt, { Item: K }), R = G.bind(l), Wt = ({
164
164
  H,
165
165
  {
166
166
  isOpen: d,
167
- emitIsOpen: w,
167
+ emitIsOpen: u,
168
168
  additionalClassModalBody: l.modalAddBody,
169
169
  additionalClass: l.selectModal,
170
170
  createPortalObj: { domNode: document.querySelector("body") },
@@ -172,7 +172,7 @@ const J = Object.assign(yt, { Item: K }), R = G.bind(l), Wt = ({
172
172
  children: [
173
173
  /* @__PURE__ */ v("div", { className: l.mobileSortHeader, children: [
174
174
  /* @__PURE__ */ e(V, { children: "Сортировка" }),
175
- /* @__PURE__ */ e("div", { onClick: () => w(!1), children: /* @__PURE__ */ e(
175
+ /* @__PURE__ */ e("div", { onClick: () => u(!1), children: /* @__PURE__ */ e(
176
176
  D,
177
177
  {
178
178
  name: "close",
@@ -180,11 +180,11 @@ const J = Object.assign(yt, { Item: K }), R = G.bind(l), Wt = ({
180
180
  }
181
181
  ) })
182
182
  ] }),
183
- /* @__PURE__ */ e("div", { className: l.mobileOptionList, children: o == null ? void 0 : o.map((u) => x(u)) })
183
+ /* @__PURE__ */ e("div", { className: l.mobileOptionList, children: o == null ? void 0 : o.map((f) => x(f)) })
184
184
  ]
185
185
  }
186
186
  ),
187
- d && !h && /* @__PURE__ */ e("div", { className: R(l.optionsList, { [l.optionListOnTop]: k }), children: o == null ? void 0 : o.map((u) => x(u)) })
187
+ d && !h && /* @__PURE__ */ e("div", { className: R(l.optionsList, { [l.optionListOnTop]: k }), children: o == null ? void 0 : o.map((f) => x(f)) })
188
188
  ]
189
189
  }
190
190
  );
@@ -258,30 +258,30 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
258
258
  onCLickSelect: g,
259
259
  btnName: k = "Фильтр"
260
260
  }) => {
261
- const { isMobile: N } = $(), [f, d] = S(!1), [w, O] = S(!1), h = q(null), [C, B] = S(i), [x] = S(_), [W, u] = S(C), [I, A] = S(x), U = (r) => {
262
- if (c && c(r), o.some((y) => y.value === r.value))
261
+ const { isMobile: N } = $(), [y, d] = S(!1), [u, O] = S(!1), h = q(null), [C, B] = S(i), [x] = S(_), [W, f] = S(C), [I, A] = S(x), U = (r) => {
262
+ if (c && c(r), o.some((w) => w.value === r.value))
263
263
  return;
264
- const b = I.some((y) => y.value === r.value) ? I.filter((y) => y.value !== r.value) : [...I, r];
264
+ const b = I.some((w) => w.value === r.value) ? I.filter((w) => w.value !== r.value) : [...I, r];
265
265
  A(b);
266
266
  }, X = () => {
267
- B(n), u(n), A([]), m && (m([]), t == null || t(n));
267
+ B(n), f(n), A([]), m && (m([]), t == null || t(n));
268
268
  }, Y = () => {
269
- A(_), u(i);
269
+ A(_), f(i);
270
270
  }, Z = () => {
271
271
  Y(), d(!1);
272
272
  }, tt = (r) => {
273
273
  r.stopPropagation(), m && (t == null || t(W), m(I)), d(!1);
274
274
  };
275
275
  j(() => {
276
- f || u((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
277
- }, [f, i]), j(() => {
276
+ y || f((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
277
+ }, [y, i]), j(() => {
278
278
  const r = (b) => {
279
279
  h.current && (h.current && !h.current.contains(b.target) || O(!1));
280
280
  };
281
- return f ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
281
+ return u ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
282
282
  document.removeEventListener("click", r, { capture: !0 });
283
283
  };
284
- }, [f]);
284
+ }, [u]);
285
285
  const z = () => /* @__PURE__ */ v(P, { children: [
286
286
  /* @__PURE__ */ e(
287
287
  "div",
@@ -310,24 +310,24 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
310
310
  isApart: !0,
311
311
  children: n == null ? void 0 : n.map((r, b) => {
312
312
  var F;
313
- const y = r.value;
313
+ const w = r.value;
314
314
  return /* @__PURE__ */ e(
315
315
  J.Item,
316
316
  {
317
317
  itemsLength: n == null ? void 0 : n.length,
318
318
  mini: !0,
319
- value: y,
319
+ value: w,
320
320
  onClick: () => {
321
321
  },
322
- checked: ((F = W == null ? void 0 : W.find((E) => E.value === y)) == null ? void 0 : F.state) ?? !1,
322
+ checked: ((F = W == null ? void 0 : W.find((E) => E.value === w)) == null ? void 0 : F.state) ?? !1,
323
323
  onChange: () => {
324
- u == null || u(
325
- (E) => E.map((L) => L.value === y ? { ...L, state: !L.state } : L)
324
+ f == null || f(
325
+ (E) => E.map((L) => L.value === w ? { ...L, state: !L.state } : L)
326
326
  );
327
327
  },
328
328
  index: b,
329
329
  addItemClassName: s.tabSwitcher,
330
- children: y
330
+ children: w
331
331
  },
332
332
  b
333
333
  );
@@ -395,7 +395,7 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
395
395
  "div",
396
396
  {
397
397
  ref: h,
398
- className: Ft(s.desktopWrapper, { [s.desktopWrapperOpen]: w }),
398
+ className: Ft(s.desktopWrapper, { [s.desktopWrapperOpen]: u }),
399
399
  children: /* @__PURE__ */ e(z, {})
400
400
  }
401
401
  )
@@ -403,7 +403,7 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
403
403
  N && /* @__PURE__ */ e(
404
404
  H,
405
405
  {
406
- isOpen: f,
406
+ isOpen: y,
407
407
  emitIsOpen: d,
408
408
  isTransparentBack: !0,
409
409
  additionalClassModalBody: s.modalAddBody,
@@ -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-hd-yVqUH.js";
4
+ import { F as w } from "../../../FilterWithSave-Cajvt9Y7.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-hd-yVqUH.js";
1
+ import { a as r } from "../../FilterWithSave-Cajvt9Y7.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-hd-yVqUH.js";
16
+ import { a as z } from "../../../FilterWithSave-Cajvt9Y7.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-hd-yVqUH.js";
1
+ import { S as e } from "../../FilterWithSave-Cajvt9Y7.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-hd-yVqUH.js";
3
+ import { S as v } from "../../../FilterWithSave-Cajvt9Y7.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-hd-yVqUH.js";
14
+ import "../../../FilterWithSave-Cajvt9Y7.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-hd-yVqUH.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-Cajvt9Y7.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.601",
5
+ "version": "0.0.603",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",