stone-kit 0.0.571 → 0.0.573

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,7 +23,7 @@ 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", st = "_textMini_2bilg_26", nt = "_rootCol_2bilg_32", at = "_item_2bilg_38", lt = "_whiteRow_2bilg_57", ct = "_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", p = {
26
+ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt = "_rootCol_2bilg_32", at = "_item_2bilg_38", lt = "_whiteRow_2bilg_57", ct = "_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
29
  textMini: st,
@@ -38,13 +38,13 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
38
38
  mini: ht,
39
39
  isDisabled: ut,
40
40
  grayRow: ft
41
- }, I = G.bind(p), gt = ({
41
+ }, I = G.bind(m), gt = ({
42
42
  children: n,
43
43
  variant: r = "whiteRow",
44
44
  isApart: a = !1,
45
45
  addClassName: h = "",
46
46
  col: u = !1
47
- }) => /* @__PURE__ */ e("div", { className: I(p.root, p[r], h, { [p.rootCol]: u, [p.apart]: a }), children: n }), J = Z((n, r) => {
47
+ }) => /* @__PURE__ */ e("div", { className: I(m.root, m[r], h, { [m.rootCol]: u, [m.apart]: a }), children: n }), J = Z((n, r) => {
48
48
  const { isTablet: a, isDesktop: h } = E(), {
49
49
  index: u,
50
50
  children: t,
@@ -59,7 +59,7 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
59
59
  mini: C = !1,
60
60
  ...k
61
61
  } = n, y = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (W, N) => W && l ? l : N && f ? f : v, g = !v && !l && !f && y;
62
- return /* @__PURE__ */ b("label", { className: I({ [p.isLong]: y }), children: [
62
+ return /* @__PURE__ */ b("label", { className: I({ [m.isLong]: y }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
65
65
  {
@@ -75,16 +75,16 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
75
75
  style: { width: w(a, h) },
76
76
  className: I(
77
77
  I(
78
- p.item,
79
- { [p.firstItem]: u === 0 },
80
- { [p.lastItem]: u === x - 1 },
81
- { [p.isDisabled]: O },
82
- { [p.autoWidth]: g },
83
- { [p.mini]: C }
78
+ m.item,
79
+ { [m.firstItem]: u === 0 },
80
+ { [m.lastItem]: u === x - 1 },
81
+ { [m.isDisabled]: O },
82
+ { [m.autoWidth]: g },
83
+ { [m.mini]: C }
84
84
  ),
85
85
  i
86
86
  ),
87
- children: /* @__PURE__ */ e(V, { className: I(p.text, { [p.textMini]: C }, d), children: t })
87
+ children: /* @__PURE__ */ e(V, { className: I(m.text, { [m.textMini]: C }, d), children: t })
88
88
  }
89
89
  )
90
90
  ] });
@@ -261,8 +261,8 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
261
261
  const { isMobile: S } = E(), [v, l] = B(!1), f = q(null), [C, k] = B(i), [y] = B(u), [w, g] = B(C), [W, N] = B(y), Q = (s) => {
262
262
  if (d && d(s), n.some((_) => _.value === s.value))
263
263
  return;
264
- const m = W.some((_) => _.value === s.value) ? W.filter((_) => _.value !== s.value) : [...W, s];
265
- N(m);
264
+ const p = W.some((_) => _.value === s.value) ? W.filter((_) => _.value !== s.value) : [...W, s];
265
+ N(p);
266
266
  }, U = () => {
267
267
  k(r), g(r), N([]), h && (h([]), t == null || t(r));
268
268
  }, X = () => {
@@ -277,9 +277,9 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
277
277
  }, [v]), L(() => {
278
278
  g(i);
279
279
  }, [i]), L(() => {
280
- const s = (m) => {
280
+ const s = (p) => {
281
281
  var _;
282
- console.log((_ = m == null ? void 0 : m.target) == null ? void 0 : _.closest("#id")), f.current && !f.current.contains(m.target) && j();
282
+ console.log(p.target.closest("div")), console.log((_ = p == null ? void 0 : p.target) == null ? void 0 : _.closest("#id")), f.current && !f.current.contains(p.target) && j();
283
283
  };
284
284
  return document.addEventListener("click", s), () => {
285
285
  document.removeEventListener("click", s);
@@ -309,7 +309,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
309
309
  variant: "grayRow",
310
310
  addClassName: o.tabs,
311
311
  isApart: !0,
312
- children: r == null ? void 0 : r.map((s, m) => {
312
+ children: r == null ? void 0 : r.map((s, p) => {
313
313
  var z;
314
314
  const _ = s.value;
315
315
  return /* @__PURE__ */ e(
@@ -326,17 +326,17 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
326
326
  (D) => D.map((M) => M.value === _ ? { ...M, state: !M.state } : M)
327
327
  );
328
328
  },
329
- index: m,
329
+ index: p,
330
330
  addItemClassName: o.tabSwitcher,
331
331
  children: _
332
332
  },
333
- m
333
+ p
334
334
  );
335
335
  })
336
336
  }
337
337
  ) })
338
338
  ] }),
339
- /* @__PURE__ */ e("div", { className: o.selectWrapper, children: a == null ? void 0 : a.map((s, m) => /* @__PURE__ */ e(
339
+ /* @__PURE__ */ e("div", { className: o.selectWrapper, children: a == null ? void 0 : a.map((s, p) => /* @__PURE__ */ e(
340
340
  it,
341
341
  {
342
342
  addClassName: o.filterOption,
@@ -346,7 +346,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
346
346
  option: s,
347
347
  handleOptionClick: Q
348
348
  },
349
- m
349
+ p
350
350
  )) }),
351
351
  /* @__PURE__ */ b("div", { className: o.btnWrapper, children: [
352
352
  /* @__PURE__ */ e(
@@ -374,10 +374,11 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
374
374
  /* @__PURE__ */ b(
375
375
  "div",
376
376
  {
377
+ ref: f,
377
378
  className: o.root,
378
379
  id: "modal-container",
379
380
  onClick: (s) => {
380
- s.stopPropagation(), O && O(), l(S ? (m) => !m : !0);
381
+ s.stopPropagation(), O && O(), l(S ? (p) => !p : !0);
381
382
  },
382
383
  children: [
383
384
  /* @__PURE__ */ e("div", { className: o.btnName, children: x }),
@@ -391,7 +392,6 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
391
392
  !S && /* @__PURE__ */ e(
392
393
  "div",
393
394
  {
394
- ref: f,
395
395
  className: $t(o.desktopWrapper, { [o.desktopWrapperOpen]: v }),
396
396
  onClick: (s) => s.stopPropagation(),
397
397
  children: /* @__PURE__ */ e($, {})
@@ -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-B1v4cN1L.js";
4
+ import { F as w } from "../../../FilterWithSave-ChQ2Rjx4.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-B1v4cN1L.js";
1
+ import { a as r } from "../../FilterWithSave-ChQ2Rjx4.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-B1v4cN1L.js";
16
+ import { a as z } from "../../../FilterWithSave-ChQ2Rjx4.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-B1v4cN1L.js";
1
+ import { S as e } from "../../FilterWithSave-ChQ2Rjx4.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-B1v4cN1L.js";
3
+ import { S as v } from "../../../FilterWithSave-ChQ2Rjx4.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-B1v4cN1L.js";
14
+ import "../../../FilterWithSave-ChQ2Rjx4.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-B1v4cN1L.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-ChQ2Rjx4.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.571",
5
+ "version": "0.0.573",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",