stone-kit 0.0.557 → 0.0.558

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.
@@ -39,12 +39,12 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
39
39
  isDisabled: ft,
40
40
  grayRow: yt
41
41
  }, j = G.bind(p), vt = ({
42
- children: a,
43
- variant: o = "whiteRow",
42
+ children: n,
43
+ variant: a = "whiteRow",
44
44
  isApart: l = !1,
45
45
  addClassName: m = "",
46
46
  col: _ = !1
47
- }) => /* @__PURE__ */ e("div", { className: j(p.root, p[o], m, { [p.rootCol]: _, [p.apart]: l }), children: a }), J = tt((a, o) => {
47
+ }) => /* @__PURE__ */ e("div", { className: j(p.root, p[a], m, { [p.rootCol]: _, [p.apart]: l }), children: n }), J = tt((n, a) => {
48
48
  const { isTablet: l, isDesktop: m } = D(), {
49
49
  index: _,
50
50
  children: t,
@@ -54,16 +54,16 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
54
54
  itemsLength: k = 0,
55
55
  isLongOn: N = !0,
56
56
  width: h,
57
- width_m: n,
57
+ width_m: o,
58
58
  width_l: u,
59
59
  mini: S = !1,
60
60
  ...C
61
- } = a, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, g = (y, W) => y && n ? n : W && u ? u : h, f = !h && !n && !u && x;
61
+ } = n, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, g = (y, W) => y && o ? o : W && u ? u : h, f = !h && !o && !u && x;
62
62
  return /* @__PURE__ */ b("label", { className: j({ [p.isLong]: x }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
65
65
  {
66
- ref: o,
66
+ ref: a,
67
67
  type: "checkbox",
68
68
  ...C,
69
69
  disabled: O
@@ -91,8 +91,8 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
91
91
  });
92
92
  J.displayName = "TabSwitcherItem";
93
93
  const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
94
- options: a,
95
- selectedOption: o,
94
+ options: n,
95
+ selectedOption: a,
96
96
  placeholder: l = "",
97
97
  error: m,
98
98
  disabled: _,
@@ -104,14 +104,14 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
104
104
  onClickItem: N,
105
105
  onCLickSelect: h
106
106
  }) => {
107
- const [n, u] = B(!1), S = q(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: g, getOption: f, handleDocumentClick: y } = it(
107
+ const [o, u] = B(!1), S = q(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: g, getOption: f, handleDocumentClick: y } = it(
108
108
  {
109
- selectedOption: o,
109
+ selectedOption: a,
110
110
  onClickOption: N,
111
111
  setSelectedOption: i,
112
112
  setIsOpen: u,
113
113
  containerRef: S,
114
- isOpen: n,
114
+ isOpen: o,
115
115
  isMobile: C,
116
116
  placeholder: l,
117
117
  onChange: i,
@@ -148,7 +148,7 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
148
148
  { [c.selectOptionsDisabled]: _ },
149
149
  { [c.selectionOptionMini]: O }
150
150
  ),
151
- onClick: () => u(!n)
151
+ onClick: () => u(!o)
152
152
  }
153
153
  ),
154
154
  /* @__PURE__ */ e(
@@ -160,10 +160,10 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
160
160
  }
161
161
  )
162
162
  ] }),
163
- n && C && /* @__PURE__ */ b(
163
+ o && C && /* @__PURE__ */ b(
164
164
  H,
165
165
  {
166
- isOpen: n,
166
+ isOpen: o,
167
167
  emitIsOpen: u,
168
168
  additionalClassModalBody: c.modalAddBody,
169
169
  additionalClass: c.selectModal,
@@ -180,11 +180,11 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
180
180
  }
181
181
  ) })
182
182
  ] }),
183
- /* @__PURE__ */ e("div", { className: c.mobileOptionList, children: a == null ? void 0 : a.map((W) => f(W)) })
183
+ /* @__PURE__ */ e("div", { className: c.mobileOptionList, children: n == null ? void 0 : n.map((W) => f(W)) })
184
184
  ]
185
185
  }
186
186
  ),
187
- n && !C && /* @__PURE__ */ e("div", { className: M(c.optionsList, { [c.optionListOnTop]: k }), children: a == null ? void 0 : a.map((W) => f(W)) })
187
+ o && !C && /* @__PURE__ */ e("div", { className: M(c.optionsList, { [c.optionListOnTop]: k }), children: n == null ? void 0 : n.map((W) => f(W)) })
188
188
  ]
189
189
  }
190
190
  );
@@ -215,9 +215,9 @@ var K = { exports: {} };
215
215
  Licensed under the MIT License (MIT), see
216
216
  http://jedwatson.github.io/classnames
217
217
  */
218
- (function(a) {
218
+ (function(n) {
219
219
  (function() {
220
- var o = {}.hasOwnProperty;
220
+ var a = {}.hasOwnProperty;
221
221
  function l() {
222
222
  for (var t = "", i = 0; i < arguments.length; i++) {
223
223
  var d = arguments[i];
@@ -236,19 +236,19 @@ var K = { exports: {} };
236
236
  return t.toString();
237
237
  var i = "";
238
238
  for (var d in t)
239
- o.call(t, d) && t[d] && (i = _(i, this && this[d] || d));
239
+ a.call(t, d) && t[d] && (i = _(i, this && this[d] || d));
240
240
  return i;
241
241
  }
242
242
  function _(t, i) {
243
243
  return i ? t ? t + " " + i : t + i : t;
244
244
  }
245
- a.exports ? (l.default = l, a.exports = l) : window.classNames = l;
245
+ n.exports ? (l.default = l, n.exports = l) : window.classNames = l;
246
246
  })();
247
247
  })(K);
248
248
  var Et = K.exports;
249
249
  const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
250
- disabledOptions: a = [],
251
- tabs: o = [],
250
+ disabledOptions: n = [],
251
+ tabs: a = [],
252
252
  selectOptions: l = [],
253
253
  onChange: m,
254
254
  selectedValues: _ = [],
@@ -258,25 +258,25 @@ 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(), [h, n] = B(!1), u = q(null), [S, C] = B(i), [x] = B(_), [g, f] = B(S), [y, W] = B(x), Q = (s) => {
262
- if (d && d(s), a.some((v) => v.value === s.value))
261
+ const { isMobile: N } = D(), [h, o] = B(!1), u = q(null), [S, C] = B(i), [x] = B(_), [g, f] = B(S), [y, W] = B(x), Q = (s) => {
262
+ if (d && d(s), n.some((v) => v.value === s.value))
263
263
  return;
264
264
  const w = y.some((v) => v.value === s.value) ? y.filter((v) => v.value !== s.value) : [...y, s];
265
265
  W(w);
266
266
  }, U = () => {
267
- C(o), W([]), m && (m([]), t == null || t(o));
267
+ C(a), W([]), m && (m([]), t == null || t([]));
268
268
  }, X = () => {
269
269
  W(_), f(i);
270
270
  }, Y = () => {
271
- X(), n(!1);
271
+ X(), o(!1);
272
272
  }, Z = () => {
273
- m && (t == null || t(g), m(y)), n(!1);
273
+ m && (t == null || t(g), m(y)), o(!1);
274
274
  };
275
275
  A(() => {
276
276
  h && f(i);
277
277
  }, [h]);
278
278
  const E = (s) => {
279
- h && !N && u.current && !u.current.contains(s.target) && n(!1);
279
+ h && !N && u.current && !u.current.contains(s.target) && o(!1);
280
280
  };
281
281
  A(() => (document.addEventListener("click", E), () => {
282
282
  document.removeEventListener("click", E);
@@ -305,13 +305,13 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
305
305
  variant: "grayRow",
306
306
  addClassName: r.tabs,
307
307
  isApart: !0,
308
- children: o == null ? void 0 : o.map((s, w) => {
308
+ children: a == null ? void 0 : a.map((s, w) => {
309
309
  var $;
310
310
  const v = s.value;
311
311
  return /* @__PURE__ */ e(
312
312
  F.Item,
313
313
  {
314
- itemsLength: o == null ? void 0 : o.length,
314
+ itemsLength: a == null ? void 0 : a.length,
315
315
  mini: !0,
316
316
  value: v,
317
317
  onClick: () => {
@@ -380,7 +380,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
380
380
  className: r.root,
381
381
  id: "modal-container",
382
382
  onClick: (s) => {
383
- s.stopPropagation(), O && O(), n(N ? (w) => !w : !0);
383
+ s.stopPropagation(), O && O(), o(N ? (w) => !w : !0);
384
384
  },
385
385
  children: [
386
386
  /* @__PURE__ */ e("div", { className: r.btnName, children: k }),
@@ -407,7 +407,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
407
407
  H,
408
408
  {
409
409
  isOpen: h,
410
- emitIsOpen: n,
410
+ emitIsOpen: o,
411
411
  isTransparentBack: !0,
412
412
  additionalClassModalBody: r.modalAddBody,
413
413
  additionalClass: r.filterWithSaveModal,
@@ -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-DhpeDpga.js";
4
+ import { F as w } from "../../../FilterWithSave-BpebT-iv.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-DhpeDpga.js";
1
+ import { a as r } from "../../FilterWithSave-BpebT-iv.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-DhpeDpga.js";
16
+ import { a as z } from "../../../FilterWithSave-BpebT-iv.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-DhpeDpga.js";
1
+ import { S as e } from "../../FilterWithSave-BpebT-iv.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-DhpeDpga.js";
3
+ import { S as v } from "../../../FilterWithSave-BpebT-iv.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-DhpeDpga.js";
14
+ import "../../../FilterWithSave-BpebT-iv.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-DhpeDpga.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-BpebT-iv.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.557",
5
+ "version": "0.0.558",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",