stone-kit 0.0.607 → 0.0.608

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,13 +39,13 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
39
39
  isDisabled: ht,
40
40
  grayRow: ft
41
41
  }, I = V.bind(m), vt = ({
42
- children: o,
42
+ children: a,
43
43
  variant: n = "whiteRow",
44
- isApart: a = !1,
44
+ isApart: l = !1,
45
45
  addClassName: _ = "",
46
46
  col: u = !1
47
- }) => /* @__PURE__ */ e("div", { className: I(m.root, m[n], _, { [m.rootCol]: u, [m.apart]: a }), children: o }), G = Z((o, n) => {
48
- const { isTablet: a, isDesktop: _ } = E(), {
47
+ }) => /* @__PURE__ */ e("div", { className: I(m.root, m[n], _, { [m.rootCol]: u, [m.apart]: l }), children: a }), G = Z((a, n) => {
48
+ const { isTablet: l, isDesktop: _ } = E(), {
49
49
  index: u,
50
50
  children: t,
51
51
  addItemClassName: i,
@@ -54,11 +54,11 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
54
54
  itemsLength: C = 0,
55
55
  isLongOn: O = !0,
56
56
  width: h,
57
- width_m: l,
57
+ width_m: o,
58
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 = (w, W) => w && l ? l : W && p ? p : h, f = !h && !l && !p && x;
61
+ } = a, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, N = (w, W) => w && o ? o : W && p ? p : h, f = !h && !o && !p && x;
62
62
  return /* @__PURE__ */ v("label", { className: I({ [m.isLong]: x }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
@@ -72,7 +72,7 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
72
72
  /* @__PURE__ */ e(
73
73
  "div",
74
74
  {
75
- style: { width: N(a, _) },
75
+ style: { width: N(l, _) },
76
76
  className: I(
77
77
  I(
78
78
  m.item,
@@ -91,9 +91,9 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
91
91
  });
92
92
  G.displayName = "TabSwitcherItem";
93
93
  const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
94
- options: o,
94
+ options: a,
95
95
  selectedOption: n,
96
- placeholder: a = "",
96
+ placeholder: l = "",
97
97
  error: _,
98
98
  disabled: u,
99
99
  additionalClass: t = "",
@@ -104,16 +104,16 @@ 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, p] = B(!1), S = J(null), { isMobile: k } = E(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: w } = et(
107
+ const [o, p] = B(!1), S = J(null), { isMobile: k } = E(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: w } = et(
108
108
  {
109
109
  selectedOption: n,
110
110
  onClickOption: O,
111
111
  setSelectedOption: i,
112
112
  setIsOpen: p,
113
113
  containerRef: S,
114
- isOpen: l,
114
+ isOpen: o,
115
115
  isMobile: k,
116
- placeholder: a,
116
+ placeholder: l,
117
117
  onChange: i,
118
118
  onBlur: d
119
119
  }
@@ -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]: b }
150
150
  ),
151
- onClick: () => p(!l)
151
+ onClick: () => p(!o)
152
152
  }
153
153
  ),
154
154
  /* @__PURE__ */ e(
@@ -160,10 +160,10 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
160
160
  }
161
161
  )
162
162
  ] }),
163
- l && k && /* @__PURE__ */ v(
163
+ o && k && /* @__PURE__ */ v(
164
164
  q,
165
165
  {
166
- isOpen: l,
166
+ isOpen: o,
167
167
  emitIsOpen: p,
168
168
  additionalClassModalBody: c.modalAddBody,
169
169
  additionalClass: c.selectModal,
@@ -180,11 +180,11 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
180
180
  }
181
181
  ) })
182
182
  ] }),
183
- /* @__PURE__ */ e("div", { className: c.mobileOptionList, children: o == null ? void 0 : o.map((W) => f(W)) })
183
+ /* @__PURE__ */ e("div", { className: c.mobileOptionList, children: a == null ? void 0 : a.map((W) => f(W)) })
184
184
  ]
185
185
  }
186
186
  ),
187
- l && !k && /* @__PURE__ */ e("div", { className: L(c.optionsList, { [c.optionListOnTop]: C }), children: o == null ? void 0 : o.map((W) => f(W)) })
187
+ o && !k && /* @__PURE__ */ e("div", { className: L(c.optionsList, { [c.optionListOnTop]: C }), children: a == null ? void 0 : a.map((W) => f(W)) })
188
188
  ]
189
189
  }
190
190
  );
@@ -215,10 +215,10 @@ var K = { exports: {} };
215
215
  Licensed under the MIT License (MIT), see
216
216
  http://jedwatson.github.io/classnames
217
217
  */
218
- (function(o) {
218
+ (function(a) {
219
219
  (function() {
220
220
  var n = {}.hasOwnProperty;
221
- function a() {
221
+ function l() {
222
222
  for (var t = "", i = 0; i < arguments.length; i++) {
223
223
  var d = arguments[i];
224
224
  d && (t = u(t, _.call(this, d)));
@@ -231,7 +231,7 @@ var K = { exports: {} };
231
231
  if (typeof t != "object")
232
232
  return "";
233
233
  if (Array.isArray(t))
234
- return a.apply(this, t);
234
+ return l.apply(this, t);
235
235
  if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
236
236
  return t.toString();
237
237
  var i = "";
@@ -242,14 +242,14 @@ var K = { exports: {} };
242
242
  function u(t, i) {
243
243
  return i ? t ? t + " " + i : t + i : t;
244
244
  }
245
- o.exports ? (a.default = a, o.exports = a) : window.classNames = a;
245
+ a.exports ? (l.default = l, a.exports = l) : window.classNames = l;
246
246
  })();
247
247
  })(K);
248
248
  var Et = K.exports;
249
249
  const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
250
- disabledOptions: o = [],
250
+ disabledOptions: a = [],
251
251
  tabs: n = [],
252
- selectOptions: a = [],
252
+ selectOptions: l = [],
253
253
  onChange: _,
254
254
  selectedValues: u = [],
255
255
  setSelectedTabs: t,
@@ -258,8 +258,8 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
258
258
  onCLickSelect: b,
259
259
  btnName: C = "Фильтр"
260
260
  }) => {
261
- const { isMobile: O } = E(), [h, l] = B(!1), p = J(null), [S, k] = B(i), [x] = B(u), [N, f] = B(S), [w, W] = B(x), Q = (r) => {
262
- if (d && d(r), o.some((g) => g.value === r.value))
261
+ const { isMobile: O } = E(), [h, o] = B(!1), p = J(null), [S, k] = B(i), [x] = B(u), [N, f] = B(S), [w, W] = B(x), Q = (r) => {
262
+ if (d && d(r), a.some((g) => g.value === r.value))
263
263
  return;
264
264
  const y = w.some((g) => g.value === r.value) ? w.filter((g) => g.value !== r.value) : [...w, r];
265
265
  W(y);
@@ -268,9 +268,9 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
268
268
  }, X = () => {
269
269
  W(u), f(i);
270
270
  }, j = () => {
271
- X(), l(!1);
271
+ X(), o(!1);
272
272
  }, Y = (r) => {
273
- r.stopPropagation(), _ && (t == null || t(N), _(w)), l(!1);
273
+ r.stopPropagation(), _ && (t == null || t(N), _(w)), o(!1);
274
274
  };
275
275
  D(() => {
276
276
  h || f((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
@@ -278,7 +278,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
278
278
  const r = (y) => {
279
279
  if (p.current) {
280
280
  if (console.log(y.target), console.log(p), p.current.contains(y.target)) {
281
- y.target === p.current && l(!1);
281
+ y.target === p.current && o(!1);
282
282
  return;
283
283
  }
284
284
  j();
@@ -341,7 +341,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
341
341
  }
342
342
  ) })
343
343
  ] }),
344
- /* @__PURE__ */ e("div", { className: s.selectWrapper, children: a == null ? void 0 : a.map((r, y) => /* @__PURE__ */ e(
344
+ /* @__PURE__ */ e("div", { className: s.selectWrapper, children: l == null ? void 0 : l.map((r, y) => /* @__PURE__ */ e(
345
345
  it,
346
346
  {
347
347
  addClassName: s.filterOption,
@@ -376,40 +376,40 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
376
376
  ] })
377
377
  ] });
378
378
  return /* @__PURE__ */ v(F, { children: [
379
- /* @__PURE__ */ v(
380
- "div",
381
- {
382
- ref: p,
383
- style: { position: "relative" },
384
- children: [
385
- /* @__PURE__ */ v(
386
- "div",
387
- {
388
- className: s.root,
389
- onClick: () => {
390
- b && b(), O && l((r) => !r);
391
- },
392
- children: [
393
- /* @__PURE__ */ e("div", { className: s.btnName, children: C }),
394
- /* @__PURE__ */ e(
395
- R,
396
- {
397
- name: "filter",
398
- size: "16"
399
- }
400
- )
401
- ]
402
- }
403
- ),
404
- !O && /* @__PURE__ */ e("div", { className: $t(s.desktopWrapper, { [s.desktopWrapperOpen]: h }), children: /* @__PURE__ */ e($, {}) })
405
- ]
406
- }
407
- ),
379
+ /* @__PURE__ */ v("div", { style: { position: "relative" }, children: [
380
+ /* @__PURE__ */ v(
381
+ "div",
382
+ {
383
+ className: s.root,
384
+ onClick: () => {
385
+ b && b(), O && o((r) => !r), o(!0);
386
+ },
387
+ children: [
388
+ /* @__PURE__ */ e("div", { className: s.btnName, children: C }),
389
+ /* @__PURE__ */ e(
390
+ R,
391
+ {
392
+ name: "filter",
393
+ size: "16"
394
+ }
395
+ )
396
+ ]
397
+ }
398
+ ),
399
+ !O && /* @__PURE__ */ e(
400
+ "div",
401
+ {
402
+ ref: p,
403
+ className: $t(s.desktopWrapper, { [s.desktopWrapperOpen]: h }),
404
+ children: /* @__PURE__ */ e($, {})
405
+ }
406
+ )
407
+ ] }),
408
408
  O && /* @__PURE__ */ e(
409
409
  q,
410
410
  {
411
411
  isOpen: h,
412
- emitIsOpen: l,
412
+ emitIsOpen: o,
413
413
  isTransparentBack: !0,
414
414
  additionalClassModalBody: s.modalAddBody,
415
415
  additionalClass: s.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-C0BmBoyl.js";
4
+ import { F as w } from "../../../FilterWithSave-NPMSeeOG.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-C0BmBoyl.js";
1
+ import { a as r } from "../../FilterWithSave-NPMSeeOG.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-C0BmBoyl.js";
16
+ import { a as z } from "../../../FilterWithSave-NPMSeeOG.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-C0BmBoyl.js";
1
+ import { S as e } from "../../FilterWithSave-NPMSeeOG.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-C0BmBoyl.js";
3
+ import { S as v } from "../../../FilterWithSave-NPMSeeOG.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-C0BmBoyl.js";
14
+ import "../../../FilterWithSave-NPMSeeOG.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-C0BmBoyl.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-NPMSeeOG.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.607",
5
+ "version": "0.0.608",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",