stone-kit 0.0.1028 → 0.0.1029

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.
Files changed (82) hide show
  1. package/dist/App.js +4 -4
  2. package/dist/{Option-rFBMQAPk.js → Option-CtwUzW8a.js} +1 -1
  3. package/dist/Router.js +1 -1
  4. package/dist/chunk-4WY6JWTD-BeveLKf_.js +1582 -0
  5. package/dist/components/Button/ui/Button.js +1 -1
  6. package/dist/components/CheckBoxNew/CheckBoxNew.js +1 -1
  7. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +1 -1
  8. package/dist/components/CommercialLotCard/CommercialLotCard.js +1 -1
  9. package/dist/components/CommercialLotCard/components/Price/Price.js +1 -1
  10. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +1 -1
  11. package/dist/components/DestinationTab/ui/DestinationTab.js +1 -1
  12. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +1 -1
  13. package/dist/components/FilterWithSave/ui/FilterWithSave.js +9 -14
  14. package/dist/components/Flex/ui/Flex.js +1 -1
  15. package/dist/components/FormModal/ui/ModalForm.js +656 -641
  16. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  17. package/dist/components/Input/ui/Input.js +1 -22
  18. package/dist/components/Logo/ui/Logo.js +1 -1
  19. package/dist/components/LotCard/hooks/useLotCard.js +2 -2
  20. package/dist/components/LotCard/ui/LotCard.js +2 -2
  21. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  22. package/dist/components/MetroLabel/ui/MetroLabel.js +1 -1
  23. package/dist/components/MetroTag/ui/MetroTag.js +1 -1
  24. package/dist/components/NewIcon/ui/NewIcon.js +3 -3
  25. package/dist/components/RoundButton/ui/RoundButton.js +1 -1
  26. package/dist/components/Select/ui/Category.js +2 -2
  27. package/dist/components/Select/ui/Option.js +2 -2
  28. package/dist/components/Select/ui/Select.js +2 -2
  29. package/dist/components/SliderNavigation/ui/SliderNavigation.js +1 -1
  30. package/dist/components/SortSelect/hooks/useSortSelect.d.ts +1 -1
  31. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  32. package/dist/components/SortSelect/ui/SortSelect.js +12 -12
  33. package/dist/components/Switcher/ui/Switcher.js +1 -1
  34. package/dist/components/TabSelect/ui/TabSelect.d.ts +12 -7
  35. package/dist/components/TabSelect/ui/TabSelect.js +43 -38
  36. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +4 -3
  37. package/dist/components/TabSwitcher/ui/TabSwitcher.js +75 -73
  38. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -1
  39. package/dist/components/Tag/ui/Tag.js +1 -1
  40. package/dist/components/Text/ui/Text.js +1 -1
  41. package/dist/components/TextArea/TextArea.d.ts +8 -0
  42. package/dist/components/TextArea/TextArea.js +18 -12
  43. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  44. package/dist/{index-3E04UaC2.js → index-BJwl9stn.js} +785 -784
  45. package/dist/{index-B2JRaoNz.js → index-YnD2EP-S.js} +0 -5
  46. package/dist/layout/components/Header/Header.js +1 -1
  47. package/dist/layout/components/Menu.js +107 -4
  48. package/dist/pages/ButtonsPage/Buttons.js +49 -60
  49. package/dist/stone-kit.css +1 -1
  50. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
  51. package/dist/stories/shared/ui/Button/Button.stories.js +1 -1
  52. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  53. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  54. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  55. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  56. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  57. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
  58. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +1 -1
  59. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  60. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  61. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  62. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  63. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  64. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  65. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  66. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  67. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
  68. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  69. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  70. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  71. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
  72. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  73. package/dist/{useLotCard-DG9doKCX.js → useLotCard-CYcRSogE.js} +1 -1
  74. package/dist/{useSortSelect-C72ddcYI.js → useSortSelect-Cy3od4ig.js} +6 -6
  75. package/package.json +22 -31
  76. package/dist/ButtonState.module-DtW3aevR.js +0 -8
  77. package/dist/Menu-CdJTzN7T.js +0 -494
  78. package/dist/components/TextArea/TextArea.types.d.ts +0 -10
  79. package/dist/components/TextArea/TextArea.types.js +0 -1
  80. package/dist/index-CBdtKu-u.js +0 -891
  81. package/dist/pages/ButtonsPage/ButtonState/ButtonState.d.ts +0 -6
  82. package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +0 -121
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { c } from "../../../index-B2JRaoNz.js";
2
+ import { c } from "../../../index-YnD2EP-S.js";
3
3
  const m = "_root_1dq3m_1", o = {
4
4
  root: m
5
5
  }, n = c.bind(o), p = ({ children: s, addClassName: t }) => /* @__PURE__ */ r("div", { className: n(o.root, t), children: s });
@@ -1,6 +1,6 @@
1
1
  import { jsx as et, jsxs as Vt, Fragment as ne } from "react/jsx-runtime";
2
2
  import J, { forwardRef as ae } from "react";
3
- import { g as ue, c as oe } from "../../../index-B2JRaoNz.js";
3
+ import { g as ue, c as oe } from "../../../index-YnD2EP-S.js";
4
4
  const le = "_inputWrapper_1ln65_10", he = "_inputIMask_1ln65_37", pe = "_inputWrapperPost_1ln65_41", ce = "_inputWrapperPre_1ln65_42", de = "_light_1ln65_58", fe = "_gray_1ln65_96", _e = "_dark_1ln65_128", me = "_transparent_1ln65_169", ge = "_inputWrapperError_1ln65_227", ke = "_inputWrapperErrorWithoutBorder_1ln65_241", ve = "_inputWrapperErrorDark_1ln65_252", Ee = "_checkBox_1ln65_266", M = {
5
5
  "auto-width": "_auto-width_1ln65_1",
6
6
  "full-width": "_full-width_1ln65_6",
@@ -2384,14 +2384,6 @@ try {
2384
2384
  } catch {
2385
2385
  }
2386
2386
  var ut = { exports: {} }, ot = { exports: {} }, I = {};
2387
- /** @license React v16.13.1
2388
- * react-is.production.min.js
2389
- *
2390
- * Copyright (c) Facebook, Inc. and its affiliates.
2391
- *
2392
- * This source code is licensed under the MIT license found in the
2393
- * LICENSE file in the root directory of this source tree.
2394
- */
2395
2387
  var Nt;
2396
2388
  function Be() {
2397
2389
  if (Nt) return I;
@@ -2459,14 +2451,6 @@ function Be() {
2459
2451
  }, I.typeOf = P, I;
2460
2452
  }
2461
2453
  var R = {};
2462
- /** @license React v16.13.1
2463
- * react-is.development.js
2464
- *
2465
- * Copyright (c) Facebook, Inc. and its affiliates.
2466
- *
2467
- * This source code is licensed under the MIT license found in the
2468
- * LICENSE file in the root directory of this source tree.
2469
- */
2470
2454
  var jt;
2471
2455
  function Me() {
2472
2456
  return jt || (jt = 1, process.env.NODE_ENV !== "production" && (function() {
@@ -2554,11 +2538,6 @@ var Ut;
2554
2538
  function ee() {
2555
2539
  return Ut || (Ut = 1, process.env.NODE_ENV === "production" ? ot.exports = Be() : ot.exports = Me()), ot.exports;
2556
2540
  }
2557
- /*
2558
- object-assign
2559
- (c) Sindre Sorhus
2560
- @license MIT
2561
- */
2562
2541
  var xt, zt;
2563
2542
  function Oe() {
2564
2543
  if (zt) return xt;
@@ -1,5 +1,5 @@
1
1
  import { jsxs as u, jsx as _ } from "react/jsx-runtime";
2
- import { c as f } from "../../../index-B2JRaoNz.js";
2
+ import { c as f } from "../../../index-YnD2EP-S.js";
3
3
  import { logoVariant as r } from "./Logo.types.js";
4
4
  import { Text as w } from "../../Text/ui/Text.js";
5
5
  const m = "_wrapper_dhuso_1", a = "_logo_dhuso_7", p = "_logoValue_dhuso_12", h = "_logoDom_dhuso_16", n = "_logoOffice_dhuso_21", d = "_logoNewOffice_dhuso_26", k = "_logoNewDom_dhuso_31", i = "_logoRealty_dhuso_36", N = "_wrapperBetween_dhuso_41", D = "_uk_dhuso_46", O = "_uk_black_dhuso_53", b = "_uk_white_dhuso_56", o = {
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { u as f } from "../../../useLotCard-DG9doKCX.js";
3
+ import { u as f } from "../../../useLotCard-CYcRSogE.js";
4
4
  import "../utils/getTagsFeatures.js";
5
- import "../../../index-B2JRaoNz.js";
5
+ import "../../../index-YnD2EP-S.js";
6
6
  import "../utils/checkBedroomsCount.js";
7
7
  import "../utils/monthlyPayment.js";
8
8
  import "../../../shared/useClientWidth.js";
@@ -1,8 +1,8 @@
1
1
  import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { c as Y } from "../../../index-B2JRaoNz.js";
2
+ import { c as Y } from "../../../index-YnD2EP-S.js";
3
3
  import { checkLargeOffice as k } from "../../../shared/checkLargeOffice.js";
4
4
  import { sclMillion as I } from "../../../shared/mlnRound.js";
5
- import { s as e, u as K } from "../../../useLotCard-DG9doKCX.js";
5
+ import { s as e, u as K } from "../../../useLotCard-CYcRSogE.js";
6
6
  import { formatPrice as m } from "../utils/formatPrice.js";
7
7
  import { Tag as f } from "../../Tag/ui/Tag.js";
8
8
  import { Button as w } from "../../Button/ui/Button.js";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
- import { c } from "../../../index-B2JRaoNz.js";
2
+ import { c } from "../../../index-YnD2EP-S.js";
3
3
  const l = "_root_7lz45_12", s = "_projectRoot_7lz45_22", i = "_lotImageWrapper_7lz45_26", a = "_pulsing_7lz45_1", n = "_projectLotImageWrapper_7lz45_37", _ = "_lotInfoWrapper_7lz45_41", m = "_projectLotInfoWrapper_7lz45_48", P = "_infoHeader_7lz45_52", L = "_projectInfoHeader_7lz45_60", d = "_decor_7lz45_64", W = "_lotPropertyListMobile_7lz45_71", j = "_lotPropertyItem_7lz45_79", I = "_projectLotPropertyItem_7lz45_104", y = "_lotPropertyListDesktop_7lz45_109", z = "_lotPriceWrapper_7lz45_113", v = "_projectLotPriceWrapper_7lz45_117", D = "_discountWrapper_7lz45_121", f = "_lotPricePerMetr_7lz45_134", N = "_btnWrapper_7lz45_139", u = "_projectBtnWrapper_7lz45_155", M = "_projectDecor_7lz45_201", k = "_projectLotPropertyListMobile_7lz45_210", b = "_projectLotPropertyListDesktop_7lz45_218", g = "_lotPropertyItemDesktop_7lz45_221", h = "_projectDiscountWrapper_7lz45_232", H = "_discountPrice_7lz45_235", x = "_projectLotPricePerMetr_7lz45_255", t = {
4
4
  root: l,
5
5
  projectRoot: s,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as l, jsx as s } from "react/jsx-runtime";
2
- import { c as i } from "../../../index-B2JRaoNz.js";
2
+ import { c as i } from "../../../index-YnD2EP-S.js";
3
3
  import { NewIcon as _ } from "../../NewIcon/ui/NewIcon.js";
4
4
  const f = "_root_1ml5t_1", d = "_metroColor_1ml5t_15", N = "_route_1ml5t_25", p = "_auto_1ml5t_35", x = "_full_1ml5t_39", t = {
5
5
  root: f,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as e, jsx as i } from "react/jsx-runtime";
2
- import { c as M } from "../../../index-B2JRaoNz.js";
2
+ import { c as M } from "../../../index-YnD2EP-S.js";
3
3
  import { NewIcon as l } from "../../NewIcon/ui/NewIcon.js";
4
4
  const w = "_root_16fjr_1", N = "_iconsWrapper_16fjr_17", W = "_metroColor_16fjr_27", x = "_route_16fjr_37", B = "_auto_16fjr_47", T = "_full_16fjr_51", $ = "_transparent_16fjr_55", C = "_long_16fjr_60", b = "_mini_16fjr_64", v = "_metroColorMini_16fjr_68", y = "_routeMini_16fjr_77", I = "_withBg_16fjr_90", z = "_withWhiteBg_16fjr_94", o = {
5
5
  root: w,
@@ -3,7 +3,7 @@ import * as e from "react";
3
3
  import { forwardRef as o } from "react";
4
4
  import { F as m } from "../../../PinTrans-D6OZq76b.js";
5
5
  import { F as h } from "../../../SmallFilter-C-VKnbkP.js";
6
- import { c as d } from "../../../index-B2JRaoNz.js";
6
+ import { c as d } from "../../../index-YnD2EP-S.js";
7
7
  const C = ({
8
8
  title: t,
9
9
  titleId: l,
@@ -232,11 +232,11 @@ const C = ({
232
232
  title: t,
233
233
  titleId: l,
234
234
  ...r
235
- }, a) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M7.74919 7.75061H8.24919M7.74919 8.25061H8.24919M3.08252 7.75061H3.58252M3.08252 8.25061H3.58252M12.4159 7.75061H12.9159M12.4159 8.25061H12.9159M8.66602 8.00065C8.66602 8.36884 8.36754 8.66732 7.99935 8.66732C7.63116 8.66732 7.33268 8.36884 7.33268 8.00065C7.33268 7.63246 7.63116 7.33398 7.99935 7.33398C8.36754 7.33398 8.66602 7.63246 8.66602 8.00065ZM3.99935 8.00065C3.99935 8.36884 3.70087 8.66732 3.33268 8.66732C2.96449 8.66732 2.66602 8.36884 2.66602 8.00065C2.66602 7.63246 2.96449 7.33398 3.33268 7.33398C3.70087 7.33398 3.99935 7.63246 3.99935 8.00065ZM13.3327 8.00065C13.3327 8.36884 13.0342 8.66732 12.666 8.66732C12.2978 8.66732 11.9993 8.36884 11.9993 8.00065C11.9993 7.63246 12.2978 7.33398 12.666 7.33398C13.0342 7.33398 13.3327 7.63246 13.3327 8.00065Z", stroke: "white", strokeLinecap: "round" })), p0 = o(E0), u0 = ({
235
+ }, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M7.74919 7.75061H8.24919M7.74919 8.25061H8.24919M3.08252 7.75061H3.58252M3.08252 8.25061H3.58252M12.4159 7.75061H12.9159M12.4159 8.25061H12.9159M8.66602 8.00065C8.66602 8.36884 8.36754 8.66732 7.99935 8.66732C7.63116 8.66732 7.33268 8.36884 7.33268 8.00065C7.33268 7.63246 7.63116 7.33398 7.99935 7.33398C8.36754 7.33398 8.66602 7.63246 8.66602 8.00065ZM3.99935 8.00065C3.99935 8.36884 3.70087 8.66732 3.33268 8.66732C2.96449 8.66732 2.66602 8.36884 2.66602 8.00065C2.66602 7.63246 2.96449 7.33398 3.33268 7.33398C3.70087 7.33398 3.99935 7.63246 3.99935 8.00065ZM13.3327 8.00065C13.3327 8.36884 13.0342 8.66732 12.666 8.66732C12.2978 8.66732 11.9993 8.36884 11.9993 8.00065C11.9993 7.63246 12.2978 7.33398 12.666 7.33398C13.0342 7.33398 13.3327 7.63246 13.3327 8.00065Z", stroke: "currentColor", strokeLinecap: "round" })), p0 = o(E0), u0 = ({
236
236
  title: t,
237
237
  titleId: l,
238
238
  ...r
239
- }, a) => /* @__PURE__ */ e.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M8.33203 5L13.332 10L8.33203 15", stroke: "#141416", strokeWidth: 1.5 })), x0 = o(u0), i = {}, M0 = {
239
+ }, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M8.33203 5L13.332 10L8.33203 15", stroke: "currentColor", strokeWidth: 1.5 })), x0 = o(u0), i = {}, M0 = {
240
240
  arrowRight: () => /* @__PURE__ */ n(r0, {}),
241
241
  loader: () => /* @__PURE__ */ n(v, {}),
242
242
  filter: () => /* @__PURE__ */ n(f, {}),
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, Fragment as k } from "react/jsx-runtime";
2
2
  import { useState as f, useEffect as S } from "react";
3
- import { c as y } from "../../../index-B2JRaoNz.js";
3
+ import { c as y } from "../../../index-YnD2EP-S.js";
4
4
  import { sizeMap as i } from "./RoundButton.types.js";
5
5
  import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
6
6
  const g = "_btnRound_z7oq7_1", F = "_whiteStroke_z7oq7_43", R = "_whiteFilled_z7oq7_48", $ = "_whiteTransparent_z7oq7_53", v = "_blackFill_z7oq7_58", x = "_blackStroke_z7oq7_63", E = "_fullGray_z7oq7_71", G = "_blue_z7oq7_79", e = {
@@ -1,6 +1,6 @@
1
1
  import { jsxs as u, Fragment as I, jsx as o } from "react/jsx-runtime";
2
- import { s as n, O as J } from "../../../Option-rFBMQAPk.js";
3
- import { c as O } from "../../../index-B2JRaoNz.js";
2
+ import { s as n, O as J } from "../../../Option-CtwUzW8a.js";
3
+ import { c as O } from "../../../index-YnD2EP-S.js";
4
4
  import { useState as U } from "react";
5
5
  import { NewIcon as N } from "../../NewIcon/ui/NewIcon.js";
6
6
  const j = O.bind(n), z = ({
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import { O as m } from "../../../Option-rFBMQAPk.js";
3
- import "../../../index-B2JRaoNz.js";
2
+ import { O as m } from "../../../Option-CtwUzW8a.js";
3
+ import "../../../index-YnD2EP-S.js";
4
4
  import "../../NewIcon/ui/NewIcon.js";
5
5
  export {
6
6
  m as Option
@@ -1,7 +1,7 @@
1
1
  import { jsxs as m, jsx as n, Fragment as j } from "react/jsx-runtime";
2
2
  import { useState as B, useRef as F, useEffect as M } from "react";
3
- import { c as Z } from "../../../index-B2JRaoNz.js";
4
- import { s as e, O as z } from "../../../Option-rFBMQAPk.js";
3
+ import { c as Z } from "../../../index-YnD2EP-S.js";
4
+ import { s as e, O as z } from "../../../Option-CtwUzW8a.js";
5
5
  import { Category as b } from "./Category.js";
6
6
  import { handleClickModeOption as I, handleClickModeCategory as V } from "../model/selectMode.js";
7
7
  import { NewIcon as D } from "../../NewIcon/ui/NewIcon.js";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as f, jsx as r } from "react/jsx-runtime";
2
2
  import { useClientWidth as C } from "../../../shared/useClientWidth.js";
3
- import { c as T } from "../../../index-B2JRaoNz.js";
3
+ import { c as T } from "../../../index-YnD2EP-S.js";
4
4
  import { RoundButton as d } from "../../RoundButton/ui/RoundButton.js";
5
5
  import { Tag as N } from "../../Tag/ui/Tag.js";
6
6
  const k = "_sliderTag_1rvl9_1", l = {
@@ -5,7 +5,7 @@ interface IUseSortSelect {
5
5
  selectedOption: Option | null;
6
6
  setSelectedOption?: (event: Option | null) => void;
7
7
  setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
8
- containerRef: React.RefObject<HTMLDivElement>;
8
+ containerRef: React.RefObject<HTMLDivElement | null>;
9
9
  isOpen: boolean;
10
10
  isMobile: boolean;
11
11
  placeholder: string;
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import { u as m } from "../../../useSortSelect-C72ddcYI.js";
3
- import "../../../index-B2JRaoNz.js";
2
+ import { u as m } from "../../../useSortSelect-Cy3od4ig.js";
3
+ import "../../../index-YnD2EP-S.js";
4
4
  export {
5
5
  m as useSortSelect
6
6
  };
@@ -1,7 +1,7 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as M, useRef as W, useEffect as E } from "react";
3
- import { c as L } from "../../../index-B2JRaoNz.js";
4
- import { s as e, u as j } from "../../../useSortSelect-C72ddcYI.js";
3
+ import { c as L } from "../../../index-YnD2EP-S.js";
4
+ import { s as e, u as j } from "../../../useSortSelect-Cy3od4ig.js";
5
5
  import { useClientWidth as w } from "../../../shared/useClientWidth.js";
6
6
  import { NewIcon as O } from "../../NewIcon/ui/NewIcon.js";
7
7
  import { Modal as T } from "../../Modal/ui/Modal.js";
@@ -21,11 +21,11 @@ const r = L.bind(e), A = ({
21
21
  onCLickSelect: m,
22
22
  onOpenClick: p
23
23
  }) => {
24
- const [o, s] = M(!1), u = W(null), { isMobile: l } = w(), { handleBlur: B, getInputValue: I, getOption: f, handleDocumentClick: S } = j({
24
+ const [o, i] = M(!1), u = W(null), { isMobile: l } = w(), { handleBlur: B, getInputValue: I, getOption: f, handleDocumentClick: S } = j({
25
25
  selectedOption: h,
26
26
  onClickOption: C,
27
27
  setSelectedOption: c,
28
- setIsOpen: s,
28
+ setIsOpen: i,
29
29
  containerRef: u,
30
30
  isMobile: l,
31
31
  placeholder: v,
@@ -34,7 +34,7 @@ const r = L.bind(e), A = ({
34
34
  });
35
35
  return E(() => (document.addEventListener("click", S), () => {
36
36
  document.removeEventListener("click", S);
37
- }), []), /* @__PURE__ */ i(
37
+ }), []), /* @__PURE__ */ s(
38
38
  "div",
39
39
  {
40
40
  ref: u,
@@ -50,7 +50,7 @@ const r = L.bind(e), A = ({
50
50
  m && m();
51
51
  },
52
52
  children: [
53
- /* @__PURE__ */ i("div", { className: r(e.inputWrapper), children: [
53
+ /* @__PURE__ */ s("div", { className: r(e.inputWrapper), children: [
54
54
  /* @__PURE__ */ t(
55
55
  "input",
56
56
  {
@@ -63,7 +63,7 @@ const r = L.bind(e), A = ({
63
63
  { [e.selectionOptionMini]: k }
64
64
  ),
65
65
  onClick: () => {
66
- o || p && p(), s(!o);
66
+ o || p && p(), i(!o);
67
67
  }
68
68
  }
69
69
  ),
@@ -76,19 +76,19 @@ const r = L.bind(e), A = ({
76
76
  }
77
77
  )
78
78
  ] }),
79
- o && l && /* @__PURE__ */ i(
79
+ o && l && /* @__PURE__ */ s(
80
80
  T,
81
81
  {
82
82
  isOpen: o,
83
- emitIsOpen: s,
83
+ emitIsOpen: i,
84
84
  additionalClassModalBody: e.modalAddBody,
85
85
  additionalClass: e.selectModal,
86
86
  createPortalObj: { domNode: document.querySelector("body") },
87
87
  isTransparentBack: !0,
88
88
  children: [
89
- /* @__PURE__ */ i("div", { className: e.mobileSortHeader, children: [
89
+ /* @__PURE__ */ s("div", { className: e.mobileSortHeader, children: [
90
90
  /* @__PURE__ */ t(z, { children: "Сортировка" }),
91
- /* @__PURE__ */ t("div", { onClick: () => s(!1), children: /* @__PURE__ */ t(
91
+ /* @__PURE__ */ t("div", { onClick: () => i(!1), children: /* @__PURE__ */ t(
92
92
  O,
93
93
  {
94
94
  name: "close",
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as p } from "react/jsx-runtime";
2
2
  import { useRef as _, useEffect as d } from "react";
3
- import { c as v } from "../../../index-B2JRaoNz.js";
3
+ import { c as v } from "../../../index-YnD2EP-S.js";
4
4
  const h = "_switcherWrapper_1b1pd_29", b = "_switcherWrapperReverse_1b1pd_40", W = "_switcherWrapperBetween_1b1pd_44", l = "_swiper_1b1pd_48", m = "_swiperBackward_1b1pd_1", f = "_swiperActive_1b1pd_63", u = "_swiperForward_1b1pd_1", I = "_swiperInactive_1b1pd_68", P = "_swiperInitialize_1b1pd_73", B = "_swiperPoint_1b1pd_77", A = "_swiperPointActive_1b1pd_89", e = {
5
5
  switcherWrapper: h,
6
6
  switcherWrapperReverse: b,
@@ -7,21 +7,26 @@ type TBtn = {
7
7
  width_m?: string;
8
8
  width_l?: string;
9
9
  };
10
- type BaseInputProps = JSX.IntrinsicElements['input'] & TBtn;
10
+ type BaseInputProps = React.JSX.IntrinsicElements['input'] & TBtn;
11
11
  interface ITabSelect {
12
- children?: React.ReactNode | React.ReactNode[];
12
+ children?: React.ReactNode;
13
13
  variant?: SwitcherVariant;
14
14
  classname?: string;
15
15
  isRound?: boolean;
16
16
  }
17
17
  export declare const TAB_SELECT_VARIANTS: {
18
- whiteFill: string;
19
- whiteStroke: string;
20
- grayDesign: string;
21
- fullWhite: string;
18
+ readonly whiteFill: "whiteFill";
19
+ readonly whiteStroke: "whiteStroke";
20
+ readonly grayDesign: "grayDesign";
21
+ readonly fullWhite: "fullWhite";
22
22
  };
23
23
  export type SwitcherVariant = keyof typeof TAB_SELECT_VARIANTS;
24
24
  declare const TabSelectNamespace: (({ variant, classname, children }: ITabSelect) => import("react/jsx-runtime").JSX.Element) & {
25
- Item: import('react').ForwardRefExoticComponent<Omit<BaseInputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
25
+ Item: {
26
+ (props: BaseInputProps & {
27
+ ref?: React.Ref<HTMLInputElement>;
28
+ }): import("react/jsx-runtime").JSX.Element;
29
+ displayName: string;
30
+ };
26
31
  };
27
32
  export { TabSelectNamespace as TabSelect };
@@ -1,59 +1,64 @@
1
- import { jsxs as N, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as T } from "react";
3
- import { c as k } from "../../../index-B2JRaoNz.js";
4
- import { useClientWidth as y } from "../../../shared/useClientWidth.js";
5
- import { Text as z } from "../../Text/ui/Text.js";
6
- const W = "_root_pbslz_1", D = "_whiteFill_pbslz_29", F = "_text_pbslz_34", P = "_fullWhite_pbslz_48", C = "_whiteStroke_pbslz_67", I = "_withPadding_pbslz_105", j = "_grayDesign_pbslz_109", t = {
7
- root: W,
8
- whiteFill: D,
9
- text: F,
10
- fullWhite: P,
11
- whiteStroke: C,
12
- withPadding: I,
13
- grayDesign: j
14
- }, i = k.bind(t), O = {
1
+ import { jsx as e, jsxs as N } from "react/jsx-runtime";
2
+ import { c as T } from "../../../index-YnD2EP-S.js";
3
+ import { useClientWidth as k } from "../../../shared/useClientWidth.js";
4
+ import { Text as y } from "../../Text/ui/Text.js";
5
+ const z = "_root_pbslz_1", W = "_whiteFill_pbslz_29", D = "_text_pbslz_34", F = "_fullWhite_pbslz_48", P = "_whiteStroke_pbslz_67", C = "_withPadding_pbslz_105", I = "_grayDesign_pbslz_109", t = {
6
+ root: z,
7
+ whiteFill: W,
8
+ text: D,
9
+ fullWhite: F,
10
+ whiteStroke: P,
11
+ withPadding: C,
12
+ grayDesign: I
13
+ }, i = T.bind(t), B = {
15
14
  whiteFill: "whiteFill",
16
15
  whiteStroke: "whiteStroke",
17
16
  grayDesign: "grayDesign",
18
17
  fullWhite: "fullWhite"
19
- }, A = ({ variant: s = "whiteFill", classname: l, children: a }) => /* @__PURE__ */ e("div", { className: i(t.root, t[`${s}`], l), children: a }), r = T((s, l) => {
20
- const { isTablet: a, isDesktop: c } = y(), h = (S, x) => S && o ? o : x && n ? n : f, {
21
- children: d,
22
- className: _,
23
- additionalClassName: m,
24
- additionalLabelClass: w,
25
- //TODO предлогаю засунуть в жопу isLong
26
- isLong: b,
27
- checked: g,
28
- withPadding: p = !1,
29
- width: f,
18
+ }, L = ({
19
+ variant: s = "whiteFill",
20
+ classname: l,
21
+ children: a
22
+ }) => /* @__PURE__ */ e("div", { className: i(t.root, t[`${s}`], l), children: a }), c = (s) => {
23
+ const { isTablet: l, isDesktop: a } = k(), {
24
+ children: r,
25
+ className: h,
26
+ additionalClassName: d,
27
+ additionalLabelClass: _,
28
+ isLong: m,
29
+ checked: w,
30
+ withPadding: g = !1,
31
+ width: b,
30
32
  width_m: o,
31
33
  width_l: n,
32
- ...u
33
- } = s;
34
- return /* @__PURE__ */ N("label", { className: i(t.item, w, { [t.withPadding]: p }), children: [
34
+ ref: p,
35
+ ...f
36
+ } = s, u = (S, x) => S && o ? o : x && n ? n : b;
37
+ return /* @__PURE__ */ N("label", { className: i(t.item, _, { [t.withPadding]: g }), children: [
35
38
  /* @__PURE__ */ e(
36
39
  "input",
37
40
  {
38
- ref: l,
41
+ ref: p,
39
42
  type: "checkbox",
40
- checked: g,
41
- ...u
43
+ checked: w,
44
+ ...f
42
45
  }
43
46
  ),
44
47
  /* @__PURE__ */ e(
45
48
  "div",
46
49
  {
47
- className: i(_, m, { isLong: b }),
48
- style: { width: h(a, c) },
49
- children: /* @__PURE__ */ e(z, { className: i(t.text), children: d })
50
+ className: i(h, d, { [t.isLong]: m }),
51
+ style: { width: u(l, a) },
52
+ children: /* @__PURE__ */ e(y, { className: i(t.text), children: r })
50
53
  }
51
54
  )
52
55
  ] });
56
+ };
57
+ c.displayName = "TabSelectItem";
58
+ const O = Object.assign(L, {
59
+ Item: c
53
60
  });
54
- r.displayName = "TabSelectItem";
55
- const V = Object.assign(A, { Item: r });
56
61
  export {
57
- O as TAB_SELECT_VARIANTS,
58
- V as TabSelect
62
+ B as TAB_SELECT_VARIANTS,
63
+ O as TabSelect
59
64
  };
@@ -1,5 +1,6 @@
1
+ import { FC } from 'react';
1
2
  import { ITabSwitcherItem, TabSwitcherProps } from './TabSwitcher.types';
2
- declare const SwitcherNamespace: (({ children, variant, isApart, addClassName, col, }: TabSwitcherProps) => import("react/jsx-runtime").JSX.Element) & {
3
- Item: import('react').ForwardRefExoticComponent<ITabSwitcherItem & import('react').RefAttributes<HTMLInputElement>>;
3
+ declare const TabSwitcherNamespace: (({ children, variant, isApart, addClassName, col, }: TabSwitcherProps) => import("react/jsx-runtime").JSX.Element) & {
4
+ Item: FC<ITabSwitcherItem>;
4
5
  };
5
- export { SwitcherNamespace as TabSwitcher };
6
+ export { TabSwitcherNamespace as TabSwitcher };
@@ -1,25 +1,24 @@
1
- import { jsxs as W, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as $ } from "react";
3
- import { c as D } from "../../../index-B2JRaoNz.js";
4
- import { useClientWidth as M } from "../../../shared/useClientWidth.js";
5
- import { Text as j } from "../../Text/ui/Text.js";
6
- const G = "_root_1t61b_1", k = "_text_1t61b_18", v = "_textMini_1t61b_26", O = "_rootCol_1t61b_32", A = "_item_1t61b_38", q = "_whiteRow_1t61b_57", B = "_firstItem_1t61b_68", E = "_lastItem_1t61b_72", F = "_whiteRowGrayLabel_1t61b_103", H = "_labelItem_1t61b_118", J = "_apart_1t61b_147", K = "_isLong_1t61b_147", P = "_autoWidth_1t61b_162", Q = "_mini_1t61b_176", U = "_isDisabled_1t61b_184", V = "_grayRow_1t61b_208", t = {
7
- root: G,
8
- text: k,
9
- textMini: v,
10
- rootCol: O,
11
- item: A,
12
- whiteRow: q,
13
- firstItem: B,
14
- lastItem: E,
15
- whiteRowGrayLabel: F,
16
- labelItem: H,
17
- apart: J,
18
- isLong: K,
19
- autoWidth: P,
20
- mini: Q,
21
- isDisabled: U,
22
- grayRow: V,
1
+ import { jsx as i, jsxs as W } from "react/jsx-runtime";
2
+ import { c as $ } from "../../../index-YnD2EP-S.js";
3
+ import { useClientWidth as D } from "../../../shared/useClientWidth.js";
4
+ import { Text as M } from "../../Text/ui/Text.js";
5
+ const j = "_root_1t61b_1", G = "_text_1t61b_18", k = "_textMini_1t61b_26", v = "_rootCol_1t61b_32", O = "_item_1t61b_38", A = "_whiteRow_1t61b_57", q = "_firstItem_1t61b_68", B = "_lastItem_1t61b_72", E = "_whiteRowGrayLabel_1t61b_103", F = "_labelItem_1t61b_118", H = "_apart_1t61b_147", J = "_isLong_1t61b_147", K = "_autoWidth_1t61b_162", P = "_mini_1t61b_176", Q = "_isDisabled_1t61b_184", U = "_grayRow_1t61b_208", t = {
6
+ root: j,
7
+ text: G,
8
+ textMini: k,
9
+ rootCol: v,
10
+ item: O,
11
+ whiteRow: A,
12
+ firstItem: q,
13
+ lastItem: B,
14
+ whiteRowGrayLabel: E,
15
+ labelItem: F,
16
+ apart: H,
17
+ isLong: J,
18
+ autoWidth: K,
19
+ mini: P,
20
+ isDisabled: Q,
21
+ grayRow: U,
23
22
  "tiny-size": "_tiny-size_1t61b_236",
24
23
  "small-size": "_small-size_1t61b_241",
25
24
  "medium-size": "_medium-size_1t61b_246",
@@ -40,81 +39,84 @@ const G = "_root_1t61b_1", k = "_text_1t61b_18", v = "_textMini_1t61b_26", O = "
40
39
  "text-small-size_l": "_text-small-size_l_1t61b_325",
41
40
  "text-medium-size_l": "_text-medium-size_l_1t61b_329",
42
41
  "text-large-size_l": "_text-large-size_l_1t61b_333"
43
- }, e = D.bind(t), X = ({
44
- children: _,
45
- variant: l = "whiteRow",
46
- isApart: a = !1,
47
- addClassName: m = "",
48
- col: s = !1
49
- }) => /* @__PURE__ */ i("div", { className: e(t.root, t[l], { [t.rootCol]: s, [t.apart]: a }, m), children: _ }), w = $((_, l) => {
50
- const { isTablet: a, isDesktop: m } = M(), {
42
+ }, _ = $.bind(t), V = ({
43
+ children: l,
44
+ variant: a = "whiteRow",
45
+ isApart: m = !1,
46
+ addClassName: s = "",
47
+ col: e = !1
48
+ }) => /* @__PURE__ */ i("div", { className: _(t.root, t[a], { [t.rootCol]: e, [t.apart]: m }, s), children: l }), g = (l) => {
49
+ const { isTablet: a, isDesktop: m } = D(), {
51
50
  index: s,
52
- children: o,
53
- addItemClassName: u,
54
- addLabelClassname: f,
51
+ children: e,
52
+ addItemClassName: w,
53
+ addLabelClassname: u,
55
54
  addTextClass: I,
56
- size_s: b = "large",
57
- size_m: z,
58
- size_l: d,
59
- disabled: c = !1,
60
- itemsLength: p = 0,
61
- isLongOn: y = !0,
62
- width: x,
63
- width_m: r,
64
- width_l: n,
65
- mini: h = !1,
66
- dataTestId: L,
55
+ size_s: n = "large",
56
+ size_m: b,
57
+ size_l: z,
58
+ disabled: d = !1,
59
+ itemsLength: f = 0,
60
+ isLongOn: p = !0,
61
+ width: c,
62
+ width_m: o,
63
+ width_l: r,
64
+ mini: x = !1,
65
+ dataTestId: y,
66
+ ref: L,
67
67
  ...R
68
- } = _, g = (o?.toString().length ? o?.toString().length > 2 : !1) && y, C = (T, S) => T && r ? r : S && n ? n : x, N = !x && !r && !n && g;
69
- return /* @__PURE__ */ W("label", { className: e(t.labelItem, { [t.isLong]: g }, f), children: [
68
+ } = l, h = (e?.toString().length ? e?.toString().length > 2 : !1) && p, T = (N, S) => N && o ? o : S && r ? r : c, C = !c && !o && !r && h;
69
+ return /* @__PURE__ */ W("label", { className: _(t.labelItem, { [t.isLong]: h }, u), children: [
70
70
  /* @__PURE__ */ i(
71
71
  "input",
72
72
  {
73
- ref: l,
73
+ ref: L,
74
74
  type: "checkbox",
75
75
  ...R,
76
- disabled: c
76
+ disabled: d
77
77
  }
78
78
  ),
79
79
  /* @__PURE__ */ i(
80
80
  "div",
81
81
  {
82
- style: { width: C(a, m) },
83
- "data-testid": L,
84
- className: e(
85
- e(
86
- t.item,
87
- { [t.firstItem]: s === 0 },
88
- { [t.lastItem]: s === p - 1 },
89
- { [t.isDisabled]: c },
90
- { [t.autoWidth]: N },
91
- t[`${b}-size`],
92
- t[`${z}-size_m`],
93
- t[`${d}-size_l`],
94
- { [t.mini]: h }
95
- ),
96
- u
82
+ style: { width: T(a, m) },
83
+ "data-testid": y,
84
+ className: _(
85
+ t.item,
86
+ {
87
+ [t.firstItem]: s === 0,
88
+ [t.lastItem]: s === f - 1,
89
+ [t.isDisabled]: d,
90
+ [t.autoWidth]: C,
91
+ [t.mini]: x
92
+ },
93
+ t[`${n}-size`],
94
+ t[`${b}-size_m`],
95
+ t[`${z}-size_l`],
96
+ w
97
97
  ),
98
98
  children: /* @__PURE__ */ i(
99
- j,
99
+ M,
100
100
  {
101
- className: e(
101
+ className: _(
102
102
  t.text,
103
- t[`text-${b}-size`],
104
- t[`text-${z}-size_m`],
105
- t[`text-${d}-size_l`],
106
- { [t.textMini]: h },
103
+ t[`text-${n}-size`],
104
+ t[`text-${b}-size_m`],
105
+ t[`text-${z}-size_l`],
106
+ { [t.textMini]: x },
107
107
  I
108
108
  ),
109
- children: o
109
+ children: e
110
110
  }
111
111
  )
112
112
  }
113
113
  )
114
114
  ] });
115
+ };
116
+ g.displayName = "TabSwitcherItem";
117
+ const et = Object.assign(V, {
118
+ Item: g
115
119
  });
116
- w.displayName = "TabSwitcherItem";
117
- const it = Object.assign(X, { Item: w });
118
120
  export {
119
- it as TabSwitcher
121
+ et as TabSwitcher
120
122
  };