stone-kit 0.0.558 → 0.0.560

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.
@@ -1,10 +1,10 @@
1
- import { jsxs as b, jsx as e, Fragment as P } from "react/jsx-runtime";
2
- import { forwardRef as tt, useState as B, useRef as q, useEffect as A } from "react";
3
- import { NewIcon as R } from "./components/NewIcon/ui/NewIcon.js";
1
+ import { jsxs as b, jsx as e, Fragment as z } from "react/jsx-runtime";
2
+ import { forwardRef as tt, useState as B, useRef as q, useEffect as R } from "react";
3
+ import { NewIcon as L } from "./components/NewIcon/ui/NewIcon.js";
4
4
  import { M as H } from "./Modal-BZv6nlLe.js";
5
5
  import { Text as V } from "./components/Text/ui/Text.js";
6
6
  import { c as G, g as et } from "./index-rKuIKazb.js";
7
- import { Button as z } from "./components/Button/ui/Button.js";
7
+ import { Button as F } from "./components/Button/ui/Button.js";
8
8
  import "./components/mobileButton/ui/MobileButton.js";
9
9
  import "./components/DestinationTab/ui/DestinationTab.js";
10
10
  import "./components/RoundButton/ui/RoundButton.js";
@@ -40,12 +40,12 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
40
40
  grayRow: yt
41
41
  }, j = G.bind(p), vt = ({
42
42
  children: n,
43
- variant: a = "whiteRow",
44
- isApart: l = !1,
43
+ variant: s = "whiteRow",
44
+ isApart: a = !1,
45
45
  addClassName: m = "",
46
46
  col: _ = !1
47
- }) => /* @__PURE__ */ e("div", { className: j(p.root, p[a], m, { [p.rootCol]: _, [p.apart]: l }), children: n }), J = tt((n, a) => {
48
- const { isTablet: l, isDesktop: m } = D(), {
47
+ }) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], m, { [p.rootCol]: _, [p.apart]: a }), children: n }), J = tt((n, s) => {
48
+ const { isTablet: a, isDesktop: m } = D(), {
49
49
  index: _,
50
50
  children: t,
51
51
  addItemClassName: i,
@@ -58,12 +58,12 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
58
58
  width_l: u,
59
59
  mini: S = !1,
60
60
  ...C
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;
61
+ } = n, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, w = (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: a,
66
+ ref: s,
67
67
  type: "checkbox",
68
68
  ...C,
69
69
  disabled: O
@@ -72,7 +72,7 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
72
72
  /* @__PURE__ */ e(
73
73
  "div",
74
74
  {
75
- style: { width: g(l, m) },
75
+ style: { width: w(a, m) },
76
76
  className: j(
77
77
  j(
78
78
  p.item,
@@ -90,10 +90,10 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
90
90
  ] });
91
91
  });
92
92
  J.displayName = "TabSwitcherItem";
93
- const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
93
+ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
94
94
  options: n,
95
- selectedOption: a,
96
- placeholder: l = "",
95
+ selectedOption: s,
96
+ placeholder: a = "",
97
97
  error: m,
98
98
  disabled: _,
99
99
  additionalClass: t = "",
@@ -104,21 +104,21 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
104
104
  onClickItem: N,
105
105
  onCLickSelect: h
106
106
  }) => {
107
- const [o, 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: w, getOption: f, handleDocumentClick: y } = it(
108
108
  {
109
- selectedOption: a,
109
+ selectedOption: s,
110
110
  onClickOption: N,
111
111
  setSelectedOption: i,
112
112
  setIsOpen: u,
113
113
  containerRef: S,
114
114
  isOpen: o,
115
115
  isMobile: C,
116
- placeholder: l,
116
+ placeholder: a,
117
117
  onChange: i,
118
118
  onBlur: d
119
119
  }
120
120
  );
121
- return A(() => (document.addEventListener("click", y), () => {
121
+ return R(() => (document.addEventListener("click", y), () => {
122
122
  document.removeEventListener("click", y);
123
123
  }), []), /* @__PURE__ */ b(
124
124
  "div",
@@ -142,7 +142,7 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
142
142
  {
143
143
  type: "text",
144
144
  readOnly: !0,
145
- value: g(),
145
+ value: w(),
146
146
  className: M(
147
147
  c.selectedOptions,
148
148
  { [c.selectOptionsDisabled]: _ },
@@ -152,7 +152,7 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
152
152
  }
153
153
  ),
154
154
  /* @__PURE__ */ e(
155
- R,
155
+ L,
156
156
  {
157
157
  name: "twoArrows",
158
158
  size: "24",
@@ -173,7 +173,7 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
173
173
  /* @__PURE__ */ b("div", { className: c.mobileSortHeader, children: [
174
174
  /* @__PURE__ */ e(V, { children: "Сортировка" }),
175
175
  /* @__PURE__ */ e("div", { onClick: () => u(!1), children: /* @__PURE__ */ e(
176
- R,
176
+ L,
177
177
  {
178
178
  name: "close",
179
179
  size: "20"
@@ -190,11 +190,11 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
190
190
  );
191
191
  };
192
192
  bt.displayName = "SortSelect";
193
- const Wt = "_root_j0tyy_1", Nt = "_filterWithSaveModal_j0tyy_15", gt = "_modalAddBody_j0tyy_20", wt = "_closeBtn_j0tyy_29", Ot = "_btnName_j0tyy_35", St = "_modalTitle_j0tyy_39", Ct = "_tabSWitcherWrapper_j0tyy_48", kt = "_switcherTitle_j0tyy_56", xt = "_switcherScroll_j0tyy_63", Bt = "_tabs_j0tyy_67", jt = "_selectWrapper_j0tyy_72", It = "_filterOption_j0tyy_76", Mt = "_btnWrapper_j0tyy_83", Rt = "_resetBtn_j0tyy_89", Lt = "_saveBtn_j0tyy_90", At = "_desktopWrapper_j0tyy_94", Dt = "_desktopWrapperOpen_j0tyy_116", r = {
193
+ const Wt = "_root_j0tyy_1", Nt = "_filterWithSaveModal_j0tyy_15", wt = "_modalAddBody_j0tyy_20", gt = "_closeBtn_j0tyy_29", Ot = "_btnName_j0tyy_35", St = "_modalTitle_j0tyy_39", Ct = "_tabSWitcherWrapper_j0tyy_48", kt = "_switcherTitle_j0tyy_56", xt = "_switcherScroll_j0tyy_63", Bt = "_tabs_j0tyy_67", jt = "_selectWrapper_j0tyy_72", It = "_filterOption_j0tyy_76", Mt = "_btnWrapper_j0tyy_83", Rt = "_resetBtn_j0tyy_89", Lt = "_saveBtn_j0tyy_90", At = "_desktopWrapper_j0tyy_94", Dt = "_desktopWrapperOpen_j0tyy_116", r = {
194
194
  root: Wt,
195
195
  filterWithSaveModal: Nt,
196
- modalAddBody: gt,
197
- closeBtn: wt,
196
+ modalAddBody: wt,
197
+ closeBtn: gt,
198
198
  btnName: Ot,
199
199
  modalTitle: St,
200
200
  tabSWitcherWrapper: Ct,
@@ -217,8 +217,8 @@ var K = { exports: {} };
217
217
  */
218
218
  (function(n) {
219
219
  (function() {
220
- var a = {}.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 = _(t, m.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
- a.call(t, d) && t[d] && (i = _(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
242
  function _(t, i) {
243
243
  return i ? t ? t + " " + i : t + i : t;
244
244
  }
245
- n.exports ? (l.default = l, n.exports = l) : window.classNames = l;
245
+ n.exports ? (a.default = a, n.exports = a) : window.classNames = a;
246
246
  })();
247
247
  })(K);
248
248
  var Et = K.exports;
249
- const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
249
+ const $t = /* @__PURE__ */ et(Et), Tt = $t.bind(r), pe = ({
250
250
  disabledOptions: n = [],
251
- tabs: a = [],
252
- selectOptions: l = [],
251
+ tabs: s = [],
252
+ selectOptions: a = [],
253
253
  onChange: m,
254
254
  selectedValues: _ = [],
255
255
  setSelectedTabs: t,
@@ -258,37 +258,38 @@ 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, 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))
261
+ const { isMobile: N } = D(), [h, o] = B(!1), u = q(null), [S, C] = B(i), [x] = B(_), [w, f] = B(S), [y, W] = B(x), Q = (l) => {
262
+ if (d && d(l), n.some((v) => v.value === l.value))
263
263
  return;
264
- const w = y.some((v) => v.value === s.value) ? y.filter((v) => v.value !== s.value) : [...y, s];
265
- W(w);
264
+ const g = y.some((v) => v.value === l.value) ? y.filter((v) => v.value !== l.value) : [...y, l];
265
+ W(g);
266
266
  }, U = () => {
267
- C(a), W([]), m && (m([]), t == null || t([]));
267
+ C(s), W([]), m && (m([]), t == null || t(s));
268
268
  }, X = () => {
269
269
  W(_), f(i);
270
270
  }, Y = () => {
271
271
  X(), o(!1);
272
272
  }, Z = () => {
273
- m && (t == null || t(g), m(y)), o(!1);
273
+ m && (t == null || t(w), m(y)), o(!1);
274
274
  };
275
- A(() => {
275
+ R(() => {
276
276
  h && f(i);
277
- }, [h]);
278
- const E = (s) => {
279
- h && !N && u.current && !u.current.contains(s.target) && o(!1);
277
+ }, [h]), R(() => {
278
+ }, [i]);
279
+ const E = (l) => {
280
+ h && !N && u.current && !u.current.contains(l.target) && o(!1);
280
281
  };
281
- A(() => (document.addEventListener("click", E), () => {
282
+ R(() => (document.addEventListener("click", E), () => {
282
283
  document.removeEventListener("click", E);
283
284
  }), [h]);
284
- const T = () => /* @__PURE__ */ b(P, { children: [
285
+ const $ = () => /* @__PURE__ */ b(z, { children: [
285
286
  /* @__PURE__ */ e(
286
287
  "div",
287
288
  {
288
289
  className: r.closeBtn,
289
290
  onClick: Y,
290
291
  children: /* @__PURE__ */ e(
291
- R,
292
+ L,
292
293
  {
293
294
  name: "close",
294
295
  size: "24"
@@ -300,33 +301,33 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
300
301
  /* @__PURE__ */ b("div", { className: r.tabSWitcherWrapper, children: [
301
302
  /* @__PURE__ */ e("div", { className: r.switcherTitle, children: "Готовность" }),
302
303
  /* @__PURE__ */ e("div", { className: r.switcherScroll, children: /* @__PURE__ */ e(
303
- F,
304
+ P,
304
305
  {
305
306
  variant: "grayRow",
306
307
  addClassName: r.tabs,
307
308
  isApart: !0,
308
- children: a == null ? void 0 : a.map((s, w) => {
309
- var $;
310
- const v = s.value;
309
+ children: s == null ? void 0 : s.map((l, g) => {
310
+ var T;
311
+ const v = l.value;
311
312
  return /* @__PURE__ */ e(
312
- F.Item,
313
+ P.Item,
313
314
  {
314
- itemsLength: a == null ? void 0 : a.length,
315
+ itemsLength: s == null ? void 0 : s.length,
315
316
  mini: !0,
316
317
  value: v,
317
318
  onClick: () => {
318
319
  },
319
- checked: (($ = g == null ? void 0 : g.find((L) => L.value === v)) == null ? void 0 : $.state) ?? !1,
320
+ checked: ((T = w == null ? void 0 : w.find((A) => A.value === v)) == null ? void 0 : T.state) ?? !1,
320
321
  onChange: () => {
321
322
  f == null || f(
322
- (L) => L.map((I) => I.value === v ? { ...I, state: !I.state } : I)
323
+ (A) => A.map((I) => I.value === v ? { ...I, state: !I.state } : I)
323
324
  );
324
325
  },
325
- index: w,
326
+ index: g,
326
327
  addItemClassName: r.tabSwitcher,
327
328
  children: v
328
329
  },
329
- w
330
+ g
330
331
  );
331
332
  })
332
333
  }
@@ -336,24 +337,23 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
336
337
  "div",
337
338
  {
338
339
  className: r.selectWrapper,
339
- onClick: (s) => s.stopPropagation(),
340
- children: l == null ? void 0 : l.map((s, w) => /* @__PURE__ */ e(
340
+ children: a == null ? void 0 : a.map((l, g) => /* @__PURE__ */ e(
341
341
  rt,
342
342
  {
343
343
  addClassName: r.filterOption,
344
344
  disabledOptions: [],
345
345
  clickableOptions: [],
346
346
  selectedOptions: y,
347
- option: s,
347
+ option: l,
348
348
  handleOptionClick: Q
349
349
  },
350
- w
350
+ g
351
351
  ))
352
352
  }
353
353
  ),
354
354
  /* @__PURE__ */ b("div", { className: r.btnWrapper, children: [
355
355
  /* @__PURE__ */ e(
356
- z,
356
+ F,
357
357
  {
358
358
  as: "button",
359
359
  variant: "gray",
@@ -363,7 +363,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
363
363
  }
364
364
  ),
365
365
  /* @__PURE__ */ e(
366
- z,
366
+ F,
367
367
  {
368
368
  as: "button",
369
369
  additionalClass: r.saveBtn,
@@ -373,19 +373,19 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
373
373
  )
374
374
  ] })
375
375
  ] });
376
- return /* @__PURE__ */ b(P, { children: [
376
+ return /* @__PURE__ */ b(z, { children: [
377
377
  /* @__PURE__ */ b(
378
378
  "div",
379
379
  {
380
380
  className: r.root,
381
381
  id: "modal-container",
382
- onClick: (s) => {
383
- s.stopPropagation(), O && O(), o(N ? (w) => !w : !0);
382
+ onClick: (l) => {
383
+ l.stopPropagation(), O && O(), o(N ? (g) => !g : !0);
384
384
  },
385
385
  children: [
386
386
  /* @__PURE__ */ e("div", { className: r.btnName, children: k }),
387
387
  /* @__PURE__ */ e(
388
- R,
388
+ L,
389
389
  {
390
390
  name: "filter",
391
391
  size: "16"
@@ -395,9 +395,9 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
395
395
  "div",
396
396
  {
397
397
  ref: u,
398
- className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: h }),
399
- onClick: (s) => s.stopPropagation(),
400
- children: /* @__PURE__ */ e(T, {})
398
+ className: Tt(r.desktopWrapper, { [r.desktopWrapperOpen]: h }),
399
+ onClick: (l) => l.stopPropagation(),
400
+ children: /* @__PURE__ */ e($, {})
401
401
  }
402
402
  )
403
403
  ]
@@ -411,13 +411,13 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
411
411
  isTransparentBack: !0,
412
412
  additionalClassModalBody: r.modalAddBody,
413
413
  additionalClass: r.filterWithSaveModal,
414
- children: /* @__PURE__ */ e(T, {})
414
+ children: /* @__PURE__ */ e($, {})
415
415
  }
416
416
  )
417
417
  ] });
418
418
  };
419
419
  export {
420
420
  pe as F,
421
- F as S,
421
+ P as S,
422
422
  bt as a
423
423
  };
@@ -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-BpebT-iv.js";
4
+ import { F as w } from "../../../FilterWithSave-JB10JJkz.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-BpebT-iv.js";
1
+ import { a as r } from "../../FilterWithSave-JB10JJkz.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-BpebT-iv.js";
16
+ import { a as z } from "../../../FilterWithSave-JB10JJkz.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-BpebT-iv.js";
1
+ import { S as e } from "../../FilterWithSave-JB10JJkz.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-BpebT-iv.js";
3
+ import { S as v } from "../../../FilterWithSave-JB10JJkz.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-BpebT-iv.js";
14
+ import "../../../FilterWithSave-JB10JJkz.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-BpebT-iv.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-JB10JJkz.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.558",
5
+ "version": "0.0.560",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",