stone-kit 0.0.577 → 0.0.578

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.
@@ -23,11 +23,11 @@ import "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
23
23
  import "./components/TabSelect/ui/TabSelect.js";
24
24
  import "./components/FormModal/ui/ModalForm.js";
25
25
  import { O as it } from "./Option-CyYM1iBJ.js";
26
- const ot = "_root_2bilg_1", rt = "_text_2bilg_18", nt = "_textMini_2bilg_26", st = "_rootCol_2bilg_32", at = "_item_2bilg_38", ct = "_whiteRow_2bilg_57", lt = "_firstItem_2bilg_68", dt = "_lastItem_2bilg_72", pt = "_apart_2bilg_103", mt = "_isLong_2bilg_103", _t = "_autoWidth_2bilg_128", ht = "_mini_2bilg_132", ut = "_isDisabled_2bilg_140", ft = "_grayRow_2bilg_164", m = {
26
+ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt = "_rootCol_2bilg_32", at = "_item_2bilg_38", ct = "_whiteRow_2bilg_57", lt = "_firstItem_2bilg_68", dt = "_lastItem_2bilg_72", pt = "_apart_2bilg_103", mt = "_isLong_2bilg_103", _t = "_autoWidth_2bilg_128", ht = "_mini_2bilg_132", ut = "_isDisabled_2bilg_140", ft = "_grayRow_2bilg_164", m = {
27
27
  root: ot,
28
28
  text: rt,
29
- textMini: nt,
30
- rootCol: st,
29
+ textMini: st,
30
+ rootCol: nt,
31
31
  item: at,
32
32
  whiteRow: ct,
33
33
  firstItem: lt,
@@ -39,12 +39,12 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", nt = "_textMini_2bilg_26", st
39
39
  isDisabled: ut,
40
40
  grayRow: ft
41
41
  }, I = G.bind(m), gt = ({
42
- children: s,
43
- variant: n = "whiteRow",
42
+ children: n,
43
+ variant: s = "whiteRow",
44
44
  isApart: a = !1,
45
45
  addClassName: _ = "",
46
46
  col: h = !1
47
- }) => /* @__PURE__ */ e("div", { className: I(m.root, m[n], _, { [m.rootCol]: h, [m.apart]: a }), children: s }), J = Z((s, n) => {
47
+ }) => /* @__PURE__ */ e("div", { className: I(m.root, m[s], _, { [m.rootCol]: h, [m.apart]: a }), children: n }), J = Z((n, s) => {
48
48
  const { isTablet: a, isDesktop: _ } = E(), {
49
49
  index: h,
50
50
  children: t,
@@ -58,12 +58,12 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", nt = "_textMini_2bilg_26", st
58
58
  width_l: p,
59
59
  mini: k = !1,
60
60
  ...C
61
- } = s, y = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (v, N) => v && c ? c : N && p ? p : u, f = !u && !c && !p && 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 && p ? p : u, f = !u && !c && !p && y;
62
62
  return /* @__PURE__ */ b("label", { className: I({ [m.isLong]: y }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
65
65
  {
66
- ref: n,
66
+ ref: s,
67
67
  type: "checkbox",
68
68
  ...C,
69
69
  disabled: O
@@ -91,8 +91,8 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", nt = "_textMini_2bilg_26", st
91
91
  });
92
92
  J.displayName = "TabSwitcherItem";
93
93
  const T = Object.assign(gt, { Item: J }), L = G.bind(l), vt = ({
94
- options: s,
95
- selectedOption: n,
94
+ options: n,
95
+ selectedOption: s,
96
96
  placeholder: a = "",
97
97
  error: _,
98
98
  disabled: h,
@@ -106,7 +106,7 @@ const T = Object.assign(gt, { Item: J }), L = G.bind(l), vt = ({
106
106
  }) => {
107
107
  const [c, p] = B(!1), k = q(null), { isMobile: C } = E(), { handleBlur: y, getInputValue: w, getOption: f, handleDocumentClick: v } = et(
108
108
  {
109
- selectedOption: n,
109
+ selectedOption: s,
110
110
  onClickOption: S,
111
111
  setSelectedOption: i,
112
112
  setIsOpen: p,
@@ -180,11 +180,11 @@ const T = Object.assign(gt, { Item: J }), L = G.bind(l), vt = ({
180
180
  }
181
181
  ) })
182
182
  ] }),
183
- /* @__PURE__ */ e("div", { className: l.mobileOptionList, children: s == null ? void 0 : s.map((N) => f(N)) })
183
+ /* @__PURE__ */ e("div", { className: l.mobileOptionList, children: n == null ? void 0 : n.map((N) => f(N)) })
184
184
  ]
185
185
  }
186
186
  ),
187
- c && !C && /* @__PURE__ */ e("div", { className: L(l.optionsList, { [l.optionListOnTop]: x }), children: s == null ? void 0 : s.map((N) => f(N)) })
187
+ c && !C && /* @__PURE__ */ e("div", { className: L(l.optionsList, { [l.optionListOnTop]: x }), children: n == null ? void 0 : n.map((N) => f(N)) })
188
188
  ]
189
189
  }
190
190
  );
@@ -215,9 +215,9 @@ var K = { exports: {} };
215
215
  Licensed under the MIT License (MIT), see
216
216
  http://jedwatson.github.io/classnames
217
217
  */
218
- (function(s) {
218
+ (function(n) {
219
219
  (function() {
220
- var n = {}.hasOwnProperty;
220
+ var s = {}.hasOwnProperty;
221
221
  function a() {
222
222
  for (var t = "", i = 0; i < arguments.length; i++) {
223
223
  var d = arguments[i];
@@ -236,19 +236,19 @@ var K = { exports: {} };
236
236
  return t.toString();
237
237
  var i = "";
238
238
  for (var d in t)
239
- n.call(t, d) && t[d] && (i = h(i, this && this[d] || d));
239
+ s.call(t, d) && t[d] && (i = h(i, this && this[d] || d));
240
240
  return i;
241
241
  }
242
242
  function h(t, i) {
243
243
  return i ? t ? t + " " + i : t + i : t;
244
244
  }
245
- s.exports ? (a.default = a, s.exports = a) : window.classNames = a;
245
+ n.exports ? (a.default = a, n.exports = a) : window.classNames = a;
246
246
  })();
247
247
  })(K);
248
248
  var Et = K.exports;
249
- const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
250
- disabledOptions: s = [],
251
- tabs: n = [],
249
+ const jt = /* @__PURE__ */ tt(Et), Pt = jt.bind(r), de = ({
250
+ disabledOptions: n = [],
251
+ tabs: s = [],
252
252
  selectOptions: a = [],
253
253
  onChange: _,
254
254
  selectedValues: h = [],
@@ -259,12 +259,12 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
259
259
  btnName: x = "Фильтр"
260
260
  }) => {
261
261
  const { isMobile: S } = E(), [u, c] = B(!1), p = q(null), [k, C] = B(i), [y] = B(h), [w, f] = B(k), [v, N] = B(y), Q = (o) => {
262
- if (d && d(o), s.some((W) => W.value === o.value))
262
+ if (d && d(o), n.some((W) => W.value === o.value))
263
263
  return;
264
264
  const g = v.some((W) => W.value === o.value) ? v.filter((W) => W.value !== o.value) : [...v, o];
265
265
  N(g);
266
266
  }, U = () => {
267
- C(n), f(n), N([]), _ && (_([]), t == null || t(n));
267
+ C(s), f(s), N([]), _ && (_([]), t == null || t(s));
268
268
  }, X = () => {
269
269
  N(h), f(i);
270
270
  }, j = () => {
@@ -278,13 +278,13 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
278
278
  f(i);
279
279
  }, [i]), R(() => {
280
280
  const o = (g) => {
281
- p.current && console.log(p.current.contains(g.target)), !(p.current && p.current.contains(g.target)) && j();
281
+ g.stopImmediatePropagation(), p.current && console.log(p.current.contains(g.target)), !(p.current && p.current.contains(g.target)) && j();
282
282
  };
283
283
  return u ? document.addEventListener("click", o) : document.removeEventListener("click", o), () => {
284
284
  document.removeEventListener("click", o);
285
285
  };
286
286
  }, [u]);
287
- const $ = () => /* @__PURE__ */ b(z, { children: [
287
+ const P = () => /* @__PURE__ */ b(z, { children: [
288
288
  /* @__PURE__ */ e(
289
289
  "div",
290
290
  {
@@ -310,18 +310,18 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
310
310
  variant: "grayRow",
311
311
  addClassName: r.tabs,
312
312
  isApart: !0,
313
- children: n == null ? void 0 : n.map((o, g) => {
314
- var P;
313
+ children: s == null ? void 0 : s.map((o, g) => {
314
+ var $;
315
315
  const W = o.value;
316
316
  return /* @__PURE__ */ e(
317
317
  T.Item,
318
318
  {
319
- itemsLength: n == null ? void 0 : n.length,
319
+ itemsLength: s == null ? void 0 : s.length,
320
320
  mini: !0,
321
321
  value: W,
322
322
  onClick: () => {
323
323
  },
324
- checked: ((P = w == null ? void 0 : w.find((D) => D.value === W)) == null ? void 0 : P.state) ?? !1,
324
+ checked: (($ = w == null ? void 0 : w.find((D) => D.value === W)) == null ? void 0 : $.state) ?? !1,
325
325
  onChange: () => {
326
326
  f == null || f(
327
327
  (D) => D.map((M) => M.value === W ? { ...M, state: !M.state } : M)
@@ -393,9 +393,9 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
393
393
  !S && /* @__PURE__ */ e(
394
394
  "div",
395
395
  {
396
- className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: u }),
396
+ className: Pt(r.desktopWrapper, { [r.desktopWrapperOpen]: u }),
397
397
  onClick: (o) => o.stopPropagation(),
398
- children: /* @__PURE__ */ e($, {})
398
+ children: /* @__PURE__ */ e(P, {})
399
399
  }
400
400
  )
401
401
  ]
@@ -409,7 +409,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
409
409
  isTransparentBack: !0,
410
410
  additionalClassModalBody: r.modalAddBody,
411
411
  additionalClass: r.filterWithSaveModal,
412
- children: /* @__PURE__ */ e($, {})
412
+ children: /* @__PURE__ */ e(P, {})
413
413
  }
414
414
  )
415
415
  ] });
@@ -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-Ba5mkwB9.js";
4
+ import { F as w } from "../../../FilterWithSave-B36pjJJU.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-Ba5mkwB9.js";
1
+ import { a as r } from "../../FilterWithSave-B36pjJJU.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-Ba5mkwB9.js";
16
+ import { a as z } from "../../../FilterWithSave-B36pjJJU.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-Ba5mkwB9.js";
1
+ import { S as e } from "../../FilterWithSave-B36pjJJU.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-Ba5mkwB9.js";
3
+ import { S as v } from "../../../FilterWithSave-B36pjJJU.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-Ba5mkwB9.js";
14
+ import "../../../FilterWithSave-B36pjJJU.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-Ba5mkwB9.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-B36pjJJU.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.577",
5
+ "version": "0.0.578",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",