stone-kit 0.0.604 → 0.0.605

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 rt = "_root_2bilg_1", nt = "_text_2bilg_18", st = "_textMini_2bilg_26", ot = "_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", ut = "_mini_2bilg_132", ht = "_isDisabled_2bilg_140", ft = "_grayRow_2bilg_164", p = {
26
+ const rt = "_root_2bilg_1", nt = "_text_2bilg_18", st = "_textMini_2bilg_26", ot = "_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", ut = "_mini_2bilg_132", ht = "_isDisabled_2bilg_140", ft = "_grayRow_2bilg_164", m = {
27
27
  root: rt,
28
28
  text: nt,
29
29
  textMini: st,
@@ -38,13 +38,13 @@ const rt = "_root_2bilg_1", nt = "_text_2bilg_18", st = "_textMini_2bilg_26", ot
38
38
  mini: ut,
39
39
  isDisabled: ht,
40
40
  grayRow: ft
41
- }, I = V.bind(p), vt = ({
41
+ }, I = V.bind(m), vt = ({
42
42
  children: o,
43
43
  variant: s = "whiteRow",
44
44
  isApart: a = !1,
45
45
  addClassName: _ = "",
46
46
  col: u = !1
47
- }) => /* @__PURE__ */ e("div", { className: I(p.root, p[s], _, { [p.rootCol]: u, [p.apart]: a }), children: o }), G = Z((o, s) => {
47
+ }) => /* @__PURE__ */ e("div", { className: I(m.root, m[s], _, { [m.rootCol]: u, [m.apart]: a }), children: o }), G = Z((o, s) => {
48
48
  const { isTablet: a, isDesktop: _ } = E(), {
49
49
  index: u,
50
50
  children: t,
@@ -55,11 +55,11 @@ const rt = "_root_2bilg_1", nt = "_text_2bilg_18", st = "_textMini_2bilg_26", ot
55
55
  isLongOn: O = !0,
56
56
  width: h,
57
57
  width_m: l,
58
- width_l: m,
58
+ width_l: p,
59
59
  mini: S = !1,
60
60
  ...k
61
- } = o, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, N = (v, W) => v && l ? l : W && m ? m : h, f = !h && !l && !m && x;
62
- return /* @__PURE__ */ y("label", { className: I({ [p.isLong]: x }), children: [
61
+ } = o, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, N = (v, W) => v && l ? l : W && p ? p : h, f = !h && !l && !p && x;
62
+ return /* @__PURE__ */ y("label", { className: I({ [m.isLong]: x }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
65
65
  {
@@ -75,16 +75,16 @@ const rt = "_root_2bilg_1", nt = "_text_2bilg_18", st = "_textMini_2bilg_26", ot
75
75
  style: { width: N(a, _) },
76
76
  className: I(
77
77
  I(
78
- p.item,
79
- { [p.firstItem]: u === 0 },
80
- { [p.lastItem]: u === C - 1 },
81
- { [p.isDisabled]: g },
82
- { [p.autoWidth]: f },
83
- { [p.mini]: S }
78
+ m.item,
79
+ { [m.firstItem]: u === 0 },
80
+ { [m.lastItem]: u === C - 1 },
81
+ { [m.isDisabled]: g },
82
+ { [m.autoWidth]: f },
83
+ { [m.mini]: S }
84
84
  ),
85
85
  i
86
86
  ),
87
- children: /* @__PURE__ */ e(H, { className: I(p.text, { [p.textMini]: S }, d), children: t })
87
+ children: /* @__PURE__ */ e(H, { className: I(m.text, { [m.textMini]: S }, d), children: t })
88
88
  }
89
89
  )
90
90
  ] });
@@ -104,12 +104,12 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
104
104
  onClickItem: O,
105
105
  onCLickSelect: h
106
106
  }) => {
107
- const [l, m] = B(!1), S = J(null), { isMobile: k } = E(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: v } = et(
107
+ const [l, p] = B(!1), S = J(null), { isMobile: k } = E(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: v } = et(
108
108
  {
109
109
  selectedOption: s,
110
110
  onClickOption: O,
111
111
  setSelectedOption: i,
112
- setIsOpen: m,
112
+ setIsOpen: p,
113
113
  containerRef: S,
114
114
  isOpen: l,
115
115
  isMobile: k,
@@ -148,7 +148,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
148
148
  { [c.selectOptionsDisabled]: u },
149
149
  { [c.selectionOptionMini]: g }
150
150
  ),
151
- onClick: () => m(!l)
151
+ onClick: () => p(!l)
152
152
  }
153
153
  ),
154
154
  /* @__PURE__ */ e(
@@ -164,7 +164,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
164
164
  q,
165
165
  {
166
166
  isOpen: l,
167
- emitIsOpen: m,
167
+ emitIsOpen: p,
168
168
  additionalClassModalBody: c.modalAddBody,
169
169
  additionalClass: c.selectModal,
170
170
  createPortalObj: { domNode: document.querySelector("body") },
@@ -172,7 +172,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
172
172
  children: [
173
173
  /* @__PURE__ */ y("div", { className: c.mobileSortHeader, children: [
174
174
  /* @__PURE__ */ e(H, { children: "Сортировка" }),
175
- /* @__PURE__ */ e("div", { onClick: () => m(!1), children: /* @__PURE__ */ e(
175
+ /* @__PURE__ */ e("div", { onClick: () => p(!1), children: /* @__PURE__ */ e(
176
176
  R,
177
177
  {
178
178
  name: "close",
@@ -258,7 +258,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(n), de = ({
258
258
  onCLickSelect: g,
259
259
  btnName: C = "Фильтр"
260
260
  }) => {
261
- const { isMobile: O } = E(), [h, l] = B(!1), m = J(null), [S, k] = B(i), [x] = B(u), [N, f] = B(S), [v, W] = B(x), Q = (r) => {
261
+ const { isMobile: O } = E(), [h, l] = B(!1), p = J(null), [S, k] = B(i), [x] = B(u), [N, f] = B(S), [v, W] = B(x), Q = (r) => {
262
262
  if (d && d(r), o.some((w) => w.value === r.value))
263
263
  return;
264
264
  const b = v.some((w) => w.value === r.value) ? v.filter((w) => w.value !== r.value) : [...v, r];
@@ -276,7 +276,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(n), de = ({
276
276
  h || f((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
277
277
  }, [h, i]), D(() => {
278
278
  const r = (b) => {
279
- m.current && (m.current && !m.current.contains(b.target) || j());
279
+ p.current && (p.current && !p.current.contains(b.target) || j());
280
280
  };
281
281
  return h ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
282
282
  document.removeEventListener("click", r, { capture: !0 });
@@ -373,7 +373,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(n), de = ({
373
373
  /* @__PURE__ */ y(
374
374
  "div",
375
375
  {
376
- ref: m,
376
+ ref: p,
377
377
  className: n.root,
378
378
  onClick: () => {
379
379
  g && g(), l(O ? (r) => !r : !0);
@@ -387,7 +387,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(n), de = ({
387
387
  size: "16"
388
388
  }
389
389
  ),
390
- !O && /* @__PURE__ */ e("div", { className: $t(n.desktopWrapper, { [n.desktopWrapperOpen]: h }), children: /* @__PURE__ */ e($, {}) })
390
+ !O && /* @__PURE__ */ e("div", { ref: p, className: $t(n.desktopWrapper, { [n.desktopWrapperOpen]: h }), children: /* @__PURE__ */ e($, {}) })
391
391
  ]
392
392
  }
393
393
  ),
@@ -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-BxcOK4VO.js";
4
+ import { F as w } from "../../../FilterWithSave-DJlty46m.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-BxcOK4VO.js";
1
+ import { a as r } from "../../FilterWithSave-DJlty46m.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-BxcOK4VO.js";
16
+ import { a as z } from "../../../FilterWithSave-DJlty46m.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-BxcOK4VO.js";
1
+ import { S as e } from "../../FilterWithSave-DJlty46m.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-BxcOK4VO.js";
3
+ import { S as v } from "../../../FilterWithSave-DJlty46m.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-BxcOK4VO.js";
14
+ import "../../../FilterWithSave-DJlty46m.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-BxcOK4VO.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-DJlty46m.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.604",
5
+ "version": "0.0.605",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",