stone-kit 0.0.540 → 0.0.542

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 z } from "react/jsx-runtime";
2
- import { forwardRef as tt, useState as B, useRef as q, useEffect as A } from "react";
1
+ import { jsxs as b, jsx as e, Fragment as F } from "react/jsx-runtime";
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
- 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 et } from "./index-rKuIKazb.js";
7
- import { Button as F } from "./components/Button/ui/Button.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 J, g as et } from "./index-rKuIKazb.js";
7
+ import { Button as P } 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";
@@ -38,13 +38,13 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
38
38
  mini: ut,
39
39
  isDisabled: ft,
40
40
  grayRow: yt
41
- }, j = G.bind(p), vt = ({
41
+ }, j = J.bind(p), vt = ({
42
42
  children: o,
43
43
  variant: s = "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 }), J = tt((o, s) => {
47
+ }) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], h, { [p.rootCol]: u, [p.apart]: a }), children: o }), K = tt((o, s) => {
48
48
  const { isTablet: a, isDesktop: h } = D(), {
49
49
  index: u,
50
50
  children: t,
@@ -84,13 +84,13 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
84
84
  ),
85
85
  i
86
86
  ),
87
- children: /* @__PURE__ */ e(V, { className: j(p.text, { [p.textMini]: S }, d), children: t })
87
+ children: /* @__PURE__ */ e(G, { className: j(p.text, { [p.textMini]: S }, d), children: t })
88
88
  }
89
89
  )
90
90
  ] });
91
91
  });
92
- J.displayName = "TabSwitcherItem";
93
- const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
92
+ K.displayName = "TabSwitcherItem";
93
+ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
94
94
  options: o,
95
95
  selectedOption: s,
96
96
  placeholder: a = "",
@@ -104,7 +104,7 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
104
104
  onClickItem: N,
105
105
  onCLickSelect: m
106
106
  }) => {
107
- const [l, _] = B(!1), S = q(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: g, getOption: f, handleDocumentClick: y } = it(
108
108
  {
109
109
  selectedOption: s,
110
110
  onClickOption: N,
@@ -161,7 +161,7 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
161
161
  )
162
162
  ] }),
163
163
  l && C && /* @__PURE__ */ b(
164
- H,
164
+ V,
165
165
  {
166
166
  isOpen: l,
167
167
  emitIsOpen: _,
@@ -171,7 +171,7 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
171
171
  isTransparentBack: !0,
172
172
  children: [
173
173
  /* @__PURE__ */ b("div", { className: c.mobileSortHeader, children: [
174
- /* @__PURE__ */ e(V, { children: "Сортировка" }),
174
+ /* @__PURE__ */ e(G, { children: "Сортировка" }),
175
175
  /* @__PURE__ */ e("div", { onClick: () => _(!1), children: /* @__PURE__ */ e(
176
176
  R,
177
177
  {
@@ -209,7 +209,7 @@ const Wt = "_root_j0tyy_1", Nt = "_filterWithSaveModal_j0tyy_15", gt = "_modalAd
209
209
  desktopWrapper: At,
210
210
  desktopWrapperOpen: Dt
211
211
  };
212
- var K = { 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 K = { exports: {} };
244
244
  }
245
245
  o.exports ? (a.default = a, o.exports = a) : window.classNames = a;
246
246
  })();
247
- })(K);
248
- var Et = K.exports;
247
+ })(Q);
248
+ var Et = Q.exports;
249
249
  const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
250
250
  disabledOptions: o = [],
251
251
  tabs: s = [],
@@ -258,38 +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(), [m, l] = B(!1), _ = q(null), [S, C] = B(i), [x] = B(u), [g, f] = B(S), [y, W] = B(x), Q = (n) => {
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
262
  if (d && d(n), o.some((v) => v.value === n.value))
263
263
  return;
264
264
  const w = y.some((v) => v.value === n.value) ? y.filter((v) => v.value !== n.value) : [...y, n];
265
265
  W(w);
266
- }, U = () => {
267
- C(s), W([]), h && (h([]), t == null || t(s));
268
266
  }, X = () => {
269
- W(u), f(i);
267
+ C(s), W([]), h && (h([]), t == null || t(s));
270
268
  }, Y = () => {
271
- X(), l(!1);
269
+ W(u), f(i);
270
+ }, E = () => {
271
+ Y(), l(!1);
272
272
  }, Z = () => {
273
273
  h && (t == null || t(g), h(y)), l(!1);
274
274
  };
275
275
  A(() => {
276
276
  m && f(i);
277
277
  }, [m]);
278
- const E = (n) => {
278
+ const T = (n) => {
279
279
  if (!m || N)
280
280
  return;
281
281
  const w = n.target;
282
- _.current && !_.current.contains(w) && (n.target, _.current);
282
+ _.current && !_.current.contains(w) && n.target !== _.current && E();
283
283
  };
284
- A(() => (m && !N && document.addEventListener("click", E), () => {
285
- document.removeEventListener("click", E);
284
+ A(() => (m && !N && document.addEventListener("click", T), () => {
285
+ document.removeEventListener("click", T);
286
286
  }), [m]);
287
- const T = () => /* @__PURE__ */ b(z, { children: [
287
+ const $ = () => /* @__PURE__ */ b(F, { children: [
288
288
  /* @__PURE__ */ e(
289
289
  "div",
290
290
  {
291
291
  className: r.closeBtn,
292
- onClick: Y,
292
+ onClick: E,
293
293
  children: /* @__PURE__ */ e(
294
294
  R,
295
295
  {
@@ -303,23 +303,23 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
303
303
  /* @__PURE__ */ b("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
- P,
306
+ q,
307
307
  {
308
308
  variant: "grayRow",
309
309
  addClassName: r.tabs,
310
310
  isApart: !0,
311
311
  children: s == null ? void 0 : s.map((n, w) => {
312
- var $;
312
+ var z;
313
313
  const v = n.value;
314
314
  return /* @__PURE__ */ e(
315
- P.Item,
315
+ q.Item,
316
316
  {
317
317
  itemsLength: s == null ? void 0 : s.length,
318
318
  mini: !0,
319
319
  value: v,
320
320
  onClick: () => {
321
321
  },
322
- checked: (($ = g == null ? void 0 : g.find((L) => L.value === v)) == null ? void 0 : $.state) ?? !1,
322
+ checked: ((z = g == null ? void 0 : g.find((L) => L.value === v)) == null ? void 0 : z.state) ?? !1,
323
323
  onChange: () => {
324
324
  f == null || f(
325
325
  (L) => L.map((I) => I.value === v ? { ...I, state: !I.state } : I)
@@ -343,23 +343,23 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
343
343
  clickableOptions: [],
344
344
  selectedOptions: y,
345
345
  option: n,
346
- handleOptionClick: Q
346
+ handleOptionClick: U
347
347
  },
348
348
  w
349
349
  )) }),
350
350
  /* @__PURE__ */ b("div", { className: r.btnWrapper, children: [
351
351
  /* @__PURE__ */ e(
352
- F,
352
+ P,
353
353
  {
354
354
  as: "button",
355
355
  variant: "gray",
356
356
  additionalClass: r.resetBtn,
357
- onClick: U,
357
+ onClick: X,
358
358
  children: "Сбросить"
359
359
  }
360
360
  ),
361
361
  /* @__PURE__ */ e(
362
- F,
362
+ P,
363
363
  {
364
364
  as: "button",
365
365
  additionalClass: r.saveBtn,
@@ -369,7 +369,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
369
369
  )
370
370
  ] })
371
371
  ] });
372
- return /* @__PURE__ */ b(z, { children: [
372
+ return /* @__PURE__ */ b(F, { children: [
373
373
  /* @__PURE__ */ b(
374
374
  "div",
375
375
  {
@@ -392,27 +392,27 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
392
392
  ref: _,
393
393
  className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: m }),
394
394
  onClick: (n) => n.stopPropagation(),
395
- children: /* @__PURE__ */ e(T, {})
395
+ children: /* @__PURE__ */ e($, {})
396
396
  }
397
397
  )
398
398
  ]
399
399
  }
400
400
  ),
401
401
  N && /* @__PURE__ */ e(
402
- H,
402
+ V,
403
403
  {
404
404
  isOpen: m,
405
405
  emitIsOpen: l,
406
406
  isTransparentBack: !0,
407
407
  additionalClassModalBody: r.modalAddBody,
408
408
  additionalClass: r.filterWithSaveModal,
409
- children: /* @__PURE__ */ e(T, {})
409
+ children: /* @__PURE__ */ e($, {})
410
410
  }
411
411
  )
412
412
  ] });
413
413
  };
414
414
  export {
415
415
  pe as F,
416
- P as S,
416
+ q as S,
417
417
  bt as a
418
418
  };
@@ -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-CFM70Jf0.js";
4
+ import { F as w } from "../../../FilterWithSave-kue5QxiL.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-CFM70Jf0.js";
1
+ import { a as r } from "../../FilterWithSave-kue5QxiL.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-CFM70Jf0.js";
16
+ import { a as z } from "../../../FilterWithSave-kue5QxiL.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-CFM70Jf0.js";
1
+ import { S as e } from "../../FilterWithSave-kue5QxiL.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-CFM70Jf0.js";
3
+ import { S as v } from "../../../FilterWithSave-kue5QxiL.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-CFM70Jf0.js";
14
+ import "../../../FilterWithSave-kue5QxiL.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-CFM70Jf0.js";
13
+ import { F as B, a as L, S as k } from "./FilterWithSave-kue5QxiL.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.540",
5
+ "version": "0.0.542",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",