stone-kit 0.0.600 → 0.0.602

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 v, jsx as e, Fragment as T } from "react/jsx-runtime";
2
- import { forwardRef as et, useState as S, useRef as H, useEffect as j } from "react";
1
+ import { jsxs as v, jsx as e, Fragment as P } from "react/jsx-runtime";
2
+ import { forwardRef as et, useState as S, useRef as q, useEffect as j } from "react";
3
3
  import { NewIcon as D } from "./components/NewIcon/ui/NewIcon.js";
4
- import { M as V } from "./Modal-BZv6nlLe.js";
5
- import { Text as G } from "./components/Text/ui/Text.js";
6
- import { c as K, g as it } from "./index-rKuIKazb.js";
7
- import { Button as J } from "./components/Button/ui/Button.js";
4
+ import { M as H } from "./Modal-BZv6nlLe.js";
5
+ import { Text as V } from "./components/Text/ui/Text.js";
6
+ import { c as G, g as it } from "./index-rKuIKazb.js";
7
+ import { Button as T } 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,7 +23,7 @@ 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 st } from "./Option-CyYM1iBJ.js";
26
- const nt = "_root_2bilg_1", ot = "_text_2bilg_18", at = "_textMini_2bilg_26", lt = "_rootCol_2bilg_32", ct = "_item_2bilg_38", dt = "_whiteRow_2bilg_57", pt = "_firstItem_2bilg_68", mt = "_lastItem_2bilg_72", _t = "_apart_2bilg_103", ut = "_isLong_2bilg_103", ht = "_autoWidth_2bilg_128", ft = "_mini_2bilg_132", vt = "_isDisabled_2bilg_140", wt = "_grayRow_2bilg_164", p = {
26
+ const nt = "_root_2bilg_1", ot = "_text_2bilg_18", at = "_textMini_2bilg_26", lt = "_rootCol_2bilg_32", ct = "_item_2bilg_38", dt = "_whiteRow_2bilg_57", pt = "_firstItem_2bilg_68", mt = "_lastItem_2bilg_72", _t = "_apart_2bilg_103", ut = "_isLong_2bilg_103", ft = "_autoWidth_2bilg_128", ht = "_mini_2bilg_132", vt = "_isDisabled_2bilg_140", wt = "_grayRow_2bilg_164", p = {
27
27
  root: nt,
28
28
  text: ot,
29
29
  textMini: at,
@@ -34,39 +34,39 @@ const nt = "_root_2bilg_1", ot = "_text_2bilg_18", at = "_textMini_2bilg_26", lt
34
34
  lastItem: mt,
35
35
  apart: _t,
36
36
  isLong: ut,
37
- autoWidth: ht,
38
- mini: ft,
37
+ autoWidth: ft,
38
+ mini: ht,
39
39
  isDisabled: vt,
40
40
  grayRow: wt
41
- }, M = K.bind(p), yt = ({
41
+ }, M = G.bind(p), yt = ({
42
42
  children: o,
43
43
  variant: n = "whiteRow",
44
44
  isApart: a = !1,
45
45
  addClassName: m = "",
46
46
  col: _ = !1
47
- }) => /* @__PURE__ */ e("div", { className: M(p.root, p[n], m, { [p.rootCol]: _, [p.apart]: a }), children: o }), Q = et((o, n) => {
47
+ }) => /* @__PURE__ */ e("div", { className: M(p.root, p[n], m, { [p.rootCol]: _, [p.apart]: a }), children: o }), K = et((o, n) => {
48
48
  const { isTablet: a, isDesktop: m } = $(), {
49
49
  index: _,
50
50
  children: t,
51
51
  addItemClassName: i,
52
52
  addTextClass: c,
53
- disabled: b = !1,
53
+ disabled: g = !1,
54
54
  itemsLength: k = 0,
55
55
  isLongOn: N = !0,
56
- width: h,
56
+ width: w,
57
57
  width_m: d,
58
- width_l: w,
59
- mini: g = !1,
60
- ...f
61
- } = o, C = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, B = (W, u) => W && d ? d : u && w ? w : h, x = !h && !d && !w && C;
58
+ width_l: f,
59
+ mini: O = !1,
60
+ ...h
61
+ } = o, C = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, B = (W, u) => W && d ? d : u && f ? f : w, x = !w && !d && !f && C;
62
62
  return /* @__PURE__ */ v("label", { className: M({ [p.isLong]: C }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
65
65
  {
66
66
  ref: n,
67
67
  type: "checkbox",
68
- ...f,
69
- disabled: b
68
+ ...h,
69
+ disabled: g
70
70
  }
71
71
  ),
72
72
  /* @__PURE__ */ e(
@@ -78,19 +78,19 @@ const nt = "_root_2bilg_1", ot = "_text_2bilg_18", at = "_textMini_2bilg_26", lt
78
78
  p.item,
79
79
  { [p.firstItem]: _ === 0 },
80
80
  { [p.lastItem]: _ === k - 1 },
81
- { [p.isDisabled]: b },
81
+ { [p.isDisabled]: g },
82
82
  { [p.autoWidth]: x },
83
- { [p.mini]: g }
83
+ { [p.mini]: O }
84
84
  ),
85
85
  i
86
86
  ),
87
- children: /* @__PURE__ */ e(G, { className: M(p.text, { [p.textMini]: g }, c), children: t })
87
+ children: /* @__PURE__ */ e(V, { className: M(p.text, { [p.textMini]: O }, c), children: t })
88
88
  }
89
89
  )
90
90
  ] });
91
91
  });
92
- Q.displayName = "TabSwitcherItem";
93
- const q = Object.assign(yt, { Item: Q }), R = K.bind(l), Wt = ({
92
+ K.displayName = "TabSwitcherItem";
93
+ const J = Object.assign(yt, { Item: K }), R = G.bind(l), Wt = ({
94
94
  options: o,
95
95
  selectedOption: n,
96
96
  placeholder: a = "",
@@ -99,20 +99,20 @@ const q = Object.assign(yt, { Item: Q }), R = K.bind(l), Wt = ({
99
99
  additionalClass: t = "",
100
100
  onChange: i,
101
101
  onBlur: c,
102
- mini: b,
102
+ mini: g,
103
103
  openOnTop: k = !1,
104
104
  onClickItem: N,
105
- onCLickSelect: h
105
+ onCLickSelect: w
106
106
  }) => {
107
- const [d, w] = S(!1), g = H(null), { isMobile: f } = $(), { handleBlur: C, getInputValue: B, getOption: x, handleDocumentClick: W } = rt(
107
+ const [d, f] = S(!1), O = q(null), { isMobile: h } = $(), { handleBlur: C, getInputValue: B, getOption: x, handleDocumentClick: W } = rt(
108
108
  {
109
109
  selectedOption: n,
110
110
  onClickOption: N,
111
111
  setSelectedOption: i,
112
- setIsOpen: w,
113
- containerRef: g,
112
+ setIsOpen: f,
113
+ containerRef: O,
114
114
  isOpen: d,
115
- isMobile: f,
115
+ isMobile: h,
116
116
  placeholder: a,
117
117
  onChange: i,
118
118
  onBlur: c
@@ -123,7 +123,7 @@ const q = Object.assign(yt, { Item: Q }), R = K.bind(l), Wt = ({
123
123
  }), []), /* @__PURE__ */ v(
124
124
  "div",
125
125
  {
126
- ref: g,
126
+ ref: O,
127
127
  className: R(
128
128
  l.sortSelectWrapper,
129
129
  { [l.sortSelectWrapperError]: m },
@@ -133,7 +133,7 @@ const q = Object.assign(yt, { Item: Q }), R = K.bind(l), Wt = ({
133
133
  tabIndex: 0,
134
134
  onBlur: C,
135
135
  onClick: () => {
136
- h && h();
136
+ w && w();
137
137
  },
138
138
  children: [
139
139
  /* @__PURE__ */ v("div", { className: R(l.inputWrapper), children: [
@@ -146,9 +146,9 @@ const q = Object.assign(yt, { Item: Q }), R = K.bind(l), Wt = ({
146
146
  className: R(
147
147
  l.selectedOptions,
148
148
  { [l.selectOptionsDisabled]: _ },
149
- { [l.selectionOptionMini]: b }
149
+ { [l.selectionOptionMini]: g }
150
150
  ),
151
- onClick: () => w(!d)
151
+ onClick: () => f(!d)
152
152
  }
153
153
  ),
154
154
  /* @__PURE__ */ e(
@@ -160,19 +160,19 @@ const q = Object.assign(yt, { Item: Q }), R = K.bind(l), Wt = ({
160
160
  }
161
161
  )
162
162
  ] }),
163
- d && f && /* @__PURE__ */ v(
164
- V,
163
+ d && h && /* @__PURE__ */ v(
164
+ H,
165
165
  {
166
166
  isOpen: d,
167
- emitIsOpen: w,
167
+ emitIsOpen: f,
168
168
  additionalClassModalBody: l.modalAddBody,
169
169
  additionalClass: l.selectModal,
170
170
  createPortalObj: { domNode: document.querySelector("body") },
171
171
  isTransparentBack: !0,
172
172
  children: [
173
173
  /* @__PURE__ */ v("div", { className: l.mobileSortHeader, children: [
174
- /* @__PURE__ */ e(G, { children: "Сортировка" }),
175
- /* @__PURE__ */ e("div", { onClick: () => w(!1), children: /* @__PURE__ */ e(
174
+ /* @__PURE__ */ e(V, { children: "Сортировка" }),
175
+ /* @__PURE__ */ e("div", { onClick: () => f(!1), children: /* @__PURE__ */ e(
176
176
  D,
177
177
  {
178
178
  name: "close",
@@ -184,7 +184,7 @@ const q = Object.assign(yt, { Item: Q }), R = K.bind(l), Wt = ({
184
184
  ]
185
185
  }
186
186
  ),
187
- d && !f && /* @__PURE__ */ e("div", { className: R(l.optionsList, { [l.optionListOnTop]: k }), children: o == null ? void 0 : o.map((u) => x(u)) })
187
+ d && !h && /* @__PURE__ */ e("div", { className: R(l.optionsList, { [l.optionListOnTop]: k }), children: o == null ? void 0 : o.map((u) => x(u)) })
188
188
  ]
189
189
  }
190
190
  );
@@ -209,7 +209,7 @@ const Nt = "_root_1wv7y_1", Ot = "_filterWithSaveModal_1wv7y_15", bt = "_modalAd
209
209
  desktopWrapper: Et,
210
210
  desktopWrapperOpen: jt
211
211
  };
212
- var U = { exports: {} };
212
+ var Q = { exports: {} };
213
213
  /*!
214
214
  Copyright (c) 2018 Jed Watson.
215
215
  Licensed under the MIT License (MIT), see
@@ -244,8 +244,8 @@ var U = { exports: {} };
244
244
  }
245
245
  o.exports ? (a.default = a, o.exports = a) : window.classNames = a;
246
246
  })();
247
- })(U);
248
- var $t = U.exports;
247
+ })(Q);
248
+ var $t = Q.exports;
249
249
  const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
250
250
  disabledOptions: o = [],
251
251
  tabs: n = [],
@@ -255,40 +255,40 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
255
255
  setSelectedTabs: t,
256
256
  selectedTabs: i = [],
257
257
  onClickItem: c,
258
- onCLickSelect: b,
258
+ onCLickSelect: g,
259
259
  btnName: k = "Фильтр"
260
260
  }) => {
261
- const { isMobile: N } = $(), [h, d] = S(!1), [w, g] = S(!1), f = H(null), [C, B] = S(i), [x] = S(_), [W, u] = S(C), [I, A] = S(x), X = (r) => {
261
+ const { isMobile: N } = $(), [w, d] = S(!1), [f, O] = S(!1), h = q(null), [C, B] = S(i), [x] = S(_), [W, u] = S(C), [I, A] = S(x), U = (r) => {
262
262
  if (c && c(r), o.some((y) => y.value === r.value))
263
263
  return;
264
- const O = I.some((y) => y.value === r.value) ? I.filter((y) => y.value !== r.value) : [...I, r];
265
- A(O);
266
- }, Y = () => {
264
+ const b = I.some((y) => y.value === r.value) ? I.filter((y) => y.value !== r.value) : [...I, r];
265
+ A(b);
266
+ }, X = () => {
267
267
  B(n), u(n), A([]), m && (m([]), t == null || t(n));
268
- }, Z = () => {
268
+ }, Y = () => {
269
269
  A(_), u(i);
270
- }, z = () => {
271
- Z(), d(!1);
270
+ }, Z = () => {
271
+ Y(), d(!1);
272
272
  }, tt = (r) => {
273
273
  r.stopPropagation(), m && (t == null || t(W), m(I)), d(!1);
274
274
  };
275
275
  j(() => {
276
- h || u((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
277
- }, [h, i]), j(() => {
278
- const r = (O) => {
279
- f.current && (f.current && !f.current.contains(O.target) || z());
276
+ w || u((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
277
+ }, [w, i]), j(() => {
278
+ const r = (b) => {
279
+ h.current && (h.current && !h.current.contains(b.target) || O(!1));
280
280
  };
281
- return h ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
281
+ return w ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
282
282
  document.removeEventListener("click", r, { capture: !0 });
283
283
  };
284
- }, [h]);
285
- const F = () => /* @__PURE__ */ v(T, { children: [
284
+ }, [f]);
285
+ const z = () => /* @__PURE__ */ v(P, { children: [
286
286
  /* @__PURE__ */ e(
287
287
  "div",
288
288
  {
289
289
  className: s.closeBtn,
290
290
  onClick: () => {
291
- z();
291
+ Z();
292
292
  },
293
293
  children: /* @__PURE__ */ e(
294
294
  D,
@@ -303,39 +303,39 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
303
303
  /* @__PURE__ */ v("div", { className: s.tabSWitcherWrapper, children: [
304
304
  /* @__PURE__ */ e("div", { className: s.switcherTitle, children: "Готовность" }),
305
305
  /* @__PURE__ */ e("div", { className: s.switcherScroll, children: /* @__PURE__ */ e(
306
- q,
306
+ J,
307
307
  {
308
308
  variant: "grayRow",
309
309
  addClassName: s.tabs,
310
310
  isApart: !0,
311
- children: n == null ? void 0 : n.map((r, O) => {
312
- var P;
311
+ children: n == null ? void 0 : n.map((r, b) => {
312
+ var F;
313
313
  const y = r.value;
314
314
  return /* @__PURE__ */ e(
315
- q.Item,
315
+ J.Item,
316
316
  {
317
317
  itemsLength: n == null ? void 0 : n.length,
318
318
  mini: !0,
319
319
  value: y,
320
320
  onClick: () => {
321
321
  },
322
- checked: ((P = W == null ? void 0 : W.find((E) => E.value === y)) == null ? void 0 : P.state) ?? !1,
322
+ checked: ((F = W == null ? void 0 : W.find((E) => E.value === y)) == null ? void 0 : F.state) ?? !1,
323
323
  onChange: () => {
324
324
  u == null || u(
325
325
  (E) => E.map((L) => L.value === y ? { ...L, state: !L.state } : L)
326
326
  );
327
327
  },
328
- index: O,
328
+ index: b,
329
329
  addItemClassName: s.tabSwitcher,
330
330
  children: y
331
331
  },
332
- O
332
+ b
333
333
  );
334
334
  })
335
335
  }
336
336
  ) })
337
337
  ] }),
338
- /* @__PURE__ */ e("div", { className: s.selectWrapper, children: a == null ? void 0 : a.map((r, O) => /* @__PURE__ */ e(
338
+ /* @__PURE__ */ e("div", { className: s.selectWrapper, children: a == null ? void 0 : a.map((r, b) => /* @__PURE__ */ e(
339
339
  st,
340
340
  {
341
341
  addClassName: s.filterOption,
@@ -343,23 +343,23 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
343
343
  clickableOptions: [],
344
344
  selectedOptions: I,
345
345
  option: r,
346
- handleOptionClick: X
346
+ handleOptionClick: U
347
347
  },
348
- O
348
+ b
349
349
  )) }),
350
350
  /* @__PURE__ */ v("div", { className: s.btnWrapper, children: [
351
351
  /* @__PURE__ */ e(
352
- J,
352
+ T,
353
353
  {
354
354
  as: "button",
355
355
  variant: "gray",
356
356
  additionalClass: s.resetBtn,
357
- onClick: Y,
357
+ onClick: X,
358
358
  children: "Сбросить"
359
359
  }
360
360
  ),
361
361
  /* @__PURE__ */ e(
362
- J,
362
+ T,
363
363
  {
364
364
  as: "button",
365
365
  additionalClass: s.saveBtn,
@@ -369,15 +369,15 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
369
369
  )
370
370
  ] })
371
371
  ] });
372
- return /* @__PURE__ */ v(T, { children: [
372
+ return /* @__PURE__ */ v(P, { children: [
373
373
  /* @__PURE__ */ v("div", { style: { position: N ? "unset" : "relative" }, children: [
374
374
  /* @__PURE__ */ v(
375
375
  "div",
376
376
  {
377
- ref: f,
377
+ ref: h,
378
378
  className: s.root,
379
379
  onClick: () => {
380
- b && b(), N ? d((r) => !r) : g((r) => !r);
380
+ g && g(), N ? d((r) => !r) : O((r) => !r);
381
381
  },
382
382
  children: [
383
383
  /* @__PURE__ */ e("div", { className: s.btnName, children: k }),
@@ -394,27 +394,27 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
394
394
  !N && /* @__PURE__ */ e(
395
395
  "div",
396
396
  {
397
- ref: f,
398
- className: Ft(s.desktopWrapper, { [s.desktopWrapperOpen]: w }),
399
- children: /* @__PURE__ */ e(F, {})
397
+ ref: h,
398
+ className: Ft(s.desktopWrapper, { [s.desktopWrapperOpen]: f }),
399
+ children: /* @__PURE__ */ e(z, {})
400
400
  }
401
401
  )
402
402
  ] }),
403
403
  N && /* @__PURE__ */ e(
404
- V,
404
+ H,
405
405
  {
406
- isOpen: h,
406
+ isOpen: w,
407
407
  emitIsOpen: d,
408
408
  isTransparentBack: !0,
409
409
  additionalClassModalBody: s.modalAddBody,
410
410
  additionalClass: s.filterWithSaveModal,
411
- children: /* @__PURE__ */ e(F, {})
411
+ children: /* @__PURE__ */ e(z, {})
412
412
  }
413
413
  )
414
414
  ] });
415
415
  };
416
416
  export {
417
417
  me as F,
418
- q as S,
418
+ J as S,
419
419
  Wt as a
420
420
  };
@@ -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-Dt9cfrei.js";
4
+ import { F as w } from "../../../FilterWithSave-CWyPofPQ.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-Dt9cfrei.js";
1
+ import { a as r } from "../../FilterWithSave-CWyPofPQ.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-Dt9cfrei.js";
16
+ import { a as z } from "../../../FilterWithSave-CWyPofPQ.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-Dt9cfrei.js";
1
+ import { S as e } from "../../FilterWithSave-CWyPofPQ.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-Dt9cfrei.js";
3
+ import { S as v } from "../../../FilterWithSave-CWyPofPQ.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-Dt9cfrei.js";
14
+ import "../../../FilterWithSave-CWyPofPQ.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-Dt9cfrei.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-CWyPofPQ.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.600",
5
+ "version": "0.0.602",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",