stone-kit 0.0.544 → 0.0.545

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