stone-kit 0.0.598 → 0.0.599

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,10 +23,10 @@ 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", 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 = {
27
27
  root: rt,
28
- text: st,
29
- textMini: nt,
28
+ text: nt,
29
+ textMini: st,
30
30
  rootCol: ot,
31
31
  item: at,
32
32
  whiteRow: lt,
@@ -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(p), vt = ({
42
- children: a,
43
- variant: n = "whiteRow",
44
- isApart: l = !1,
42
+ children: o,
43
+ variant: s = "whiteRow",
44
+ isApart: a = !1,
45
45
  addClassName: _ = "",
46
46
  col: u = !1
47
- }) => /* @__PURE__ */ e("div", { className: I(p.root, p[n], _, { [p.rootCol]: u, [p.apart]: l }), children: a }), G = Z((a, n) => {
48
- const { isTablet: l, isDesktop: _ } = E(), {
47
+ }) => /* @__PURE__ */ e("div", { className: I(p.root, p[s], _, { [p.rootCol]: u, [p.apart]: a }), children: o }), G = Z((o, s) => {
48
+ const { isTablet: a, isDesktop: _ } = E(), {
49
49
  index: u,
50
50
  children: t,
51
51
  addItemClassName: i,
@@ -54,16 +54,16 @@ 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: o,
57
+ width_m: l,
58
58
  width_l: m,
59
59
  mini: S = !1,
60
60
  ...k
61
- } = a, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, b = (w, W) => w && o ? o : W && m ? m : h, f = !h && !o && !m && x;
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 && m ? m : h, f = !h && !l && !m && x;
62
62
  return /* @__PURE__ */ v("label", { className: I({ [p.isLong]: x }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
65
65
  {
66
- ref: n,
66
+ ref: s,
67
67
  type: "checkbox",
68
68
  ...k,
69
69
  disabled: g
@@ -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: b(l, _) },
75
+ style: { width: N(a, _) },
76
76
  className: I(
77
77
  I(
78
78
  p.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: a,
95
- selectedOption: n,
96
- placeholder: l = "",
94
+ options: o,
95
+ selectedOption: s,
96
+ placeholder: a = "",
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 [o, m] = B(!1), S = J(null), { isMobile: k } = E(), { handleBlur: x, getInputValue: b, getOption: f, handleDocumentClick: w } = et(
107
+ const [l, m] = B(!1), S = J(null), { isMobile: k } = E(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: w } = et(
108
108
  {
109
- selectedOption: n,
109
+ selectedOption: s,
110
110
  onClickOption: O,
111
111
  setSelectedOption: i,
112
112
  setIsOpen: m,
113
113
  containerRef: S,
114
- isOpen: o,
114
+ isOpen: l,
115
115
  isMobile: k,
116
- placeholder: l,
116
+ placeholder: a,
117
117
  onChange: i,
118
118
  onBlur: d
119
119
  }
@@ -142,13 +142,13 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
142
142
  {
143
143
  type: "text",
144
144
  readOnly: !0,
145
- value: b(),
145
+ value: N(),
146
146
  className: L(
147
147
  c.selectedOptions,
148
148
  { [c.selectOptionsDisabled]: u },
149
149
  { [c.selectionOptionMini]: g }
150
150
  ),
151
- onClick: () => m(!o)
151
+ onClick: () => m(!l)
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
- o && k && /* @__PURE__ */ v(
163
+ l && k && /* @__PURE__ */ v(
164
164
  q,
165
165
  {
166
- isOpen: o,
166
+ isOpen: l,
167
167
  emitIsOpen: m,
168
168
  additionalClassModalBody: c.modalAddBody,
169
169
  additionalClass: c.selectModal,
@@ -180,17 +180,17 @@ 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: a == null ? void 0 : a.map((W) => f(W)) })
183
+ /* @__PURE__ */ e("div", { className: c.mobileOptionList, children: o == null ? void 0 : o.map((W) => f(W)) })
184
184
  ]
185
185
  }
186
186
  ),
187
- o && !k && /* @__PURE__ */ e("div", { className: L(c.optionsList, { [c.optionListOnTop]: C }), children: a == null ? void 0 : a.map((W) => f(W)) })
187
+ l && !k && /* @__PURE__ */ e("div", { className: L(c.optionsList, { [c.optionListOnTop]: C }), children: o == null ? void 0 : o.map((W) => f(W)) })
188
188
  ]
189
189
  }
190
190
  );
191
191
  };
192
192
  wt.displayName = "SortSelect";
193
- const yt = "_root_1wv7y_1", Wt = "_filterWithSaveModal_1wv7y_15", Nt = "_modalAddBody_1wv7y_20", bt = "_closeBtn_1wv7y_29", gt = "_btnName_1wv7y_35", Ot = "_modalTitle_1wv7y_39", St = "_tabSWitcherWrapper_1wv7y_48", kt = "_switcherTitle_1wv7y_56", Ct = "_switcherScroll_1wv7y_63", xt = "_tabs_1wv7y_67", Bt = "_selectWrapper_1wv7y_72", It = "_filterOption_1wv7y_76", Mt = "_btnWrapper_1wv7y_83", Lt = "_resetBtn_1wv7y_89", Rt = "_saveBtn_1wv7y_90", At = "_desktopWrapper_1wv7y_94", Dt = "_desktopWrapperOpen_1wv7y_117", s = {
193
+ const yt = "_root_1wv7y_1", Wt = "_filterWithSaveModal_1wv7y_15", Nt = "_modalAddBody_1wv7y_20", bt = "_closeBtn_1wv7y_29", gt = "_btnName_1wv7y_35", Ot = "_modalTitle_1wv7y_39", St = "_tabSWitcherWrapper_1wv7y_48", kt = "_switcherTitle_1wv7y_56", Ct = "_switcherScroll_1wv7y_63", xt = "_tabs_1wv7y_67", Bt = "_selectWrapper_1wv7y_72", It = "_filterOption_1wv7y_76", Mt = "_btnWrapper_1wv7y_83", Lt = "_resetBtn_1wv7y_89", Rt = "_saveBtn_1wv7y_90", At = "_desktopWrapper_1wv7y_94", Dt = "_desktopWrapperOpen_1wv7y_117", n = {
194
194
  root: yt,
195
195
  filterWithSaveModal: Wt,
196
196
  modalAddBody: Nt,
@@ -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(a) {
218
+ (function(o) {
219
219
  (function() {
220
- var n = {}.hasOwnProperty;
221
- function l() {
220
+ var s = {}.hasOwnProperty;
221
+ function a() {
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,25 +231,25 @@ var K = { exports: {} };
231
231
  if (typeof t != "object")
232
232
  return "";
233
233
  if (Array.isArray(t))
234
- return l.apply(this, t);
234
+ return a.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 = "";
238
238
  for (var d in t)
239
- n.call(t, d) && t[d] && (i = u(i, this && this[d] || d));
239
+ s.call(t, d) && t[d] && (i = u(i, this && this[d] || d));
240
240
  return i;
241
241
  }
242
242
  function u(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
+ o.exports ? (a.default = a, o.exports = a) : window.classNames = a;
246
246
  })();
247
247
  })(K);
248
248
  var Et = K.exports;
249
- const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
250
- disabledOptions: a = [],
251
- tabs: n = [],
252
- selectOptions: l = [],
249
+ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(n), de = ({
250
+ disabledOptions: o = [],
251
+ tabs: s = [],
252
+ selectOptions: a = [],
253
253
  onChange: _,
254
254
  selectedValues: u = [],
255
255
  setSelectedTabs: t,
@@ -258,31 +258,25 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
258
258
  onCLickSelect: g,
259
259
  btnName: C = "Фильтр"
260
260
  }) => {
261
- const { isMobile: O } = E(), [h, o] = B(!1), m = J(null), [S, k] = B(i), [x] = B(u), [b, f] = B(S), [w, W] = B(x), Q = (r) => {
262
- if (d && d(r), a.some((y) => y.value === r.value))
261
+ const { isMobile: O } = E(), [h, l] = B(!1), m = 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((y) => y.value === r.value))
263
263
  return;
264
- const N = w.some((y) => y.value === r.value) ? w.filter((y) => y.value !== r.value) : [...w, r];
265
- W(N);
264
+ const b = w.some((y) => y.value === r.value) ? w.filter((y) => y.value !== r.value) : [...w, r];
265
+ W(b);
266
266
  }, U = () => {
267
- k(n), f(n), W([]), _ && (_([]), t == null || t(n));
267
+ k(s), f(s), W([]), _ && (_([]), t == null || t(s));
268
268
  }, X = () => {
269
269
  W(u), f(i);
270
270
  }, j = () => {
271
- X(), o(!1);
271
+ X(), l(!1);
272
272
  }, Y = (r) => {
273
- r.stopPropagation(), _ && (t == null || t(b), _(w)), o(!1);
273
+ r.stopPropagation(), _ && (t == null || t(N), _(w)), l(!1);
274
274
  };
275
275
  D(() => {
276
276
  h || f((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
277
277
  }, [h, i]), D(() => {
278
- const r = (N) => {
279
- if (m.current) {
280
- if (m.current.contains(N.target)) {
281
- N.target === m.current && o(!1);
282
- return;
283
- }
284
- j();
285
- }
278
+ const r = (b) => {
279
+ m.current && (m.current && !m.current.contains(b.target) || j());
286
280
  };
287
281
  return h ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
288
282
  document.removeEventListener("click", r, { capture: !0 });
@@ -292,7 +286,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
292
286
  /* @__PURE__ */ e(
293
287
  "div",
294
288
  {
295
- className: s.closeBtn,
289
+ className: n.closeBtn,
296
290
  onClick: () => {
297
291
  j();
298
292
  },
@@ -305,61 +299,61 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
305
299
  )
306
300
  }
307
301
  ),
308
- /* @__PURE__ */ e("div", { className: s.modalTitle, children: "Фильтры" }),
309
- /* @__PURE__ */ v("div", { className: s.tabSWitcherWrapper, children: [
310
- /* @__PURE__ */ e("div", { className: s.switcherTitle, children: "Готовность" }),
311
- /* @__PURE__ */ e("div", { className: s.switcherScroll, children: /* @__PURE__ */ e(
302
+ /* @__PURE__ */ e("div", { className: n.modalTitle, children: "Фильтры" }),
303
+ /* @__PURE__ */ v("div", { className: n.tabSWitcherWrapper, children: [
304
+ /* @__PURE__ */ e("div", { className: n.switcherTitle, children: "Готовность" }),
305
+ /* @__PURE__ */ e("div", { className: n.switcherScroll, children: /* @__PURE__ */ e(
312
306
  T,
313
307
  {
314
308
  variant: "grayRow",
315
- addClassName: s.tabs,
309
+ addClassName: n.tabs,
316
310
  isApart: !0,
317
- children: n == null ? void 0 : n.map((r, N) => {
311
+ children: s == null ? void 0 : s.map((r, b) => {
318
312
  var z;
319
313
  const y = r.value;
320
314
  return /* @__PURE__ */ e(
321
315
  T.Item,
322
316
  {
323
- itemsLength: n == null ? void 0 : n.length,
317
+ itemsLength: s == null ? void 0 : s.length,
324
318
  mini: !0,
325
319
  value: y,
326
320
  onClick: () => {
327
321
  },
328
- checked: ((z = b == null ? void 0 : b.find((A) => A.value === y)) == null ? void 0 : z.state) ?? !1,
322
+ checked: ((z = N == null ? void 0 : N.find((A) => A.value === y)) == null ? void 0 : z.state) ?? !1,
329
323
  onChange: () => {
330
324
  f == null || f(
331
325
  (A) => A.map((M) => M.value === y ? { ...M, state: !M.state } : M)
332
326
  );
333
327
  },
334
- index: N,
335
- addItemClassName: s.tabSwitcher,
328
+ index: b,
329
+ addItemClassName: n.tabSwitcher,
336
330
  children: y
337
331
  },
338
- N
332
+ b
339
333
  );
340
334
  })
341
335
  }
342
336
  ) })
343
337
  ] }),
344
- /* @__PURE__ */ e("div", { className: s.selectWrapper, children: l == null ? void 0 : l.map((r, N) => /* @__PURE__ */ e(
338
+ /* @__PURE__ */ e("div", { className: n.selectWrapper, children: a == null ? void 0 : a.map((r, b) => /* @__PURE__ */ e(
345
339
  it,
346
340
  {
347
- addClassName: s.filterOption,
341
+ addClassName: n.filterOption,
348
342
  disabledOptions: [],
349
343
  clickableOptions: [],
350
344
  selectedOptions: w,
351
345
  option: r,
352
346
  handleOptionClick: Q
353
347
  },
354
- N
348
+ b
355
349
  )) }),
356
- /* @__PURE__ */ v("div", { className: s.btnWrapper, children: [
350
+ /* @__PURE__ */ v("div", { className: n.btnWrapper, children: [
357
351
  /* @__PURE__ */ e(
358
352
  P,
359
353
  {
360
354
  as: "button",
361
355
  variant: "gray",
362
- additionalClass: s.resetBtn,
356
+ additionalClass: n.resetBtn,
363
357
  onClick: U,
364
358
  children: "Сбросить"
365
359
  }
@@ -368,7 +362,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
368
362
  P,
369
363
  {
370
364
  as: "button",
371
- additionalClass: s.saveBtn,
365
+ additionalClass: n.saveBtn,
372
366
  onClick: Y,
373
367
  children: "Сохранить"
374
368
  }
@@ -380,12 +374,12 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
380
374
  /* @__PURE__ */ v(
381
375
  "div",
382
376
  {
383
- className: s.root,
377
+ className: n.root,
384
378
  onClick: () => {
385
- g && g(), o(O ? (r) => !r : !0);
379
+ g && g(), l(O ? (r) => !r : !0);
386
380
  },
387
381
  children: [
388
- /* @__PURE__ */ e("div", { className: s.btnName, children: C }),
382
+ /* @__PURE__ */ e("div", { className: n.btnName, children: C }),
389
383
  /* @__PURE__ */ e(
390
384
  R,
391
385
  {
@@ -400,7 +394,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
400
394
  "div",
401
395
  {
402
396
  ref: m,
403
- className: $t(s.desktopWrapper, { [s.desktopWrapperOpen]: h }),
397
+ className: $t(n.desktopWrapper, { [n.desktopWrapperOpen]: h }),
404
398
  children: /* @__PURE__ */ e($, {})
405
399
  }
406
400
  )
@@ -409,10 +403,10 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
409
403
  q,
410
404
  {
411
405
  isOpen: h,
412
- emitIsOpen: o,
406
+ emitIsOpen: l,
413
407
  isTransparentBack: !0,
414
- additionalClassModalBody: s.modalAddBody,
415
- additionalClass: s.filterWithSaveModal,
408
+ additionalClassModalBody: n.modalAddBody,
409
+ additionalClass: n.filterWithSaveModal,
416
410
  children: /* @__PURE__ */ e($, {})
417
411
  }
418
412
  )
@@ -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-B8vtAaZz.js";
4
+ import { F as w } from "../../../FilterWithSave-wqObQ7Pl.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-B8vtAaZz.js";
1
+ import { a as r } from "../../FilterWithSave-wqObQ7Pl.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-B8vtAaZz.js";
16
+ import { a as z } from "../../../FilterWithSave-wqObQ7Pl.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-B8vtAaZz.js";
1
+ import { S as e } from "../../FilterWithSave-wqObQ7Pl.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-B8vtAaZz.js";
3
+ import { S as v } from "../../../FilterWithSave-wqObQ7Pl.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-B8vtAaZz.js";
14
+ import "../../../FilterWithSave-wqObQ7Pl.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-B8vtAaZz.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-wqObQ7Pl.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.598",
5
+ "version": "0.0.599",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",