stone-kit 0.0.542 → 0.0.545

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 F } from "react/jsx-runtime";
1
+ import { jsxs as W, jsx as e, Fragment as z } from "react/jsx-runtime";
2
2
  import { forwardRef as tt, useState as B, useRef as H, useEffect as A } from "react";
3
3
  import { NewIcon as R } from "./components/NewIcon/ui/NewIcon.js";
4
4
  import { M as V } from "./Modal-BZv6nlLe.js";
5
5
  import { Text as G } from "./components/Text/ui/Text.js";
6
6
  import { c as J, g as et } from "./index-rKuIKazb.js";
7
- import { Button as P } 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";
@@ -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 rt } from "./Option-CyYM1iBJ.js";
26
- const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at = "_rootCol_2bilg_32", lt = "_item_2bilg_38", ct = "_whiteRow_2bilg_57", dt = "_firstItem_2bilg_68", pt = "_lastItem_2bilg_72", mt = "_apart_2bilg_103", _t = "_isLong_2bilg_103", ht = "_autoWidth_2bilg_128", ut = "_mini_2bilg_132", ft = "_isDisabled_2bilg_140", yt = "_grayRow_2bilg_164", p = {
26
+ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at = "_rootCol_2bilg_32", lt = "_item_2bilg_38", ct = "_whiteRow_2bilg_57", dt = "_firstItem_2bilg_68", pt = "_lastItem_2bilg_72", mt = "_apart_2bilg_103", _t = "_isLong_2bilg_103", ht = "_autoWidth_2bilg_128", ut = "_mini_2bilg_132", ft = "_isDisabled_2bilg_140", yt = "_grayRow_2bilg_164", p = {
27
27
  root: st,
28
- text: nt,
29
- textMini: ot,
28
+ text: ot,
29
+ textMini: nt,
30
30
  rootCol: at,
31
31
  item: lt,
32
32
  whiteRow: ct,
@@ -39,12 +39,12 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
39
39
  isDisabled: ft,
40
40
  grayRow: yt
41
41
  }, j = J.bind(p), vt = ({
42
- children: o,
43
- variant: s = "whiteRow",
42
+ children: n,
43
+ variant: o = "whiteRow",
44
44
  isApart: a = !1,
45
45
  addClassName: h = "",
46
46
  col: u = !1
47
- }) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], h, { [p.rootCol]: u, [p.apart]: a }), children: o }), K = tt((o, s) => {
47
+ }) => /* @__PURE__ */ e("div", { className: j(p.root, p[o], h, { [p.rootCol]: u, [p.apart]: a }), children: n }), K = tt((n, o) => {
48
48
  const { isTablet: a, isDesktop: h } = D(), {
49
49
  index: u,
50
50
  children: t,
@@ -58,12 +58,12 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
58
58
  width_l: _,
59
59
  mini: S = !1,
60
60
  ...C
61
- } = o, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, g = (y, W) => y && l ? l : W && _ ? _ : m, f = !m && !l && !_ && x;
62
- return /* @__PURE__ */ b("label", { className: j({ [p.isLong]: x }), children: [
61
+ } = n, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, w = (y, g) => y && l ? l : g && _ ? _ : m, f = !m && !l && !_ && x;
62
+ return /* @__PURE__ */ W("label", { className: j({ [p.isLong]: x }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
65
65
  {
66
- ref: s,
66
+ ref: o,
67
67
  type: "checkbox",
68
68
  ...C,
69
69
  disabled: O
@@ -72,7 +72,7 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
72
72
  /* @__PURE__ */ e(
73
73
  "div",
74
74
  {
75
- style: { width: g(a, h) },
75
+ style: { width: w(a, h) },
76
76
  className: j(
77
77
  j(
78
78
  p.item,
@@ -91,8 +91,8 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
91
91
  });
92
92
  K.displayName = "TabSwitcherItem";
93
93
  const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
94
- options: o,
95
- selectedOption: s,
94
+ options: n,
95
+ selectedOption: o,
96
96
  placeholder: a = "",
97
97
  error: h,
98
98
  disabled: u,
@@ -104,9 +104,9 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
104
104
  onClickItem: N,
105
105
  onCLickSelect: m
106
106
  }) => {
107
- const [l, _] = B(!1), S = H(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: g, getOption: f, handleDocumentClick: y } = it(
107
+ const [l, _] = B(!1), S = H(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: w, getOption: f, handleDocumentClick: y } = it(
108
108
  {
109
- selectedOption: s,
109
+ selectedOption: o,
110
110
  onClickOption: N,
111
111
  setSelectedOption: i,
112
112
  setIsOpen: _,
@@ -120,7 +120,7 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
120
120
  );
121
121
  return A(() => (document.addEventListener("click", y), () => {
122
122
  document.removeEventListener("click", y);
123
- }), []), /* @__PURE__ */ b(
123
+ }), []), /* @__PURE__ */ W(
124
124
  "div",
125
125
  {
126
126
  ref: S,
@@ -136,13 +136,13 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
136
136
  m && m();
137
137
  },
138
138
  children: [
139
- /* @__PURE__ */ b("div", { className: M(c.inputWrapper), children: [
139
+ /* @__PURE__ */ W("div", { className: M(c.inputWrapper), children: [
140
140
  /* @__PURE__ */ e(
141
141
  "input",
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]: u },
@@ -160,7 +160,7 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
160
160
  }
161
161
  )
162
162
  ] }),
163
- l && C && /* @__PURE__ */ b(
163
+ l && C && /* @__PURE__ */ W(
164
164
  V,
165
165
  {
166
166
  isOpen: l,
@@ -170,7 +170,7 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
170
170
  createPortalObj: { domNode: document.querySelector("body") },
171
171
  isTransparentBack: !0,
172
172
  children: [
173
- /* @__PURE__ */ b("div", { className: c.mobileSortHeader, children: [
173
+ /* @__PURE__ */ W("div", { className: c.mobileSortHeader, children: [
174
174
  /* @__PURE__ */ e(G, { children: "Сортировка" }),
175
175
  /* @__PURE__ */ e("div", { onClick: () => _(!1), children: /* @__PURE__ */ e(
176
176
  R,
@@ -180,20 +180,20 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
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: n == null ? void 0 : n.map((g) => f(g)) })
184
184
  ]
185
185
  }
186
186
  ),
187
- l && !C && /* @__PURE__ */ e("div", { className: M(c.optionsList, { [c.optionListOnTop]: k }), children: o == null ? void 0 : o.map((W) => f(W)) })
187
+ l && !C && /* @__PURE__ */ e("div", { className: M(c.optionsList, { [c.optionListOnTop]: k }), children: n == null ? void 0 : n.map((g) => f(g)) })
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", gt = "_filterWithSaveModal_j0tyy_15", Nt = "_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 = {
194
194
  root: Wt,
195
- filterWithSaveModal: Nt,
196
- modalAddBody: gt,
195
+ filterWithSaveModal: gt,
196
+ modalAddBody: Nt,
197
197
  closeBtn: wt,
198
198
  btnName: Ot,
199
199
  modalTitle: St,
@@ -215,9 +215,9 @@ var Q = { exports: {} };
215
215
  Licensed under the MIT License (MIT), see
216
216
  http://jedwatson.github.io/classnames
217
217
  */
218
- (function(o) {
218
+ (function(n) {
219
219
  (function() {
220
- var s = {}.hasOwnProperty;
220
+ var o = {}.hasOwnProperty;
221
221
  function a() {
222
222
  for (var t = "", i = 0; i < arguments.length; i++) {
223
223
  var d = arguments[i];
@@ -236,19 +236,19 @@ var Q = { exports: {} };
236
236
  return t.toString();
237
237
  var i = "";
238
238
  for (var d in t)
239
- s.call(t, d) && t[d] && (i = u(i, this && this[d] || d));
239
+ o.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
- o.exports ? (a.default = a, o.exports = a) : window.classNames = a;
245
+ n.exports ? (a.default = a, n.exports = a) : window.classNames = a;
246
246
  })();
247
247
  })(Q);
248
248
  var Et = Q.exports;
249
249
  const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
250
- disabledOptions: o = [],
251
- tabs: s = [],
250
+ disabledOptions: n = [],
251
+ tabs: o = [],
252
252
  selectOptions: a = [],
253
253
  onChange: h,
254
254
  selectedValues: u = [],
@@ -258,33 +258,33 @@ 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(), [m, l] = B(!1), _ = H(null), [S, C] = B(i), [x] = B(u), [g, f] = B(S), [y, W] = B(x), U = (n) => {
262
- if (d && d(n), o.some((v) => v.value === n.value))
261
+ const { isMobile: N } = D(), [m, l] = B(!1), _ = H(null), [S, C] = B(i), [x] = B(u), [w, f] = B(S), [y, g] = B(x), U = (s) => {
262
+ if (d && d(s), n.some((b) => b.value === s.value))
263
263
  return;
264
- const w = y.some((v) => v.value === n.value) ? y.filter((v) => v.value !== n.value) : [...y, n];
265
- W(w);
264
+ const v = y.some((b) => b.value === s.value) ? y.filter((b) => b.value !== s.value) : [...y, s];
265
+ g(v);
266
266
  }, X = () => {
267
- C(s), W([]), h && (h([]), t == null || t(s));
267
+ C(o), g([]), h && (h([]), t == null || t(o));
268
268
  }, Y = () => {
269
- W(u), f(i);
269
+ g(u), f(i);
270
270
  }, E = () => {
271
271
  Y(), l(!1);
272
272
  }, Z = () => {
273
- h && (t == null || t(g), h(y)), l(!1);
273
+ h && (t == null || t(w), h(y)), l(!1);
274
274
  };
275
275
  A(() => {
276
276
  m && f(i);
277
277
  }, [m]);
278
- const T = (n) => {
278
+ const T = (s) => {
279
279
  if (!m || N)
280
280
  return;
281
- const w = n.target;
282
- _.current && !_.current.contains(w) && n.target !== _.current && E();
281
+ const v = s.target;
282
+ _.current && !_.current.contains(v) && s.target !== _.current && E();
283
283
  };
284
284
  A(() => (m && !N && document.addEventListener("click", T), () => {
285
285
  document.removeEventListener("click", T);
286
286
  }), [m]);
287
- const $ = () => /* @__PURE__ */ b(F, { children: [
287
+ const $ = () => /* @__PURE__ */ W(z, { children: [
288
288
  /* @__PURE__ */ e(
289
289
  "div",
290
290
  {
@@ -300,7 +300,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
300
300
  }
301
301
  ),
302
302
  /* @__PURE__ */ e("div", { className: r.modalTitle, children: "Фильтры" }),
303
- /* @__PURE__ */ b("div", { className: r.tabSWitcherWrapper, children: [
303
+ /* @__PURE__ */ W("div", { className: r.tabSWitcherWrapper, children: [
304
304
  /* @__PURE__ */ e("div", { className: r.switcherTitle, children: "Готовность" }),
305
305
  /* @__PURE__ */ e("div", { className: r.switcherScroll, children: /* @__PURE__ */ e(
306
306
  q,
@@ -308,48 +308,55 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
308
308
  variant: "grayRow",
309
309
  addClassName: r.tabs,
310
310
  isApart: !0,
311
- children: s == null ? void 0 : s.map((n, w) => {
312
- var z;
313
- const v = n.value;
311
+ children: o == null ? void 0 : o.map((s, v) => {
312
+ var P;
313
+ const b = s.value;
314
314
  return /* @__PURE__ */ e(
315
315
  q.Item,
316
316
  {
317
- itemsLength: s == null ? void 0 : s.length,
317
+ itemsLength: o == null ? void 0 : o.length,
318
318
  mini: !0,
319
- value: v,
319
+ value: b,
320
320
  onClick: () => {
321
321
  },
322
- checked: ((z = g == null ? void 0 : g.find((L) => L.value === v)) == null ? void 0 : z.state) ?? !1,
322
+ checked: ((P = w == null ? void 0 : w.find((L) => L.value === b)) == null ? void 0 : P.state) ?? !1,
323
323
  onChange: () => {
324
324
  f == null || f(
325
- (L) => L.map((I) => I.value === v ? { ...I, state: !I.state } : I)
325
+ (L) => L.map((I) => I.value === b ? { ...I, state: !I.state } : I)
326
326
  );
327
327
  },
328
- index: w,
328
+ index: v,
329
329
  addItemClassName: r.tabSwitcher,
330
- children: v
330
+ children: b
331
331
  },
332
- w
332
+ v
333
333
  );
334
334
  })
335
335
  }
336
336
  ) })
337
337
  ] }),
338
- /* @__PURE__ */ e("div", { className: r.selectWrapper, children: a == null ? void 0 : a.map((n, w) => /* @__PURE__ */ e(
339
- rt,
338
+ /* @__PURE__ */ e(
339
+ "div",
340
340
  {
341
- addClassName: r.filterOption,
342
- disabledOptions: [],
343
- clickableOptions: [],
344
- selectedOptions: y,
345
- option: n,
346
- handleOptionClick: U
347
- },
348
- w
349
- )) }),
350
- /* @__PURE__ */ b("div", { className: r.btnWrapper, children: [
341
+ className: r.selectWrapper,
342
+ onClick: (s) => s.stopPropagation(),
343
+ children: a == null ? void 0 : a.map((s, v) => /* @__PURE__ */ e(
344
+ rt,
345
+ {
346
+ addClassName: r.filterOption,
347
+ disabledOptions: [],
348
+ clickableOptions: [],
349
+ selectedOptions: y,
350
+ option: s,
351
+ handleOptionClick: U
352
+ },
353
+ v
354
+ ))
355
+ }
356
+ ),
357
+ /* @__PURE__ */ W("div", { className: r.btnWrapper, children: [
351
358
  /* @__PURE__ */ e(
352
- P,
359
+ F,
353
360
  {
354
361
  as: "button",
355
362
  variant: "gray",
@@ -359,7 +366,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
359
366
  }
360
367
  ),
361
368
  /* @__PURE__ */ e(
362
- P,
369
+ F,
363
370
  {
364
371
  as: "button",
365
372
  additionalClass: r.saveBtn,
@@ -369,13 +376,13 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
369
376
  )
370
377
  ] })
371
378
  ] });
372
- return /* @__PURE__ */ b(F, { children: [
373
- /* @__PURE__ */ b(
379
+ return /* @__PURE__ */ W(z, { children: [
380
+ /* @__PURE__ */ W(
374
381
  "div",
375
382
  {
376
383
  className: r.root,
377
- onClick: () => {
378
- O && O(), l(N ? (n) => !n : !0);
384
+ onClick: (s) => {
385
+ s.stopPropagation(), O && O(), l(N ? (v) => !v : !0);
379
386
  },
380
387
  children: [
381
388
  /* @__PURE__ */ e("div", { className: r.btnName, children: k }),
@@ -391,7 +398,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
391
398
  {
392
399
  ref: _,
393
400
  className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: m }),
394
- onClick: (n) => n.stopPropagation(),
401
+ onClick: (s) => s.stopPropagation(),
395
402
  children: /* @__PURE__ */ e($, {})
396
403
  }
397
404
  )
@@ -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-kue5QxiL.js";
4
+ import { F as w } from "../../../FilterWithSave-CCZDqGdR.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-kue5QxiL.js";
1
+ import { a as r } from "../../FilterWithSave-CCZDqGdR.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-kue5QxiL.js";
16
+ import { a as z } from "../../../FilterWithSave-CCZDqGdR.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-kue5QxiL.js";
1
+ import { S as e } from "../../FilterWithSave-CCZDqGdR.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-kue5QxiL.js";
3
+ import { S as v } from "../../../FilterWithSave-CCZDqGdR.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-kue5QxiL.js";
14
+ import "../../../FilterWithSave-CCZDqGdR.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-kue5QxiL.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-CCZDqGdR.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.542",
5
+ "version": "0.0.545",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",