stone-kit 0.0.557 → 0.0.559

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";
1
+ import { jsxs as b, jsx as e, Fragment as z } from "react/jsx-runtime";
2
2
  import { forwardRef as tt, useState as B, useRef as q, useEffect as A } from "react";
3
3
  import { NewIcon as R } 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";
@@ -39,13 +39,13 @@ 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",
44
- isApart: l = !1,
42
+ children: n,
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[o], m, { [p.rootCol]: _, [p.apart]: l }), children: a }), J = tt((a, o) => {
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,
@@ -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, 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: o,
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 = ({
94
- options: a,
95
- selectedOption: o,
96
- placeholder: l = "",
93
+ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
94
+ options: n,
95
+ selectedOption: s,
96
+ placeholder: a = "",
97
97
  error: m,
98
98
  disabled: _,
99
99
  additionalClass: t = "",
@@ -104,16 +104,16 @@ 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: w, getOption: f, handleDocumentClick: y } = it(
108
108
  {
109
- selectedOption: o,
109
+ selectedOption: s,
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
- placeholder: l,
116
+ placeholder: a,
117
117
  onChange: i,
118
118
  onBlur: d
119
119
  }
@@ -142,13 +142,13 @@ 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]: _ },
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,21 +180,21 @@ 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
  );
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,
@@ -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(n) {
219
219
  (function() {
220
- var o = {}.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
- o.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
- a.exports ? (l.default = l, a.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
249
  const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
250
- disabledOptions: a = [],
251
- tabs: o = [],
252
- selectOptions: l = [],
250
+ disabledOptions: n = [],
251
+ tabs: s = [],
252
+ selectOptions: a = [],
253
253
  onChange: m,
254
254
  selectedValues: _ = [],
255
255
  setSelectedTabs: t,
@@ -258,30 +258,30 @@ 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(_), [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(o), W([]), m && (m([]), t == null || t(o));
267
+ C(s), W([]), m && (m([]), t == null || t(s));
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(w), m(y)), o(!1);
274
274
  };
275
275
  A(() => {
276
276
  h && f(i);
277
277
  }, [h]);
278
- const E = (s) => {
279
- h && !N && u.current && !u.current.contains(s.target) && n(!1);
278
+ const E = (l) => {
279
+ h && !N && u.current && !u.current.contains(l.target) && o(!1);
280
280
  };
281
281
  A(() => (document.addEventListener("click", E), () => {
282
282
  document.removeEventListener("click", E);
283
283
  }), [h]);
284
- const T = () => /* @__PURE__ */ b(P, { children: [
284
+ const T = () => /* @__PURE__ */ b(z, { children: [
285
285
  /* @__PURE__ */ e(
286
286
  "div",
287
287
  {
@@ -300,33 +300,33 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
300
300
  /* @__PURE__ */ b("div", { className: r.tabSWitcherWrapper, children: [
301
301
  /* @__PURE__ */ e("div", { className: r.switcherTitle, children: "Готовность" }),
302
302
  /* @__PURE__ */ e("div", { className: r.switcherScroll, children: /* @__PURE__ */ e(
303
- F,
303
+ P,
304
304
  {
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: s == null ? void 0 : s.map((l, g) => {
309
309
  var $;
310
- const v = s.value;
310
+ const v = l.value;
311
311
  return /* @__PURE__ */ e(
312
- F.Item,
312
+ P.Item,
313
313
  {
314
- itemsLength: o == null ? void 0 : o.length,
314
+ itemsLength: s == null ? void 0 : s.length,
315
315
  mini: !0,
316
316
  value: v,
317
317
  onClick: () => {
318
318
  },
319
- checked: (($ = g == null ? void 0 : g.find((L) => L.value === v)) == null ? void 0 : $.state) ?? !1,
319
+ checked: (($ = w == null ? void 0 : w.find((L) => L.value === v)) == null ? void 0 : $.state) ?? !1,
320
320
  onChange: () => {
321
321
  f == null || f(
322
322
  (L) => L.map((I) => I.value === v ? { ...I, state: !I.state } : I)
323
323
  );
324
324
  },
325
- index: w,
325
+ index: g,
326
326
  addItemClassName: r.tabSwitcher,
327
327
  children: v
328
328
  },
329
- w
329
+ g
330
330
  );
331
331
  })
332
332
  }
@@ -336,24 +336,23 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
336
336
  "div",
337
337
  {
338
338
  className: r.selectWrapper,
339
- onClick: (s) => s.stopPropagation(),
340
- children: l == null ? void 0 : l.map((s, w) => /* @__PURE__ */ e(
339
+ children: a == null ? void 0 : a.map((l, g) => /* @__PURE__ */ e(
341
340
  rt,
342
341
  {
343
342
  addClassName: r.filterOption,
344
343
  disabledOptions: [],
345
344
  clickableOptions: [],
346
345
  selectedOptions: y,
347
- option: s,
346
+ option: l,
348
347
  handleOptionClick: Q
349
348
  },
350
- w
349
+ g
351
350
  ))
352
351
  }
353
352
  ),
354
353
  /* @__PURE__ */ b("div", { className: r.btnWrapper, children: [
355
354
  /* @__PURE__ */ e(
356
- z,
355
+ F,
357
356
  {
358
357
  as: "button",
359
358
  variant: "gray",
@@ -363,7 +362,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
363
362
  }
364
363
  ),
365
364
  /* @__PURE__ */ e(
366
- z,
365
+ F,
367
366
  {
368
367
  as: "button",
369
368
  additionalClass: r.saveBtn,
@@ -373,14 +372,14 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
373
372
  )
374
373
  ] })
375
374
  ] });
376
- return /* @__PURE__ */ b(P, { children: [
375
+ return /* @__PURE__ */ b(z, { children: [
377
376
  /* @__PURE__ */ b(
378
377
  "div",
379
378
  {
380
379
  className: r.root,
381
380
  id: "modal-container",
382
- onClick: (s) => {
383
- s.stopPropagation(), O && O(), n(N ? (w) => !w : !0);
381
+ onClick: (l) => {
382
+ l.stopPropagation(), O && O(), o(N ? (g) => !g : !0);
384
383
  },
385
384
  children: [
386
385
  /* @__PURE__ */ e("div", { className: r.btnName, children: k }),
@@ -396,7 +395,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
396
395
  {
397
396
  ref: u,
398
397
  className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: h }),
399
- onClick: (s) => s.stopPropagation(),
398
+ onClick: (l) => l.stopPropagation(),
400
399
  children: /* @__PURE__ */ e(T, {})
401
400
  }
402
401
  )
@@ -407,7 +406,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
407
406
  H,
408
407
  {
409
408
  isOpen: h,
410
- emitIsOpen: n,
409
+ emitIsOpen: o,
411
410
  isTransparentBack: !0,
412
411
  additionalClassModalBody: r.modalAddBody,
413
412
  additionalClass: r.filterWithSaveModal,
@@ -418,6 +417,6 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
418
417
  };
419
418
  export {
420
419
  pe as F,
421
- F as S,
420
+ P as S,
422
421
  bt as a
423
422
  };
@@ -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-7jY9EYl5.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-7jY9EYl5.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-7jY9EYl5.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-7jY9EYl5.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-7jY9EYl5.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-7jY9EYl5.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-7jY9EYl5.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.559",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",