stone-kit 0.0.582 → 0.0.583

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.
@@ -42,23 +42,23 @@ const rt = "_root_2bilg_1", ot = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
42
42
  children: n,
43
43
  variant: s = "whiteRow",
44
44
  isApart: a = !1,
45
- addClassName: _ = "",
46
- col: u = !1
47
- }) => /* @__PURE__ */ e("div", { className: I(p.root, p[s], _, { [p.rootCol]: u, [p.apart]: a }), children: n }), G = Z((n, s) => {
48
- const { isTablet: a, isDesktop: _ } = E(), {
49
- index: u,
45
+ addClassName: m = "",
46
+ col: _ = !1
47
+ }) => /* @__PURE__ */ e("div", { className: I(p.root, p[s], m, { [p.rootCol]: _, [p.apart]: a }), children: n }), G = Z((n, s) => {
48
+ const { isTablet: a, isDesktop: m } = E(), {
49
+ index: _,
50
50
  children: t,
51
51
  addItemClassName: i,
52
52
  addTextClass: d,
53
53
  disabled: O = !1,
54
54
  itemsLength: C = 0,
55
55
  isLongOn: S = !0,
56
- width: h,
56
+ width: u,
57
57
  width_m: c,
58
- width_l: m,
58
+ width_l: h,
59
59
  mini: k = !1,
60
60
  ...y
61
- } = n, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (v, b) => v && c ? c : b && m ? m : h, f = !h && !c && !m && x;
61
+ } = n, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (g, b) => g && c ? c : b && h ? h : u, f = !u && !c && !h && x;
62
62
  return /* @__PURE__ */ N("label", { className: I({ [p.isLong]: x }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
@@ -72,12 +72,12 @@ const rt = "_root_2bilg_1", ot = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
72
72
  /* @__PURE__ */ e(
73
73
  "div",
74
74
  {
75
- style: { width: w(a, _) },
75
+ style: { width: w(a, m) },
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]: _ === 0 },
80
+ { [p.lastItem]: _ === C - 1 },
81
81
  { [p.isDisabled]: O },
82
82
  { [p.autoWidth]: f },
83
83
  { [p.mini]: k }
@@ -94,22 +94,22 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
94
94
  options: n,
95
95
  selectedOption: s,
96
96
  placeholder: a = "",
97
- error: _,
98
- disabled: u,
97
+ error: m,
98
+ disabled: _,
99
99
  additionalClass: t = "",
100
100
  onChange: i,
101
101
  onBlur: d,
102
102
  mini: O,
103
103
  openOnTop: C = !1,
104
104
  onClickItem: S,
105
- onCLickSelect: h
105
+ onCLickSelect: u
106
106
  }) => {
107
- const [c, m] = B(!1), k = J(null), { isMobile: y } = E(), { handleBlur: x, getInputValue: w, getOption: f, handleDocumentClick: v } = et(
107
+ const [c, h] = B(!1), k = J(null), { isMobile: y } = E(), { handleBlur: x, getInputValue: w, getOption: f, handleDocumentClick: g } = et(
108
108
  {
109
109
  selectedOption: s,
110
110
  onClickOption: S,
111
111
  setSelectedOption: i,
112
- setIsOpen: m,
112
+ setIsOpen: h,
113
113
  containerRef: k,
114
114
  isOpen: c,
115
115
  isMobile: y,
@@ -118,22 +118,22 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
118
118
  onBlur: d
119
119
  }
120
120
  );
121
- return D(() => (document.addEventListener("click", v), () => {
122
- document.removeEventListener("click", v);
121
+ return D(() => (document.addEventListener("click", g), () => {
122
+ document.removeEventListener("click", g);
123
123
  }), []), /* @__PURE__ */ N(
124
124
  "div",
125
125
  {
126
126
  ref: k,
127
127
  className: L(
128
128
  l.sortSelectWrapper,
129
- { [l.sortSelectWrapperError]: _ },
129
+ { [l.sortSelectWrapperError]: m },
130
130
  { [l.sortSelectWrapperTop]: C },
131
131
  t
132
132
  ),
133
133
  tabIndex: 0,
134
134
  onBlur: x,
135
135
  onClick: () => {
136
- h && h();
136
+ u && u();
137
137
  },
138
138
  children: [
139
139
  /* @__PURE__ */ N("div", { className: L(l.inputWrapper), children: [
@@ -145,10 +145,10 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
145
145
  value: w(),
146
146
  className: L(
147
147
  l.selectedOptions,
148
- { [l.selectOptionsDisabled]: u },
148
+ { [l.selectOptionsDisabled]: _ },
149
149
  { [l.selectionOptionMini]: O }
150
150
  ),
151
- onClick: () => m(!c)
151
+ onClick: () => h(!c)
152
152
  }
153
153
  ),
154
154
  /* @__PURE__ */ e(
@@ -164,7 +164,7 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
164
164
  q,
165
165
  {
166
166
  isOpen: c,
167
- emitIsOpen: m,
167
+ emitIsOpen: h,
168
168
  additionalClassModalBody: l.modalAddBody,
169
169
  additionalClass: l.selectModal,
170
170
  createPortalObj: { domNode: document.querySelector("body") },
@@ -172,7 +172,7 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
172
172
  children: [
173
173
  /* @__PURE__ */ N("div", { className: l.mobileSortHeader, children: [
174
174
  /* @__PURE__ */ e(H, { children: "Сортировка" }),
175
- /* @__PURE__ */ e("div", { onClick: () => m(!1), children: /* @__PURE__ */ e(
175
+ /* @__PURE__ */ e("div", { onClick: () => h(!1), children: /* @__PURE__ */ e(
176
176
  R,
177
177
  {
178
178
  name: "close",
@@ -221,11 +221,11 @@ 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 = _(t, m.call(this, d)));
225
225
  }
226
226
  return t;
227
227
  }
228
- function _(t) {
228
+ function m(t) {
229
229
  if (typeof t == "string" || typeof t == "number")
230
230
  return this && this[t] || t;
231
231
  if (typeof t != "object")
@@ -236,10 +236,10 @@ var K = { 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
+ s.call(t, d) && t[d] && (i = _(i, this && this[d] || d));
240
240
  return i;
241
241
  }
242
- function u(t, i) {
242
+ function _(t, i) {
243
243
  return i ? t ? t + " " + i : t + i : t;
244
244
  }
245
245
  n.exports ? (a.default = a, n.exports = a) : window.classNames = a;
@@ -250,38 +250,38 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
250
250
  disabledOptions: n = [],
251
251
  tabs: s = [],
252
252
  selectOptions: a = [],
253
- onChange: _,
254
- selectedValues: u = [],
253
+ onChange: m,
254
+ selectedValues: _ = [],
255
255
  setSelectedTabs: t,
256
256
  selectedTabs: i = [],
257
257
  onClickItem: d,
258
258
  onCLickSelect: O,
259
259
  btnName: C = "Фильтр"
260
260
  }) => {
261
- const { isMobile: S } = E(), [h, c] = B(!1), m = J(null), [k, y] = B(i), [x] = B(u), [w, f] = B(k), [v, b] = B(x), Q = (o) => {
261
+ const { isMobile: S } = E(), [u, c] = B(!1), h = J(null), [k, y] = B(i), [x] = B(_), [w, f] = B(k), [g, b] = B(x), Q = (o) => {
262
262
  if (d && d(o), n.some((W) => W.value === o.value))
263
263
  return;
264
- const g = v.some((W) => W.value === o.value) ? v.filter((W) => W.value !== o.value) : [...v, o];
265
- b(g);
264
+ const v = g.some((W) => W.value === o.value) ? g.filter((W) => W.value !== o.value) : [...g, o];
265
+ b(v);
266
266
  }, U = () => {
267
- y(s), f(s), b([]), _ && (_([]), t == null || t(s));
267
+ y(s), f(s), b([]), m && (m([]), t == null || t(s));
268
268
  }, X = () => {
269
- b(u), f(i);
269
+ b(_), f(i);
270
270
  }, j = () => {
271
271
  X(), c(!1);
272
272
  }, Y = () => {
273
- _ && (t == null || t(w), _(v)), c(!1);
273
+ m && (t == null || t(w), m(g)), c(!1);
274
274
  };
275
275
  D(() => {
276
- h || f((o) => JSON.stringify(o) !== JSON.stringify(i) ? i : o);
277
- }, [h, i]), D(() => {
278
- const o = (g) => {
279
- g.stopPropagation(), g.stopImmediatePropagation(), !(m.current && m.current.contains(g.target) && g.target !== m.current) && j();
276
+ u || f((o) => JSON.stringify(o) !== JSON.stringify(i) ? i : o);
277
+ }, [u, i]), D(() => {
278
+ const o = (v) => {
279
+ v.stopPropagation(), v.stopImmediatePropagation(), !(h.current && h.current.contains(v.target)) && j();
280
280
  };
281
- return h ? document.addEventListener("click", o, { capture: !0 }) : document.removeEventListener("click", o, { capture: !0 }), () => {
281
+ return u ? document.addEventListener("click", o, { capture: !0 }) : document.removeEventListener("click", o, { capture: !0 }), () => {
282
282
  document.removeEventListener("click", o, { capture: !0 });
283
283
  };
284
- }, [h]);
284
+ }, [u]);
285
285
  const $ = () => /* @__PURE__ */ N(F, { children: [
286
286
  /* @__PURE__ */ e(
287
287
  "div",
@@ -308,7 +308,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
308
308
  variant: "grayRow",
309
309
  addClassName: r.tabs,
310
310
  isApart: !0,
311
- children: s == null ? void 0 : s.map((o, g) => {
311
+ children: s == null ? void 0 : s.map((o, v) => {
312
312
  var z;
313
313
  const W = o.value;
314
314
  return /* @__PURE__ */ e(
@@ -325,27 +325,27 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
325
325
  (A) => A.map((M) => M.value === W ? { ...M, state: !M.state } : M)
326
326
  );
327
327
  },
328
- index: g,
328
+ index: v,
329
329
  addItemClassName: r.tabSwitcher,
330
330
  children: W
331
331
  },
332
- g
332
+ v
333
333
  );
334
334
  })
335
335
  }
336
336
  ) })
337
337
  ] }),
338
- /* @__PURE__ */ e("div", { className: r.selectWrapper, children: a == null ? void 0 : a.map((o, g) => /* @__PURE__ */ e(
338
+ /* @__PURE__ */ e("div", { className: r.selectWrapper, children: a == null ? void 0 : a.map((o, v) => /* @__PURE__ */ e(
339
339
  it,
340
340
  {
341
341
  addClassName: r.filterOption,
342
342
  disabledOptions: [],
343
343
  clickableOptions: [],
344
- selectedOptions: v,
344
+ selectedOptions: g,
345
345
  option: o,
346
346
  handleOptionClick: Q
347
347
  },
348
- g
348
+ v
349
349
  )) }),
350
350
  /* @__PURE__ */ N("div", { className: r.btnWrapper, children: [
351
351
  /* @__PURE__ */ e(
@@ -373,7 +373,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
373
373
  /* @__PURE__ */ N(
374
374
  "div",
375
375
  {
376
- ref: m,
376
+ ref: h,
377
377
  className: r.root,
378
378
  id: "modal-container",
379
379
  onClick: () => {
@@ -388,14 +388,14 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
388
388
  size: "16"
389
389
  }
390
390
  ),
391
- !S && /* @__PURE__ */ e("div", { className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: h }), children: /* @__PURE__ */ e($, {}) })
391
+ !S && /* @__PURE__ */ e("div", { className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: u }), children: /* @__PURE__ */ e($, {}) })
392
392
  ]
393
393
  }
394
394
  ),
395
395
  S && /* @__PURE__ */ e(
396
396
  q,
397
397
  {
398
- isOpen: h,
398
+ isOpen: u,
399
399
  emitIsOpen: c,
400
400
  isTransparentBack: !0,
401
401
  additionalClassModalBody: r.modalAddBody,
@@ -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-PvaQSnmC.js";
4
+ import { F as w } from "../../../FilterWithSave-BLZAUCp6.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-PvaQSnmC.js";
1
+ import { a as r } from "../../FilterWithSave-BLZAUCp6.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-PvaQSnmC.js";
16
+ import { a as z } from "../../../FilterWithSave-BLZAUCp6.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-PvaQSnmC.js";
1
+ import { S as e } from "../../FilterWithSave-BLZAUCp6.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-PvaQSnmC.js";
3
+ import { S as v } from "../../../FilterWithSave-BLZAUCp6.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-PvaQSnmC.js";
14
+ import "../../../FilterWithSave-BLZAUCp6.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-PvaQSnmC.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-BLZAUCp6.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.582",
5
+ "version": "0.0.583",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",