stone-kit 0.0.632 → 0.0.633

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.
@@ -76,10 +76,10 @@ const Y = "_root_38k8l_1", Z = "_text_38k8l_18", ee = "_textMini_38k8l_26", te =
76
76
  isLongOn: g = !0,
77
77
  width: S,
78
78
  width_m: m,
79
- width_l: h,
79
+ width_l: u,
80
80
  mini: k = !1,
81
81
  ...z
82
- } = r, y = (e != null && e.toString().length ? (e == null ? void 0 : e.toString().length) > 2 : !1) && g, B = (x, s) => x && m ? m : s && h ? h : S, b = !S && !m && !h && y;
82
+ } = r, y = (e != null && e.toString().length ? (e == null ? void 0 : e.toString().length) > 2 : !1) && g, B = (x, s) => x && m ? m : s && u ? u : S, b = !S && !m && !u && y;
83
83
  return /* @__PURE__ */ f("label", { className: L({ [o.isLong]: y }), children: [
84
84
  /* @__PURE__ */ t(
85
85
  "input",
@@ -141,7 +141,7 @@ const D = Object.assign(_e, { Item: G }), E = V.bind(_), pe = ({
141
141
  onClickItem: O,
142
142
  onCLickSelect: p
143
143
  }) => {
144
- const [W, g] = R(!1), S = q(null), { isMobile: m } = F(), { handleBlur: h, getInputValue: k, getOption: z, handleDocumentClick: y } = X(
144
+ const [W, g] = R(!1), S = q(null), { isMobile: m } = F(), { handleBlur: u, getInputValue: k, getOption: z, handleDocumentClick: y } = X(
145
145
  {
146
146
  selectedOption: a,
147
147
  onClickOption: O,
@@ -168,7 +168,7 @@ const D = Object.assign(_e, { Item: G }), E = V.bind(_), pe = ({
168
168
  e
169
169
  ),
170
170
  tabIndex: 0,
171
- onBlur: h,
171
+ onBlur: u,
172
172
  onClick: () => {
173
173
  p && p();
174
174
  },
@@ -227,9 +227,9 @@ const D = Object.assign(_e, { Item: G }), E = V.bind(_), pe = ({
227
227
  );
228
228
  };
229
229
  pe.displayName = "SortSelect";
230
- const he = "_root_1t65a_1", ue = "_filterWithSaveModal_1t65a_15", fe = "_modalAddBody_1t65a_20", ve = "_closeBtn_1t65a_29", ke = "_btnName_1t65a_35", ze = "_modalTitle_1t65a_39", xe = "_tabSWitcherWrapper_1t65a_48", Ne = "_switcherTitle_1t65a_56", We = "_switcherScroll_1t65a_63", ge = "_tabs_1t65a_72", Ce = "_selectWrapper_1t65a_77", we = "_filterOption_1t65a_81", Oe = "_btnWrapper_1t65a_88", Se = "_resetBtn_1t65a_94", ye = "_saveBtn_1t65a_95", Be = "_desktopWrapper_1t65a_99", Me = "_desktopWrapperOpen_1t65a_122", i = {
231
- root: he,
232
- filterWithSaveModal: ue,
230
+ const ue = "_root_1t65a_1", he = "_filterWithSaveModal_1t65a_15", fe = "_modalAddBody_1t65a_20", ve = "_closeBtn_1t65a_29", ke = "_btnName_1t65a_35", ze = "_modalTitle_1t65a_39", xe = "_tabSWitcherWrapper_1t65a_48", Ne = "_switcherTitle_1t65a_56", We = "_switcherScroll_1t65a_63", ge = "_tabs_1t65a_72", Ce = "_selectWrapper_1t65a_77", we = "_filterOption_1t65a_81", Oe = "_btnWrapper_1t65a_88", Se = "_resetBtn_1t65a_94", ye = "_saveBtn_1t65a_95", Be = "_desktopWrapper_1t65a_99", Me = "_desktopWrapperOpen_1t65a_122", i = {
231
+ root: ue,
232
+ filterWithSaveModal: he,
233
233
  modalAddBody: fe,
234
234
  closeBtn: ve,
235
235
  btnName: ke,
@@ -292,10 +292,10 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
292
292
  onChange: e,
293
293
  setSelectedTabs: l
294
294
  }) => {
295
- const { isMobile: d } = F(), [v, w] = R(!1), O = q(null), [p, W] = R(r), [g] = R(a), [S, m] = R(p), [h, k] = R(g), z = (s) => {
296
- if (n && n(s), C.some((u) => u.value === s.value))
295
+ const { isMobile: d } = F(), [v, w] = R(!1), O = q(null), [p, W] = R(r), [g] = R(a), [S, m] = R(p), [u, k] = R(g), z = (s) => {
296
+ if (n && n(s), C.some((h) => h.value === s.value))
297
297
  return;
298
- const N = h.some((u) => u.value === s.value) ? h.filter((u) => u.value !== s.value) : [...h, s];
298
+ const N = u.some((h) => h.value === s.value) ? u.filter((h) => h.value !== s.value) : [...u, s];
299
299
  k(N);
300
300
  }, y = () => {
301
301
  W(c), m(c), k([]), e && (e([]), l == null || l(c));
@@ -304,7 +304,7 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
304
304
  }, b = () => {
305
305
  B(), w(!1);
306
306
  }, x = (s) => {
307
- s.stopPropagation(), e && (l == null || l(S), e(h)), w(!1);
307
+ s.stopPropagation(), e && (l == null || l(S), e(u)), w(!1);
308
308
  };
309
309
  return j(() => {
310
310
  v || m((s) => JSON.stringify(s) !== JSON.stringify(r) ? r : s);
@@ -312,8 +312,8 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
312
312
  const s = (N) => {
313
313
  if (!O.current)
314
314
  return;
315
- const u = N.target;
316
- O.current.contains(u) || u.closest("svg") || b();
315
+ const h = N.target;
316
+ O.current.contains(h) || h.closest("svg") || b();
317
317
  };
318
318
  return v ? document.addEventListener("click", s) : document.removeEventListener("click", s), () => {
319
319
  document.removeEventListener("click", s);
@@ -325,7 +325,7 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
325
325
  handleOptionClick: z,
326
326
  handleSaveClick: x,
327
327
  localSelectedTabs: S,
328
- selectedOptions: h,
328
+ selectedOptions: u,
329
329
  setSelectedOptions: k,
330
330
  isModalOpen: v,
331
331
  setIsModalOpen: w,
@@ -351,7 +351,7 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
351
351
  isMobile: g,
352
352
  handleOptionClick: S,
353
353
  handleClearClick: m,
354
- handleSaveClick: h,
354
+ handleSaveClick: u,
355
355
  isModalOpen: k,
356
356
  setLocalSelectedTabs: z,
357
357
  setIsModalOpen: y,
@@ -391,17 +391,18 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
391
391
  addClassName: i.tabs,
392
392
  isApart: !0,
393
393
  children: a == null ? void 0 : a.map((x, s) => {
394
- var u;
394
+ var h;
395
395
  const N = x.value;
396
396
  return /* @__PURE__ */ t(
397
397
  D.Item,
398
398
  {
399
399
  itemsLength: a == null ? void 0 : a.length,
400
+ mini: !0,
400
401
  size_s: "small",
401
402
  value: N,
402
403
  onClick: () => {
403
404
  },
404
- checked: ((u = p == null ? void 0 : p.find((I) => I.value === N)) == null ? void 0 : u.state) ?? !1,
405
+ checked: ((h = p == null ? void 0 : p.find((I) => I.value === N)) == null ? void 0 : h.state) ?? !1,
405
406
  onChange: () => {
406
407
  z == null || z(
407
408
  (I) => I.map((M) => M.value === N ? { ...M, state: !M.state } : M)
@@ -444,7 +445,7 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
444
445
  {
445
446
  as: "button",
446
447
  additionalClass: i.saveBtn,
447
- onClick: h,
448
+ onClick: u,
448
449
  children: "Сохранить"
449
450
  }
450
451
  )
@@ -503,7 +504,7 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
503
504
  addClassName: i.tabs,
504
505
  isApart: !0,
505
506
  children: a == null ? void 0 : a.map((x, s) => {
506
- var u;
507
+ var h;
507
508
  const N = x.value;
508
509
  return /* @__PURE__ */ t(
509
510
  D.Item,
@@ -513,7 +514,7 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
513
514
  value: N,
514
515
  onClick: () => {
515
516
  },
516
- checked: ((u = p == null ? void 0 : p.find((I) => I.value === N)) == null ? void 0 : u.state) ?? !1,
517
+ checked: ((h = p == null ? void 0 : p.find((I) => I.value === N)) == null ? void 0 : h.state) ?? !1,
517
518
  onChange: () => {
518
519
  z == null || z(
519
520
  (I) => I.map((M) => M.value === N ? { ...M, state: !M.state } : M)
@@ -557,7 +558,7 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
557
558
  {
558
559
  as: "button",
559
560
  additionalClass: i.saveBtn,
560
- onClick: h,
561
+ onClick: u,
561
562
  children: "Сохранить"
562
563
  }
563
564
  )
@@ -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-B5uBCrOa.js";
14
+ import { u as q } from "../../../FilterWithSave-C9uFAsYM.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-B5uBCrOa.js";
3
+ import { F as a } from "../../../FilterWithSave-C9uFAsYM.js";
4
4
  import "../../../Modal-BZv6nlLe.js";
5
5
  import "../../../Option-a48eBPyn.js";
6
6
  import "../../Button/ui/Button.js";
@@ -1,4 +1,4 @@
1
- import { a as r } from "../../FilterWithSave-B5uBCrOa.js";
1
+ import { a as r } from "../../FilterWithSave-C9uFAsYM.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-B5uBCrOa.js";
16
+ import { a as z } from "../../../FilterWithSave-C9uFAsYM.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-B5uBCrOa.js";
1
+ import { S as e } from "../../FilterWithSave-C9uFAsYM.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-B5uBCrOa.js";
3
+ import { S as v } from "../../../FilterWithSave-C9uFAsYM.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-B5uBCrOa.js";
14
+ import "../../../FilterWithSave-C9uFAsYM.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-B5uBCrOa.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-C9uFAsYM.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.632",
5
+ "version": "0.0.633",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",