stone-kit 0.0.613 → 0.0.615

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", st = "_text_2bilg_18", nt = "_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", st = "_text_2bilg_18", nt = "_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", ht = "_mini_2bilg_132", ut = "_isDisabled_2bilg_140", ft = "_grayRow_2bilg_164", p = {
27
27
  root: rt,
28
28
  text: st,
29
29
  textMini: nt,
@@ -35,18 +35,18 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
35
35
  apart: pt,
36
36
  isLong: mt,
37
37
  autoWidth: _t,
38
- mini: ut,
39
- isDisabled: ht,
38
+ mini: ht,
39
+ isDisabled: ut,
40
40
  grayRow: ft
41
41
  }, I = V.bind(p), vt = ({
42
42
  children: o,
43
43
  variant: n = "whiteRow",
44
44
  isApart: a = !1,
45
45
  addClassName: _ = "",
46
- col: u = !1
47
- }) => /* @__PURE__ */ e("div", { className: I(p.root, p[n], _, { [p.rootCol]: u, [p.apart]: a }), children: o }), G = Z((o, n) => {
46
+ col: h = !1
47
+ }) => /* @__PURE__ */ e("div", { className: I(p.root, p[n], _, { [p.rootCol]: h, [p.apart]: a }), children: o }), G = Z((o, n) => {
48
48
  const { isTablet: a, isDesktop: _ } = j(), {
49
- index: u,
49
+ index: h,
50
50
  children: t,
51
51
  addItemClassName: i,
52
52
  addTextClass: d,
@@ -55,10 +55,10 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
55
55
  isLongOn: O = !0,
56
56
  width: m,
57
57
  width_m: l,
58
- width_l: h,
58
+ width_l: u,
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 = (w, g) => w && l ? l : g && h ? h : m, f = !m && !l && !h && x;
61
+ } = o, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, N = (w, g) => w && l ? l : g && u ? u : m, f = !m && !l && !u && x;
62
62
  return /* @__PURE__ */ v("label", { className: I({ [p.isLong]: x }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
@@ -76,8 +76,8 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
76
76
  className: I(
77
77
  I(
78
78
  p.item,
79
- { [p.firstItem]: u === 0 },
80
- { [p.lastItem]: u === C - 1 },
79
+ { [p.firstItem]: h === 0 },
80
+ { [p.lastItem]: h === C - 1 },
81
81
  { [p.isDisabled]: b },
82
82
  { [p.autoWidth]: f },
83
83
  { [p.mini]: S }
@@ -95,7 +95,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
95
95
  selectedOption: n,
96
96
  placeholder: a = "",
97
97
  error: _,
98
- disabled: u,
98
+ disabled: h,
99
99
  additionalClass: t = "",
100
100
  onChange: i,
101
101
  onBlur: d,
@@ -104,12 +104,12 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
104
104
  onClickItem: O,
105
105
  onCLickSelect: m
106
106
  }) => {
107
- const [l, h] = B(!1), S = J(null), { isMobile: k } = j(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: w } = et(
107
+ const [l, u] = B(!1), S = J(null), { isMobile: k } = j(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: w } = et(
108
108
  {
109
109
  selectedOption: n,
110
110
  onClickOption: O,
111
111
  setSelectedOption: i,
112
- setIsOpen: h,
112
+ setIsOpen: u,
113
113
  containerRef: S,
114
114
  isOpen: l,
115
115
  isMobile: k,
@@ -145,10 +145,10 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
145
145
  value: N(),
146
146
  className: L(
147
147
  c.selectedOptions,
148
- { [c.selectOptionsDisabled]: u },
148
+ { [c.selectOptionsDisabled]: h },
149
149
  { [c.selectionOptionMini]: b }
150
150
  ),
151
- onClick: () => h(!l)
151
+ onClick: () => u(!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: h,
167
+ emitIsOpen: u,
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__ */ v("div", { className: c.mobileSortHeader, children: [
174
174
  /* @__PURE__ */ e(H, { children: "Сортировка" }),
175
- /* @__PURE__ */ e("div", { onClick: () => h(!1), children: /* @__PURE__ */ e(
175
+ /* @__PURE__ */ e("div", { onClick: () => u(!1), children: /* @__PURE__ */ e(
176
176
  R,
177
177
  {
178
178
  name: "close",
@@ -221,7 +221,7 @@ var K = { exports: {} };
221
221
  function a() {
222
222
  for (var t = "", i = 0; i < arguments.length; i++) {
223
223
  var d = arguments[i];
224
- d && (t = u(t, _.call(this, d)));
224
+ d && (t = h(t, _.call(this, d)));
225
225
  }
226
226
  return t;
227
227
  }
@@ -236,10 +236,10 @@ var K = { exports: {} };
236
236
  return t.toString();
237
237
  var i = "";
238
238
  for (var d in t)
239
- n.call(t, d) && t[d] && (i = u(i, this && this[d] || d));
239
+ n.call(t, d) && t[d] && (i = h(i, this && this[d] || d));
240
240
  return i;
241
241
  }
242
- function u(t, i) {
242
+ function h(t, i) {
243
243
  return i ? t ? t + " " + i : t + i : t;
244
244
  }
245
245
  o.exports ? (a.default = a, o.exports = a) : window.classNames = a;
@@ -251,14 +251,14 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
251
251
  tabs: n = [],
252
252
  selectOptions: a = [],
253
253
  onChange: _,
254
- selectedValues: u = [],
254
+ selectedValues: h = [],
255
255
  setSelectedTabs: t,
256
256
  selectedTabs: i = [],
257
257
  onClickItem: d,
258
258
  onCLickSelect: b,
259
259
  btnName: C = "Фильтр"
260
260
  }) => {
261
- const { isMobile: O } = j(), [m, l] = B(!1), h = J(null), [S, k] = B(i), [x] = B(u), [N, f] = B(S), [w, g] = B(x), Q = (r) => {
261
+ const { isMobile: O } = j(), [m, l] = B(!1), u = J(null), [S, k] = B(i), [x] = B(h), [N, f] = B(S), [w, g] = B(x), Q = (r) => {
262
262
  if (d && d(r), o.some((W) => W.value === r.value))
263
263
  return;
264
264
  const y = w.some((W) => W.value === r.value) ? w.filter((W) => W.value !== r.value) : [...w, r];
@@ -266,7 +266,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
266
266
  }, U = () => {
267
267
  k(n), f(n), g([]), _ && (_([]), t == null || t(n));
268
268
  }, X = () => {
269
- g(u), f(i);
269
+ g(h), f(i);
270
270
  }, A = () => {
271
271
  X(), l(!1);
272
272
  }, Y = (r) => {
@@ -276,10 +276,10 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
276
276
  m || f((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
277
277
  }, [m, i]), E(() => {
278
278
  const r = (y) => {
279
- h.current && (h.current.contains(y.target) || (console.log("я тут"), A()));
279
+ u.current && (u.current.contains(y.target) || (console.log("я тут"), A()));
280
280
  };
281
- return m ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
282
- document.removeEventListener("click", r, { capture: !0 });
281
+ return m ? document.addEventListener("click", r) : document.removeEventListener("click", r), () => {
282
+ document.removeEventListener("click", r);
283
283
  };
284
284
  }, [m]);
285
285
  const $ = () => /* @__PURE__ */ v(F, { children: [
@@ -376,7 +376,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
376
376
  {
377
377
  className: s.root,
378
378
  onClick: (r) => {
379
- console.log("я тут 2"), r.stopPropagation(), b && b(), O ? l((y) => !y) : m ? A() : l(!0);
379
+ b && b(), O ? l((y) => !y) : m ? (console.log("я тут 2"), r.stopPropagation(), A()) : l(!0);
380
380
  },
381
381
  children: [
382
382
  /* @__PURE__ */ e("div", { className: s.btnName, children: C }),
@@ -393,7 +393,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
393
393
  !O && /* @__PURE__ */ e(
394
394
  "div",
395
395
  {
396
- ref: h,
396
+ ref: u,
397
397
  className: $t(s.desktopWrapper, { [s.desktopWrapperOpen]: m }),
398
398
  children: /* @__PURE__ */ e($, {})
399
399
  }
@@ -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-CfK3Cbkx.js";
4
+ import { F as w } from "../../../FilterWithSave-C6tku1-V.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-CfK3Cbkx.js";
1
+ import { a as r } from "../../FilterWithSave-C6tku1-V.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-CfK3Cbkx.js";
16
+ import { a as z } from "../../../FilterWithSave-C6tku1-V.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-CfK3Cbkx.js";
1
+ import { S as e } from "../../FilterWithSave-C6tku1-V.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-CfK3Cbkx.js";
3
+ import { S as v } from "../../../FilterWithSave-C6tku1-V.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-CfK3Cbkx.js";
14
+ import "../../../FilterWithSave-C6tku1-V.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-CfK3Cbkx.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-C6tku1-V.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.613",
5
+ "version": "0.0.615",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",