stone-kit 0.0.574 → 0.0.575

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.
@@ -1,10 +1,10 @@
1
- import { jsxs as b, jsx as e, Fragment as F } from "react/jsx-runtime";
1
+ import { jsxs as b, jsx as e, Fragment as z } from "react/jsx-runtime";
2
2
  import { forwardRef as Z, useState as B, useRef as q, useEffect as L } from "react";
3
3
  import { NewIcon as A } from "./components/NewIcon/ui/NewIcon.js";
4
4
  import { M as H } from "./Modal-BZv6nlLe.js";
5
5
  import { Text as V } from "./components/Text/ui/Text.js";
6
6
  import { c as G, g as tt } from "./index-rKuIKazb.js";
7
- import { Button as P } from "./components/Button/ui/Button.js";
7
+ import { Button as F } from "./components/Button/ui/Button.js";
8
8
  import "./components/mobileButton/ui/MobileButton.js";
9
9
  import "./components/DestinationTab/ui/DestinationTab.js";
10
10
  import "./components/RoundButton/ui/RoundButton.js";
@@ -40,11 +40,11 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
40
40
  grayRow: ft
41
41
  }, I = G.bind(m), gt = ({
42
42
  children: n,
43
- variant: r = "whiteRow",
43
+ variant: s = "whiteRow",
44
44
  isApart: a = !1,
45
45
  addClassName: h = "",
46
46
  col: u = !1
47
- }) => /* @__PURE__ */ e("div", { className: I(m.root, m[r], h, { [m.rootCol]: u, [m.apart]: a }), children: n }), J = Z((n, r) => {
47
+ }) => /* @__PURE__ */ e("div", { className: I(m.root, m[s], h, { [m.rootCol]: u, [m.apart]: a }), children: n }), J = Z((n, s) => {
48
48
  const { isTablet: a, isDesktop: h } = E(), {
49
49
  index: u,
50
50
  children: t,
@@ -63,7 +63,7 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
63
63
  /* @__PURE__ */ e(
64
64
  "input",
65
65
  {
66
- ref: r,
66
+ ref: s,
67
67
  type: "checkbox",
68
68
  ...k,
69
69
  disabled: O
@@ -92,7 +92,7 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
92
92
  J.displayName = "TabSwitcherItem";
93
93
  const T = Object.assign(gt, { Item: J }), R = G.bind(c), vt = ({
94
94
  options: n,
95
- selectedOption: r,
95
+ selectedOption: s,
96
96
  placeholder: a = "",
97
97
  error: h,
98
98
  disabled: u,
@@ -106,7 +106,7 @@ const T = Object.assign(gt, { Item: J }), R = G.bind(c), vt = ({
106
106
  }) => {
107
107
  const [l, f] = B(!1), C = q(null), { isMobile: k } = E(), { handleBlur: y, getInputValue: w, getOption: g, handleDocumentClick: W } = et(
108
108
  {
109
- selectedOption: r,
109
+ selectedOption: s,
110
110
  onClickOption: S,
111
111
  setSelectedOption: i,
112
112
  setIsOpen: f,
@@ -217,7 +217,7 @@ var K = { exports: {} };
217
217
  */
218
218
  (function(n) {
219
219
  (function() {
220
- var r = {}.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,7 +236,7 @@ var K = { exports: {} };
236
236
  return t.toString();
237
237
  var i = "";
238
238
  for (var d in t)
239
- r.call(t, d) && t[d] && (i = u(i, this && this[d] || d));
239
+ s.call(t, d) && t[d] && (i = u(i, this && this[d] || d));
240
240
  return i;
241
241
  }
242
242
  function u(t, i) {
@@ -248,7 +248,7 @@ var K = { exports: {} };
248
248
  var Et = K.exports;
249
249
  const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
250
250
  disabledOptions: n = [],
251
- tabs: r = [],
251
+ tabs: s = [],
252
252
  selectOptions: a = [],
253
253
  onChange: h,
254
254
  selectedValues: u = [],
@@ -258,13 +258,13 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
258
258
  onCLickSelect: O,
259
259
  btnName: x = "Фильтр"
260
260
  }) => {
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
- if (d && d(s), n.some((_) => _.value === s.value))
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 = (r) => {
262
+ if (d && d(r), n.some((_) => _.value === r.value))
263
263
  return;
264
- const p = W.some((_) => _.value === s.value) ? W.filter((_) => _.value !== s.value) : [...W, s];
264
+ const p = W.some((_) => _.value === r.value) ? W.filter((_) => _.value !== r.value) : [...W, r];
265
265
  N(p);
266
266
  }, U = () => {
267
- k(r), g(r), N([]), h && (h([]), t == null || t(r));
267
+ k(s), g(s), N([]), h && (h([]), t == null || t(s));
268
268
  }, X = () => {
269
269
  N(u), g(i);
270
270
  }, j = () => {
@@ -277,20 +277,22 @@ 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 = (p) => {
280
+ const r = (p) => {
281
281
  var _;
282
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
- return document.addEventListener("click", s), () => {
285
- document.removeEventListener("click", s);
284
+ return document.addEventListener("click", r), () => {
285
+ document.removeEventListener("click", r);
286
286
  };
287
287
  }, [v]);
288
- const $ = () => /* @__PURE__ */ b(F, { children: [
288
+ const $ = () => /* @__PURE__ */ b(z, { children: [
289
289
  /* @__PURE__ */ e(
290
290
  "div",
291
291
  {
292
292
  className: o.closeBtn,
293
- onClick: j,
293
+ onClick: (r) => {
294
+ r.stopPropagation(), j();
295
+ },
294
296
  children: /* @__PURE__ */ e(
295
297
  A,
296
298
  {
@@ -309,18 +311,18 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
309
311
  variant: "grayRow",
310
312
  addClassName: o.tabs,
311
313
  isApart: !0,
312
- children: r == null ? void 0 : r.map((s, p) => {
313
- var z;
314
- const _ = s.value;
314
+ children: s == null ? void 0 : s.map((r, p) => {
315
+ var P;
316
+ const _ = r.value;
315
317
  return /* @__PURE__ */ e(
316
318
  T.Item,
317
319
  {
318
- itemsLength: r == null ? void 0 : r.length,
320
+ itemsLength: s == null ? void 0 : s.length,
319
321
  mini: !0,
320
322
  value: _,
321
323
  onClick: () => {
322
324
  },
323
- checked: ((z = w == null ? void 0 : w.find((D) => D.value === _)) == null ? void 0 : z.state) ?? !1,
325
+ checked: ((P = w == null ? void 0 : w.find((D) => D.value === _)) == null ? void 0 : P.state) ?? !1,
324
326
  onChange: () => {
325
327
  g == null || g(
326
328
  (D) => D.map((M) => M.value === _ ? { ...M, state: !M.state } : M)
@@ -336,21 +338,21 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
336
338
  }
337
339
  ) })
338
340
  ] }),
339
- /* @__PURE__ */ e("div", { className: o.selectWrapper, children: a == null ? void 0 : a.map((s, p) => /* @__PURE__ */ e(
341
+ /* @__PURE__ */ e("div", { className: o.selectWrapper, children: a == null ? void 0 : a.map((r, p) => /* @__PURE__ */ e(
340
342
  it,
341
343
  {
342
344
  addClassName: o.filterOption,
343
345
  disabledOptions: [],
344
346
  clickableOptions: [],
345
347
  selectedOptions: W,
346
- option: s,
348
+ option: r,
347
349
  handleOptionClick: Q
348
350
  },
349
351
  p
350
352
  )) }),
351
353
  /* @__PURE__ */ b("div", { className: o.btnWrapper, children: [
352
354
  /* @__PURE__ */ e(
353
- P,
355
+ F,
354
356
  {
355
357
  as: "button",
356
358
  variant: "gray",
@@ -360,7 +362,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
360
362
  }
361
363
  ),
362
364
  /* @__PURE__ */ e(
363
- P,
365
+ F,
364
366
  {
365
367
  as: "button",
366
368
  additionalClass: o.saveBtn,
@@ -370,15 +372,15 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
370
372
  )
371
373
  ] })
372
374
  ] });
373
- return /* @__PURE__ */ b(F, { children: [
375
+ return /* @__PURE__ */ b(z, { children: [
374
376
  /* @__PURE__ */ b(
375
377
  "div",
376
378
  {
377
379
  ref: f,
378
380
  className: o.root,
379
381
  id: "modal-container",
380
- onClick: (s) => {
381
- s.stopPropagation(), O && O(), l(S ? (p) => !p : !0);
382
+ onClick: (r) => {
383
+ r.stopPropagation(), O && O(), l(S ? (p) => !p : !0);
382
384
  },
383
385
  children: [
384
386
  /* @__PURE__ */ e("div", { className: o.btnName, children: x }),
@@ -393,7 +395,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
393
395
  "div",
394
396
  {
395
397
  className: $t(o.desktopWrapper, { [o.desktopWrapperOpen]: v }),
396
- onClick: (s) => s.stopPropagation(),
398
+ onClick: (r) => r.stopPropagation(),
397
399
  children: /* @__PURE__ */ e($, {})
398
400
  }
399
401
  )
@@ -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-usSqjx95.js";
4
+ import { F as w } from "../../../FilterWithSave-BqHoaJ28.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-usSqjx95.js";
1
+ import { a as r } from "../../FilterWithSave-BqHoaJ28.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-usSqjx95.js";
16
+ import { a as z } from "../../../FilterWithSave-BqHoaJ28.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-usSqjx95.js";
1
+ import { S as e } from "../../FilterWithSave-BqHoaJ28.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-usSqjx95.js";
3
+ import { S as v } from "../../../FilterWithSave-BqHoaJ28.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-usSqjx95.js";
14
+ import "../../../FilterWithSave-BqHoaJ28.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-usSqjx95.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-BqHoaJ28.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.574",
5
+ "version": "0.0.575",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",