stone-kit 0.0.597 → 0.0.598

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,4 +1,4 @@
1
- import { jsxs as y, jsx as e, Fragment as F } from "react/jsx-runtime";
1
+ import { jsxs as v, jsx as e, Fragment as F } from "react/jsx-runtime";
2
2
  import { forwardRef as Z, useState as B, useRef as J, useEffect as D } from "react";
3
3
  import { NewIcon as R } from "./components/NewIcon/ui/NewIcon.js";
4
4
  import { M as q } from "./Modal-BZv6nlLe.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 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", ft = "_isDisabled_2bilg_140", ht = "_grayRow_2bilg_164", p = {
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 = {
27
27
  root: rt,
28
28
  text: st,
29
29
  textMini: nt,
@@ -36,8 +36,8 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
36
36
  isLong: mt,
37
37
  autoWidth: _t,
38
38
  mini: ut,
39
- isDisabled: ft,
40
- grayRow: ht
39
+ isDisabled: ht,
40
+ grayRow: ft
41
41
  }, I = V.bind(p), vt = ({
42
42
  children: a,
43
43
  variant: n = "whiteRow",
@@ -53,13 +53,13 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
53
53
  disabled: g = !1,
54
54
  itemsLength: C = 0,
55
55
  isLongOn: O = !0,
56
- width: f,
56
+ width: h,
57
57
  width_m: o,
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 = (v, W) => v && o ? o : W && m ? m : f, h = !f && !o && !m && x;
62
- return /* @__PURE__ */ y("label", { className: I({ [p.isLong]: x }), children: [
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;
62
+ return /* @__PURE__ */ v("label", { className: I({ [p.isLong]: x }), children: [
63
63
  /* @__PURE__ */ e(
64
64
  "input",
65
65
  {
@@ -79,7 +79,7 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
79
79
  { [p.firstItem]: u === 0 },
80
80
  { [p.lastItem]: u === C - 1 },
81
81
  { [p.isDisabled]: g },
82
- { [p.autoWidth]: h },
82
+ { [p.autoWidth]: f },
83
83
  { [p.mini]: S }
84
84
  ),
85
85
  i
@@ -102,9 +102,9 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
102
102
  mini: g,
103
103
  openOnTop: C = !1,
104
104
  onClickItem: O,
105
- onCLickSelect: f
105
+ onCLickSelect: h
106
106
  }) => {
107
- const [o, m] = B(!1), S = J(null), { isMobile: k } = E(), { handleBlur: x, getInputValue: b, getOption: h, handleDocumentClick: v } = et(
107
+ const [o, m] = B(!1), S = J(null), { isMobile: k } = E(), { handleBlur: x, getInputValue: b, getOption: f, handleDocumentClick: w } = et(
108
108
  {
109
109
  selectedOption: n,
110
110
  onClickOption: O,
@@ -118,9 +118,9 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
118
118
  onBlur: d
119
119
  }
120
120
  );
121
- return D(() => (document.addEventListener("click", v), () => {
122
- document.removeEventListener("click", v);
123
- }), []), /* @__PURE__ */ y(
121
+ return D(() => (document.addEventListener("click", w), () => {
122
+ document.removeEventListener("click", w);
123
+ }), []), /* @__PURE__ */ v(
124
124
  "div",
125
125
  {
126
126
  ref: S,
@@ -133,10 +133,10 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
133
133
  tabIndex: 0,
134
134
  onBlur: x,
135
135
  onClick: () => {
136
- f && f();
136
+ h && h();
137
137
  },
138
138
  children: [
139
- /* @__PURE__ */ y("div", { className: L(c.inputWrapper), children: [
139
+ /* @__PURE__ */ v("div", { className: L(c.inputWrapper), children: [
140
140
  /* @__PURE__ */ e(
141
141
  "input",
142
142
  {
@@ -160,7 +160,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
160
160
  }
161
161
  )
162
162
  ] }),
163
- o && k && /* @__PURE__ */ y(
163
+ o && k && /* @__PURE__ */ v(
164
164
  q,
165
165
  {
166
166
  isOpen: o,
@@ -170,7 +170,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
170
170
  createPortalObj: { domNode: document.querySelector("body") },
171
171
  isTransparentBack: !0,
172
172
  children: [
173
- /* @__PURE__ */ y("div", { className: c.mobileSortHeader, children: [
173
+ /* @__PURE__ */ v("div", { className: c.mobileSortHeader, children: [
174
174
  /* @__PURE__ */ e(H, { children: "Сортировка" }),
175
175
  /* @__PURE__ */ e("div", { onClick: () => m(!1), children: /* @__PURE__ */ e(
176
176
  R,
@@ -180,11 +180,11 @@ 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) => h(W)) })
183
+ /* @__PURE__ */ e("div", { className: c.mobileOptionList, children: a == null ? void 0 : a.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) => h(W)) })
187
+ o && !k && /* @__PURE__ */ e("div", { className: L(c.optionsList, { [c.optionListOnTop]: C }), children: a == null ? void 0 : a.map((W) => f(W)) })
188
188
  ]
189
189
  }
190
190
  );
@@ -258,23 +258,23 @@ 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(), [f, o] = B(!1), m = J(null), [S, k] = B(i), [x] = B(u), [b, h] = B(S), [v, W] = B(x), Q = (r) => {
262
- if (d && d(r), a.some((w) => w.value === r.value))
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))
263
263
  return;
264
- const N = v.some((w) => w.value === r.value) ? v.filter((w) => w.value !== r.value) : [...v, r];
264
+ const N = w.some((y) => y.value === r.value) ? w.filter((y) => y.value !== r.value) : [...w, r];
265
265
  W(N);
266
266
  }, U = () => {
267
- k(n), h(n), W([]), _ && (_([]), t == null || t(n));
267
+ k(n), f(n), W([]), _ && (_([]), t == null || t(n));
268
268
  }, X = () => {
269
- W(u), h(i);
269
+ W(u), f(i);
270
270
  }, j = () => {
271
271
  X(), o(!1);
272
272
  }, Y = (r) => {
273
- r.stopPropagation(), _ && (t == null || t(b), _(v)), o(!1);
273
+ r.stopPropagation(), _ && (t == null || t(b), _(w)), o(!1);
274
274
  };
275
275
  D(() => {
276
- f || h((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
277
- }, [f, i]), D(() => {
276
+ h || f((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
277
+ }, [h, i]), D(() => {
278
278
  const r = (N) => {
279
279
  if (m.current) {
280
280
  if (m.current.contains(N.target)) {
@@ -284,11 +284,11 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
284
284
  j();
285
285
  }
286
286
  };
287
- return f ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
287
+ return h ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
288
288
  document.removeEventListener("click", r, { capture: !0 });
289
289
  };
290
- }, [f]);
291
- const $ = () => /* @__PURE__ */ y(F, { children: [
290
+ }, [h]);
291
+ const $ = () => /* @__PURE__ */ v(F, { children: [
292
292
  /* @__PURE__ */ e(
293
293
  "div",
294
294
  {
@@ -306,7 +306,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
306
306
  }
307
307
  ),
308
308
  /* @__PURE__ */ e("div", { className: s.modalTitle, children: "Фильтры" }),
309
- /* @__PURE__ */ y("div", { className: s.tabSWitcherWrapper, children: [
309
+ /* @__PURE__ */ v("div", { className: s.tabSWitcherWrapper, children: [
310
310
  /* @__PURE__ */ e("div", { className: s.switcherTitle, children: "Готовность" }),
311
311
  /* @__PURE__ */ e("div", { className: s.switcherScroll, children: /* @__PURE__ */ e(
312
312
  T,
@@ -316,24 +316,24 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
316
316
  isApart: !0,
317
317
  children: n == null ? void 0 : n.map((r, N) => {
318
318
  var z;
319
- const w = r.value;
319
+ const y = r.value;
320
320
  return /* @__PURE__ */ e(
321
321
  T.Item,
322
322
  {
323
323
  itemsLength: n == null ? void 0 : n.length,
324
324
  mini: !0,
325
- value: w,
325
+ value: y,
326
326
  onClick: () => {
327
327
  },
328
- checked: ((z = b == null ? void 0 : b.find((A) => A.value === w)) == null ? void 0 : z.state) ?? !1,
328
+ checked: ((z = b == null ? void 0 : b.find((A) => A.value === y)) == null ? void 0 : z.state) ?? !1,
329
329
  onChange: () => {
330
- h == null || h(
331
- (A) => A.map((M) => M.value === w ? { ...M, state: !M.state } : M)
330
+ f == null || f(
331
+ (A) => A.map((M) => M.value === y ? { ...M, state: !M.state } : M)
332
332
  );
333
333
  },
334
334
  index: N,
335
335
  addItemClassName: s.tabSwitcher,
336
- children: w
336
+ children: y
337
337
  },
338
338
  N
339
339
  );
@@ -347,13 +347,13 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
347
347
  addClassName: s.filterOption,
348
348
  disabledOptions: [],
349
349
  clickableOptions: [],
350
- selectedOptions: v,
350
+ selectedOptions: w,
351
351
  option: r,
352
352
  handleOptionClick: Q
353
353
  },
354
354
  N
355
355
  )) }),
356
- /* @__PURE__ */ y("div", { className: s.btnWrapper, children: [
356
+ /* @__PURE__ */ v("div", { className: s.btnWrapper, children: [
357
357
  /* @__PURE__ */ e(
358
358
  P,
359
359
  {
@@ -375,38 +375,40 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
375
375
  )
376
376
  ] })
377
377
  ] });
378
- return /* @__PURE__ */ y(F, { children: [
379
- /* @__PURE__ */ y(
380
- "div",
381
- {
382
- className: s.root,
383
- onClick: () => {
384
- g && g(), o(O ? (r) => !r : (r) => !r);
385
- },
386
- children: [
387
- /* @__PURE__ */ e("div", { className: s.btnName, children: C }),
388
- /* @__PURE__ */ e(
389
- R,
390
- {
391
- name: "filter",
392
- size: "16"
393
- }
394
- ),
395
- !O && /* @__PURE__ */ e(
396
- "div",
397
- {
398
- ref: m,
399
- className: $t(s.desktopWrapper, { [s.desktopWrapperOpen]: f }),
400
- children: /* @__PURE__ */ e($, {})
401
- }
402
- )
403
- ]
404
- }
405
- ),
378
+ return /* @__PURE__ */ v(F, { children: [
379
+ /* @__PURE__ */ v("div", { style: { position: "relative" }, children: [
380
+ /* @__PURE__ */ v(
381
+ "div",
382
+ {
383
+ className: s.root,
384
+ onClick: () => {
385
+ g && g(), o(O ? (r) => !r : !0);
386
+ },
387
+ children: [
388
+ /* @__PURE__ */ e("div", { className: s.btnName, children: C }),
389
+ /* @__PURE__ */ e(
390
+ R,
391
+ {
392
+ name: "filter",
393
+ size: "16"
394
+ }
395
+ )
396
+ ]
397
+ }
398
+ ),
399
+ !O && /* @__PURE__ */ e(
400
+ "div",
401
+ {
402
+ ref: m,
403
+ className: $t(s.desktopWrapper, { [s.desktopWrapperOpen]: h }),
404
+ children: /* @__PURE__ */ e($, {})
405
+ }
406
+ )
407
+ ] }),
406
408
  O && /* @__PURE__ */ e(
407
409
  q,
408
410
  {
409
- isOpen: f,
411
+ isOpen: h,
410
412
  emitIsOpen: o,
411
413
  isTransparentBack: !0,
412
414
  additionalClassModalBody: s.modalAddBody,
@@ -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-BzpMtZNt.js";
4
+ import { F as w } from "../../../FilterWithSave-B8vtAaZz.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-BzpMtZNt.js";
1
+ import { a as r } from "../../FilterWithSave-B8vtAaZz.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-BzpMtZNt.js";
16
+ import { a as z } from "../../../FilterWithSave-B8vtAaZz.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-BzpMtZNt.js";
1
+ import { S as e } from "../../FilterWithSave-B8vtAaZz.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-BzpMtZNt.js";
3
+ import { S as v } from "../../../FilterWithSave-B8vtAaZz.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-BzpMtZNt.js";
14
+ import "../../../FilterWithSave-B8vtAaZz.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-BzpMtZNt.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-B8vtAaZz.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.597",
5
+ "version": "0.0.598",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",