stone-kit 0.0.620 → 0.0.622

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,15 +23,15 @@ 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 T } from "./Option-8X0Ft_zQ.js";
26
- const Y = "_root_2bilg_1", Z = "_text_2bilg_18", tt = "_textMini_2bilg_26", et = "_rootCol_2bilg_32", it = "_item_2bilg_38", rt = "_whiteRow_2bilg_57", nt = "_firstItem_2bilg_68", at = "_lastItem_2bilg_72", st = "_apart_2bilg_103", ot = "_isLong_2bilg_103", lt = "_autoWidth_2bilg_128", ct = "_mini_2bilg_132", dt = "_isDisabled_2bilg_140", mt = "_grayRow_2bilg_164", f = {
26
+ const Y = "_root_2bilg_1", Z = "_text_2bilg_18", tt = "_textMini_2bilg_26", et = "_rootCol_2bilg_32", it = "_item_2bilg_38", rt = "_whiteRow_2bilg_57", at = "_firstItem_2bilg_68", nt = "_lastItem_2bilg_72", st = "_apart_2bilg_103", ot = "_isLong_2bilg_103", lt = "_autoWidth_2bilg_128", ct = "_mini_2bilg_132", dt = "_isDisabled_2bilg_140", mt = "_grayRow_2bilg_164", f = {
27
27
  root: Y,
28
28
  text: Z,
29
29
  textMini: tt,
30
30
  rootCol: et,
31
31
  item: it,
32
32
  whiteRow: rt,
33
- firstItem: nt,
34
- lastItem: at,
33
+ firstItem: at,
34
+ lastItem: nt,
35
35
  apart: st,
36
36
  isLong: ot,
37
37
  autoWidth: lt,
@@ -40,11 +40,11 @@ const Y = "_root_2bilg_1", Z = "_text_2bilg_18", tt = "_textMini_2bilg_26", et =
40
40
  grayRow: mt
41
41
  }, L = V.bind(f), pt = ({
42
42
  children: s,
43
- variant: n = "whiteRow",
43
+ variant: a = "whiteRow",
44
44
  isApart: o = !1,
45
45
  addClassName: O = "",
46
46
  col: l = !1
47
- }) => /* @__PURE__ */ e("div", { className: L(f.root, f[n], O, { [f.rootCol]: l, [f.apart]: o }), children: s }), G = Q((s, n) => {
47
+ }) => /* @__PURE__ */ e("div", { className: L(f.root, f[a], O, { [f.rootCol]: l, [f.apart]: o }), children: s }), G = Q((s, a) => {
48
48
  const { isTablet: o, isDesktop: O } = F(), {
49
49
  index: l,
50
50
  children: t,
@@ -63,7 +63,7 @@ const Y = "_root_2bilg_1", Z = "_text_2bilg_18", tt = "_textMini_2bilg_26", et =
63
63
  /* @__PURE__ */ e(
64
64
  "input",
65
65
  {
66
- ref: n,
66
+ ref: a,
67
67
  type: "checkbox",
68
68
  ...N,
69
69
  disabled: v
@@ -92,7 +92,7 @@ const Y = "_root_2bilg_1", Z = "_text_2bilg_18", tt = "_textMini_2bilg_26", et =
92
92
  G.displayName = "TabSwitcherItem";
93
93
  const j = Object.assign(pt, { Item: G }), $ = V.bind(d), ht = ({
94
94
  options: s,
95
- selectedOption: n,
95
+ selectedOption: a,
96
96
  placeholder: o = "",
97
97
  error: O,
98
98
  disabled: l,
@@ -106,7 +106,7 @@ const j = Object.assign(pt, { Item: G }), $ = V.bind(d), ht = ({
106
106
  }) => {
107
107
  const [p, h] = R(!1), k = q(null), { isMobile: N } = F(), { handleBlur: W, getInputValue: w, getOption: g, handleDocumentClick: x } = X(
108
108
  {
109
- selectedOption: n,
109
+ selectedOption: a,
110
110
  onClickOption: y,
111
111
  setSelectedOption: r,
112
112
  setIsOpen: h,
@@ -217,7 +217,7 @@ var K = { exports: {} };
217
217
  */
218
218
  (function(s) {
219
219
  (function() {
220
- var n = {}.hasOwnProperty;
220
+ var a = {}.hasOwnProperty;
221
221
  function o() {
222
222
  for (var t = "", r = 0; r < arguments.length; r++) {
223
223
  var c = arguments[r];
@@ -236,7 +236,7 @@ var K = { exports: {} };
236
236
  return t.toString();
237
237
  var r = "";
238
238
  for (var c in t)
239
- n.call(t, c) && t[c] && (r = l(r, this && this[c] || c));
239
+ a.call(t, c) && t[c] && (r = l(r, this && this[c] || c));
240
240
  return r;
241
241
  }
242
242
  function l(t, r) {
@@ -248,40 +248,38 @@ var K = { exports: {} };
248
248
  var Mt = K.exports;
249
249
  const Rt = /* @__PURE__ */ U(Mt), Lt = ({
250
250
  selectedTabs: s = [],
251
- selectedValues: n = [],
251
+ selectedValues: a = [],
252
252
  onClickItem: o,
253
253
  disabledOptions: O = [],
254
254
  tabs: l = [],
255
255
  onChange: t,
256
256
  setSelectedTabs: r
257
257
  }) => {
258
- const { isMobile: c } = F(), [v, b] = R(!1), y = q(null), [m, p] = R(s), [h] = R(n), [k, N] = R(m), [W, w] = R(h), g = (a) => {
259
- if (o && o(a), O.some((u) => u.value === a.value))
258
+ const { isMobile: c } = F(), [v, b] = R(!1), y = q(null), [m, p] = R(s), [h] = R(a), [k, N] = R(m), [W, w] = R(h), g = (n) => {
259
+ if (o && o(n), O.some((u) => u.value === n.value))
260
260
  return;
261
- const C = W.some((u) => u.value === a.value) ? W.filter((u) => u.value !== a.value) : [...W, a];
261
+ const C = W.some((u) => u.value === n.value) ? W.filter((u) => u.value !== n.value) : [...W, n];
262
262
  w(C);
263
263
  }, x = () => {
264
264
  p(l), N(l), w([]), t && (t([]), r == null || r(l));
265
265
  }, B = () => {
266
- w(n), N(s);
266
+ w(a), N(s);
267
267
  }, D = () => {
268
268
  B(), b(!1);
269
- }, S = (a) => {
270
- a.stopPropagation(), t && (r == null || r(k), t(W)), b(!1);
269
+ }, S = (n) => {
270
+ n.stopPropagation(), t && (r == null || r(k), t(W)), b(!1);
271
271
  };
272
272
  return z(() => {
273
- v || N((a) => JSON.stringify(a) !== JSON.stringify(s) ? s : a);
273
+ v || N((n) => JSON.stringify(n) !== JSON.stringify(s) ? s : n);
274
274
  }, [v, s]), z(() => {
275
- const a = (C) => {
275
+ const n = (C) => {
276
276
  if (!y.current)
277
277
  return;
278
278
  const u = C.target;
279
- if (y.current.contains(u))
280
- return u.closest("svg"), void 0;
281
- D();
279
+ y.current.contains(u) || u.closest("svg") || D();
282
280
  };
283
- return v ? document.addEventListener("click", a) : document.removeEventListener("click", a), () => {
284
- document.removeEventListener("click", a);
281
+ return v ? document.addEventListener("click", n) : document.removeEventListener("click", n), () => {
282
+ document.removeEventListener("click", n);
285
283
  };
286
284
  }, [v]), {
287
285
  isMobile: c,
@@ -299,7 +297,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
299
297
  };
300
298
  }, At = Rt.bind(i), se = ({
301
299
  disabledOptions: s,
302
- tabs: n = [],
300
+ tabs: a = [],
303
301
  selectOptions: o = [],
304
302
  onChange: O,
305
303
  selectedValues: l,
@@ -325,7 +323,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
325
323
  selectedTabs: r,
326
324
  onClickItem: c,
327
325
  setSelectedTabs: t,
328
- tabs: n,
326
+ tabs: a,
329
327
  onChange: O,
330
328
  disabledOptions: s,
331
329
  selectedValues: l
@@ -355,13 +353,13 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
355
353
  variant: "grayRow",
356
354
  addClassName: i.tabs,
357
355
  isApart: !0,
358
- children: n == null ? void 0 : n.map((S, a) => {
356
+ children: a == null ? void 0 : a.map((S, n) => {
359
357
  var u;
360
358
  const C = S.value;
361
359
  return /* @__PURE__ */ e(
362
360
  j.Item,
363
361
  {
364
- itemsLength: n == null ? void 0 : n.length,
362
+ itemsLength: a == null ? void 0 : a.length,
365
363
  mini: !0,
366
364
  value: C,
367
365
  onClick: () => {
@@ -372,17 +370,17 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
372
370
  (M) => M.map((I) => I.value === C ? { ...I, state: !I.state } : I)
373
371
  );
374
372
  },
375
- index: a,
373
+ index: n,
376
374
  addItemClassName: i.tabSwitcher,
377
375
  children: C
378
376
  },
379
- a
377
+ n
380
378
  );
381
379
  })
382
380
  }
383
381
  ) })
384
382
  ] }),
385
- /* @__PURE__ */ e("div", { className: i.selectWrapper, children: o == null ? void 0 : o.map((S, a) => /* @__PURE__ */ e(
383
+ /* @__PURE__ */ e("div", { className: i.selectWrapper, children: o == null ? void 0 : o.map((S, n) => /* @__PURE__ */ e(
386
384
  T,
387
385
  {
388
386
  addClassName: i.filterOption,
@@ -392,7 +390,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
392
390
  option: S,
393
391
  handleOptionClick: k
394
392
  },
395
- a
393
+ n
396
394
  )) }),
397
395
  /* @__PURE__ */ _("div", { className: i.btnWrapper, children: [
398
396
  /* @__PURE__ */ e(
@@ -468,13 +466,13 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
468
466
  variant: "grayRow",
469
467
  addClassName: i.tabs,
470
468
  isApart: !0,
471
- children: n == null ? void 0 : n.map((S, a) => {
469
+ children: a == null ? void 0 : a.map((S, n) => {
472
470
  var u;
473
471
  const C = S.value;
474
472
  return /* @__PURE__ */ e(
475
473
  j.Item,
476
474
  {
477
- itemsLength: n == null ? void 0 : n.length,
475
+ itemsLength: a == null ? void 0 : a.length,
478
476
  mini: !0,
479
477
  value: C,
480
478
  onClick: () => {
@@ -485,17 +483,17 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
485
483
  (M) => M.map((I) => I.value === C ? { ...I, state: !I.state } : I)
486
484
  );
487
485
  },
488
- index: a,
486
+ index: n,
489
487
  addItemClassName: i.tabSwitcher,
490
488
  children: C
491
489
  },
492
- a
490
+ n
493
491
  );
494
492
  })
495
493
  }
496
494
  ) })
497
495
  ] }),
498
- /* @__PURE__ */ e("div", { className: i.selectWrapper, children: o == null ? void 0 : o.map((S, a) => /* @__PURE__ */ e(
496
+ /* @__PURE__ */ e("div", { className: i.selectWrapper, children: o == null ? void 0 : o.map((S, n) => /* @__PURE__ */ e(
499
497
  T,
500
498
  {
501
499
  addClassName: i.filterOption,
@@ -505,7 +503,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
505
503
  option: S,
506
504
  handleOptionClick: k
507
505
  },
508
- a
506
+ n
509
507
  )) }),
510
508
  /* @__PURE__ */ _("div", { className: i.btnWrapper, children: [
511
509
  /* @__PURE__ */ e(
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
11
11
  import "../../Input/ui/Input.js";
12
12
  import "react/jsx-runtime";
13
13
  import "../../../Modal-BZv6nlLe.js";
14
- import { u as q } from "../../../FilterWithSave-CAABaZ7q.js";
14
+ import { u as q } from "../../../FilterWithSave-LciJzvW0.js";
15
15
  import "../../GroupedInput/ui/GroupedInputs.js";
16
16
  import "../../../index-rKuIKazb.js";
17
17
  import "../../MetroTag/ui/MetroTag.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../NewIcon/ui/NewIcon.js";
3
- import { F as a } from "../../../FilterWithSave-CAABaZ7q.js";
3
+ import { F as a } from "../../../FilterWithSave-LciJzvW0.js";
4
4
  import "../../../Modal-BZv6nlLe.js";
5
5
  import "../../../Option-8X0Ft_zQ.js";
6
6
  import "../../Button/ui/Button.js";
@@ -1,4 +1,4 @@
1
- import { a as r } from "../../FilterWithSave-CAABaZ7q.js";
1
+ import { a as r } from "../../FilterWithSave-LciJzvW0.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-CAABaZ7q.js";
16
+ import { a as z } from "../../../FilterWithSave-LciJzvW0.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-CAABaZ7q.js";
1
+ import { S as e } from "../../FilterWithSave-LciJzvW0.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-CAABaZ7q.js";
3
+ import { S as v } from "../../../FilterWithSave-LciJzvW0.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-CAABaZ7q.js";
14
+ import "../../../FilterWithSave-LciJzvW0.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-CAABaZ7q.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-LciJzvW0.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.620",
5
+ "version": "0.0.622",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",