stone-kit 0.0.1028 → 0.0.1030

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 (177) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/FilterWithSave-BWA01WwU.js +2476 -0
  3. package/dist/{Menu-CdJTzN7T.js → Menu-CeBSiTyP.js} +176 -157
  4. package/dist/{Option-rFBMQAPk.js → Option-DU8cvBnA.js} +1 -1
  5. package/dist/Router.js +1 -1
  6. package/dist/components/Button/ui/Button.d.ts +1 -0
  7. package/dist/components/Button/ui/Button.js +1 -1
  8. package/dist/components/Button/ui/Button.types.d.ts +1 -0
  9. package/dist/components/CheckBox/CheckBox.d.ts +1 -0
  10. package/dist/components/CheckBox/CheckBox.js +1 -1
  11. package/dist/components/CheckBox/CheckBox.types.d.ts +1 -0
  12. package/dist/components/CheckBoxNew/CheckBox.types.d.ts +1 -0
  13. package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +1 -0
  14. package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
  15. package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +1 -0
  16. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
  17. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -0
  18. package/dist/components/CommercialLotCard/CommercialLotCard.js +7 -50
  19. package/dist/components/CommercialLotCard/components/Price/Price.d.ts +1 -0
  20. package/dist/components/CommercialLotCard/components/Price/Price.js +24 -23
  21. package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +1 -0
  22. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +27 -98
  23. package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +1 -0
  24. package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
  25. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +1 -0
  26. package/dist/components/CommercialLotCard/types/LotCard.d.ts +1 -0
  27. package/dist/components/CommercialLotCard/utils/formatPrice.js +2 -1
  28. package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +2 -1
  29. package/dist/components/DestinationTab/ui/DestinationTab.d.ts +1 -0
  30. package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
  31. package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +1 -0
  32. package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -0
  33. package/dist/components/FieldInput/ui/FieldInput.types.d.ts +1 -0
  34. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +1 -0
  35. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +26 -54
  36. package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +1 -0
  37. package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -328
  38. package/dist/components/Flex/ui/Flex.d.ts +1 -0
  39. package/dist/components/Flex/ui/Flex.js +1 -1
  40. package/dist/components/Flex/ui/Flex.types.d.ts +1 -0
  41. package/dist/components/FormModal/ui/ModalForm.js +28 -1430
  42. package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +1 -0
  43. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  44. package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +1 -0
  45. package/dist/components/Input/ui/Input.d.ts +2 -1
  46. package/dist/components/Input/ui/Input.js +304 -234
  47. package/dist/components/Logo/ui/Logo.d.ts +1 -0
  48. package/dist/components/Logo/ui/Logo.js +6 -6
  49. package/dist/components/LotCard/hooks/useLotCard.d.ts +1 -0
  50. package/dist/components/LotCard/hooks/useLotCard.js +24 -6
  51. package/dist/components/LotCard/index.js +2 -2
  52. package/dist/components/LotCard/ui/LotCard.d.ts +1 -0
  53. package/dist/components/LotCard/ui/LotCard.js +10 -213
  54. package/dist/components/LotCard/ui/LotCard.types.d.ts +1 -0
  55. package/dist/components/LotCard/utils/formatPrice.js +2 -1
  56. package/dist/components/LotCard/utils/getTagsFeatures.d.ts +2 -1
  57. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  58. package/dist/components/MetroLabel/ui/MetroLabel.d.ts +1 -0
  59. package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
  60. package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +1 -0
  61. package/dist/components/MetroTag/ui/MetroTag.d.ts +1 -0
  62. package/dist/components/MetroTag/ui/MetroTag.js +74 -74
  63. package/dist/components/MetroTag/ui/MetroTag.types.d.ts +1 -0
  64. package/dist/components/Modal/ui/Modal.d.ts +1 -0
  65. package/dist/components/Modal/ui/Modal.js +37 -34
  66. package/dist/components/Modal/ui/Modal.types.d.ts +1 -0
  67. package/dist/components/ModalSuccess/ModalSuccess.d.ts +1 -0
  68. package/dist/components/ModalSuccess/ModalSuccess.js +19 -18
  69. package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +1 -0
  70. package/dist/components/NewIcon/icons/PinTrans.d.ts +1 -0
  71. package/dist/components/NewIcon/icons/SmallFilter.d.ts +1 -0
  72. package/dist/components/NewIcon/ui/NewIcon.d.ts +1 -0
  73. package/dist/components/NewIcon/ui/NewIcon.js +3 -3
  74. package/dist/components/NewIcon/ui/NewIcon.types.d.ts +1 -0
  75. package/dist/components/NewIcon/ui/iconTypes.d.ts +1 -0
  76. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +11 -9
  77. package/dist/components/RoundButton/ui/RoundButton.d.ts +1 -0
  78. package/dist/components/RoundButton/ui/RoundButton.js +2 -2
  79. package/dist/components/RoundButton/ui/RoundButton.types.d.ts +1 -0
  80. package/dist/components/Select/model/selectMode.d.ts +1 -0
  81. package/dist/components/Select/model/selectMode.js +30 -30
  82. package/dist/components/Select/ui/Category.d.ts +1 -0
  83. package/dist/components/Select/ui/Category.js +3 -3
  84. package/dist/components/Select/ui/Option.d.ts +1 -0
  85. package/dist/components/Select/ui/Option.js +2 -2
  86. package/dist/components/Select/ui/Select.d.ts +1 -0
  87. package/dist/components/Select/ui/Select.js +115 -115
  88. package/dist/components/SliderNavigation/index.d.ts +1 -0
  89. package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +1 -0
  90. package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
  91. package/dist/components/SortSelect/hooks/useSortSelect.d.ts +2 -1
  92. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  93. package/dist/components/SortSelect/index.js +1 -1
  94. package/dist/components/SortSelect/ui/SortSelect.d.ts +1 -0
  95. package/dist/components/SortSelect/ui/SortSelect.js +26 -108
  96. package/dist/components/SortSelect/ui/SortSelect.types.d.ts +1 -0
  97. package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -0
  98. package/dist/components/SummarySelect/ui/SummarySelect.js +65 -59
  99. package/dist/components/Switcher/ui/Switcher.d.ts +1 -0
  100. package/dist/components/Switcher/ui/Switcher.js +1 -1
  101. package/dist/components/Switcher/ui/Switcher.types.d.ts +1 -0
  102. package/dist/components/TabSelect/ui/TabSelect.d.ts +13 -7
  103. package/dist/components/TabSelect/ui/TabSelect.js +42 -37
  104. package/dist/components/TabSwitcher/index.js +2 -2
  105. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +5 -3
  106. package/dist/components/TabSwitcher/ui/TabSwitcher.js +26 -118
  107. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +2 -1
  108. package/dist/components/Tag/ui/Tag.d.ts +1 -0
  109. package/dist/components/Tag/ui/Tag.js +91 -91
  110. package/dist/components/Tag/ui/Tag.types.d.ts +1 -0
  111. package/dist/components/Text/ui/Text.d.ts +1 -0
  112. package/dist/components/Text/ui/Text.js +1 -1
  113. package/dist/components/Text/ui/Text.types.d.ts +1 -0
  114. package/dist/components/TextArea/TextArea.d.ts +9 -0
  115. package/dist/components/TextArea/TextArea.js +18 -12
  116. package/dist/components/ZoomControls/ui/ZoomControls.d.ts +1 -0
  117. package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +1 -0
  118. package/dist/components/mobileButton/ui/MobileButton.d.ts +1 -0
  119. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  120. package/dist/components/mobileButton/ui/MobileButton.types.d.ts +1 -0
  121. package/dist/{index-CBdtKu-u.js → index-DmANy9jd.js} +271 -272
  122. package/dist/{index-3E04UaC2.js → index-DvCs2JPX.js} +9629 -9529
  123. package/dist/index-rKuIKazb.js +45 -0
  124. package/dist/layout/Layout.d.ts +1 -0
  125. package/dist/layout/components/Header/Header.js +71 -48
  126. package/dist/layout/components/Menu.js +24 -2
  127. package/dist/main.js +65 -70
  128. package/dist/pages/ButtonsPage/Buttons.js +63 -57
  129. package/dist/pages/FormsPage/FormsPage.js +50 -26
  130. package/dist/pages/IconsPage/IconsPage.js +31 -9
  131. package/dist/pages/InputPage/InputPage.js +32 -10
  132. package/dist/pages/LogoPage/LogoPage.js +35 -13
  133. package/dist/pages/LotsPage/LotsPage.js +17 -18
  134. package/dist/pages/LotsPage/const.d.ts +1 -0
  135. package/dist/pages/ModalsPage/ModalPage.js +66 -46
  136. package/dist/pages/SelectPage/SelectPage.js +58 -58
  137. package/dist/pages/TabsPage/TabsPage.js +20 -19
  138. package/dist/pages/TagsPage/TagsPage.js +44 -23
  139. package/dist/shared/checkLargeOffice.d.ts +1 -0
  140. package/dist/shared/checkLargeOffice.js +1 -1
  141. package/dist/shared/mlnRound.js +2 -1
  142. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +2 -2
  143. package/dist/stories/shared/ui/Button/Button.stories.js +5 -5
  144. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  145. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  146. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  147. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  148. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  149. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +2 -2
  150. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +8 -8
  151. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  152. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  153. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  154. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  155. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  156. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  157. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  158. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  159. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +2 -2
  160. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  161. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  162. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  163. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +2 -2
  164. package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
  165. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  166. package/dist/style.css +1 -0
  167. package/dist/useSortSelect-BTCEVMVn.js +80 -0
  168. package/package.json +22 -31
  169. package/dist/ButtonState.module-DtW3aevR.js +0 -8
  170. package/dist/components/TextArea/TextArea.types.d.ts +0 -10
  171. package/dist/components/TextArea/TextArea.types.js +0 -1
  172. package/dist/index-B2JRaoNz.js +0 -48
  173. package/dist/pages/ButtonsPage/ButtonState/ButtonState.d.ts +0 -6
  174. package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +0 -121
  175. package/dist/stone-kit.css +0 -1
  176. package/dist/useLotCard-DG9doKCX.js +0 -186
  177. package/dist/useSortSelect-C72ddcYI.js +0 -80
@@ -1,10 +1,30 @@
1
- import { jsxs as j, jsx as w } from "react/jsx-runtime";
2
- import * as u from "react";
1
+ import { jsxs as j, jsx as b } from "react/jsx-runtime";
2
+ import * as c from "react";
3
3
  import "react-dom";
4
- import { c as $, l as ee, b as te, N as D, s as S, w as X, u as ne, d as re, e as W, f as P, g as I, D as ae, i as N, m as z, h as oe, j as ie, k as le, n as se } from "./index-CBdtKu-u.js";
5
- import { NewIcon as ce } from "./components/NewIcon/ui/NewIcon.js";
4
+ import { c as $, b as ee, N as D, s as S, w as X, u as te, d as F, e as W, D as ne, f as re, g as I, h as oe, i as ie, j as N, k as ae, m as z, l as le } from "./index-DmANy9jd.js";
5
+ import "./components/Button/ui/Button.js";
6
+ import "./components/mobileButton/ui/MobileButton.js";
7
+ import { NewIcon as se } from "./components/NewIcon/ui/NewIcon.js";
8
+ import "./components/DestinationTab/ui/DestinationTab.js";
9
+ import "./components/RoundButton/ui/RoundButton.js";
10
+ import "./components/Tag/ui/Tag.js";
11
+ import "./components/Switcher/ui/Switcher.js";
12
+ import "./components/Text/ui/Text.js";
13
+ import "./components/Flex/ui/Flex.js";
14
+ import "./components/Input/ui/Input.js";
15
+ import "./FilterWithSave-BWA01WwU.js";
16
+ import "./components/GroupedInput/ui/GroupedInputs.js";
17
+ import "./index-rKuIKazb.js";
18
+ import "./components/MetroTag/ui/MetroTag.js";
19
+ import "./components/Select/ui/Select.js";
20
+ import "./components/SliderNavigation/ui/SliderNavigation.js";
21
+ import "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
22
+ import "./components/TabSelect/ui/TabSelect.js";
23
+ import "./components/CheckBox/CheckBox.js";
24
+ import "./components/CheckBoxNew/CheckBoxNew.js";
25
+ import "./components/CheckboxSelect/ui/CheckboxSelect.js";
6
26
  /**
7
- * React Router DOM v6.30.1
27
+ * React Router DOM v6.26.0
8
28
  *
9
29
  * Copyright (c) Remix Software Inc.
10
30
  *
@@ -24,76 +44,78 @@ function x() {
24
44
  }, x.apply(this, arguments);
25
45
  }
26
46
  function M(e, n) {
27
- if (e == null) return {};
47
+ if (e == null)
48
+ return {};
28
49
  var r = {}, a = Object.keys(e), t, o;
29
50
  for (o = 0; o < a.length; o++)
30
51
  t = a[o], !(n.indexOf(t) >= 0) && (r[t] = e[t]);
31
52
  return r;
32
53
  }
33
- const L = "get", _ = "application/x-www-form-urlencoded";
34
- function F(e) {
54
+ const T = "get", L = "application/x-www-form-urlencoded";
55
+ function P(e) {
35
56
  return e != null && typeof e.tagName == "string";
36
57
  }
37
58
  function ue(e) {
38
- return F(e) && e.tagName.toLowerCase() === "button";
59
+ return P(e) && e.tagName.toLowerCase() === "button";
39
60
  }
40
- function fe(e) {
41
- return F(e) && e.tagName.toLowerCase() === "form";
61
+ function ce(e) {
62
+ return P(e) && e.tagName.toLowerCase() === "form";
42
63
  }
43
64
  function me(e) {
44
- return F(e) && e.tagName.toLowerCase() === "input";
65
+ return P(e) && e.tagName.toLowerCase() === "input";
45
66
  }
46
- function de(e) {
67
+ function fe(e) {
47
68
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
48
69
  }
49
- function pe(e, n) {
70
+ function de(e, n) {
50
71
  return e.button === 0 && // Ignore everything but left clicks
51
72
  (!n || n === "_self") && // Let browser handle "target=_blank" etc.
52
- !de(e);
73
+ !fe(e);
53
74
  }
54
- let T = null;
55
- function he() {
56
- if (T === null)
75
+ let R = null;
76
+ function pe() {
77
+ if (R === null)
57
78
  try {
58
79
  new FormData(
59
80
  document.createElement("form"),
60
81
  // @ts-expect-error if FormData supports the submitter parameter, this will throw
61
82
  0
62
- ), T = !1;
83
+ ), R = !1;
63
84
  } catch {
64
- T = !0;
85
+ R = !0;
65
86
  }
66
- return T;
87
+ return R;
67
88
  }
68
- const ve = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
89
+ const he = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
69
90
  function U(e) {
70
- return e != null && !ve.has(e) ? (process.env.NODE_ENV !== "production" && X(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + _ + '"')), null) : e;
91
+ return e != null && !he.has(e) ? (process.env.NODE_ENV !== "production" && X(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + L + '"')), null) : e;
71
92
  }
72
- function we(e, n) {
93
+ function ve(e, n) {
73
94
  let r, a, t, o, i;
74
- if (fe(e)) {
95
+ if (ce(e)) {
75
96
  let s = e.getAttribute("action");
76
- a = s ? S(s, n) : null, r = e.getAttribute("method") || L, t = U(e.getAttribute("enctype")) || _, o = new FormData(e);
97
+ a = s ? S(s, n) : null, r = e.getAttribute("method") || T, t = U(e.getAttribute("enctype")) || L, o = new FormData(e);
77
98
  } else if (ue(e) || me(e) && (e.type === "submit" || e.type === "image")) {
78
99
  let s = e.form;
79
100
  if (s == null)
80
101
  throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
81
- let c = e.getAttribute("formaction") || s.getAttribute("action");
82
- if (a = c ? S(c, n) : null, r = e.getAttribute("formmethod") || s.getAttribute("method") || L, t = U(e.getAttribute("formenctype")) || U(s.getAttribute("enctype")) || _, o = new FormData(s, e), !he()) {
102
+ let u = e.getAttribute("formaction") || s.getAttribute("action");
103
+ if (a = u ? S(u, n) : null, r = e.getAttribute("formmethod") || s.getAttribute("method") || T, t = U(e.getAttribute("formenctype")) || U(s.getAttribute("enctype")) || L, o = new FormData(s, e), !pe()) {
83
104
  let {
84
105
  name: l,
85
106
  type: f,
86
- value: m
107
+ value: h
87
108
  } = e;
88
109
  if (f === "image") {
89
110
  let v = l ? l + "." : "";
90
111
  o.append(v + "x", "0"), o.append(v + "y", "0");
91
- } else l && o.append(l, m);
112
+ } else
113
+ l && o.append(l, h);
92
114
  }
93
115
  } else {
94
- if (F(e))
116
+ if (P(e))
95
117
  throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
96
- r = L, a = null, t = _, i = e;
118
+ r = T, a = null, t = L, i = e;
97
119
  }
98
120
  return o && t === "text/plain" && (i = o, o = void 0), {
99
121
  action: a,
@@ -103,38 +125,38 @@ function we(e, n) {
103
125
  body: i
104
126
  };
105
127
  }
106
- const ye = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], be = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], ge = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"], Ee = "6";
128
+ const be = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], we = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], ye = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], ge = "6";
107
129
  try {
108
- window.__reactRouterVersion = Ee;
130
+ window.__reactRouterVersion = ge;
109
131
  } catch {
110
132
  }
111
- const Y = /* @__PURE__ */ u.createContext({
133
+ const Y = /* @__PURE__ */ c.createContext({
112
134
  isTransitioning: !1
113
135
  });
114
136
  process.env.NODE_ENV !== "production" && (Y.displayName = "ViewTransition");
115
- const Se = /* @__PURE__ */ u.createContext(/* @__PURE__ */ new Map());
116
- process.env.NODE_ENV !== "production" && (Se.displayName = "Fetchers");
117
- const Ne = "startTransition", q = u[Ne];
118
- function Ke(e) {
137
+ const Ee = /* @__PURE__ */ c.createContext(/* @__PURE__ */ new Map());
138
+ process.env.NODE_ENV !== "production" && (Ee.displayName = "Fetchers");
139
+ const Se = "startTransition", H = c[Se];
140
+ function lt(e) {
119
141
  let {
120
142
  basename: n,
121
143
  children: r,
122
144
  future: a,
123
145
  window: t
124
- } = e, o = u.useRef();
146
+ } = e, o = c.useRef();
125
147
  o.current == null && (o.current = $({
126
148
  window: t,
127
149
  v5Compat: !0
128
150
  }));
129
- let i = o.current, [s, c] = u.useState({
151
+ let i = o.current, [s, u] = c.useState({
130
152
  action: i.action,
131
153
  location: i.location
132
154
  }), {
133
155
  v7_startTransition: l
134
- } = a || {}, f = u.useCallback((m) => {
135
- l && q ? q(() => c(m)) : c(m);
136
- }, [c, l]);
137
- return u.useLayoutEffect(() => i.listen(f), [i, f]), u.useEffect(() => ee(a), [a]), /* @__PURE__ */ u.createElement(te, {
156
+ } = a || {}, f = c.useCallback((h) => {
157
+ l && H ? H(() => u(h)) : u(h);
158
+ }, [u, l]);
159
+ return c.useLayoutEffect(() => i.listen(f), [i, f]), /* @__PURE__ */ c.createElement(ee, {
138
160
  basename: n,
139
161
  children: r,
140
162
  location: s.location,
@@ -144,240 +166,237 @@ function Ke(e) {
144
166
  });
145
167
  }
146
168
  process.env.NODE_ENV;
147
- const xe = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Ce = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, B = /* @__PURE__ */ u.forwardRef(function(n, r) {
169
+ const Ne = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", xe = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, B = /* @__PURE__ */ c.forwardRef(function(n, r) {
148
170
  let {
149
171
  onClick: a,
150
172
  relative: t,
151
173
  reloadDocument: o,
152
174
  replace: i,
153
175
  state: s,
154
- target: c,
176
+ target: u,
155
177
  to: l,
156
178
  preventScrollReset: f,
157
- viewTransition: m
158
- } = n, v = M(n, ye), {
179
+ unstable_viewTransition: h
180
+ } = n, v = M(n, be), {
159
181
  basename: C
160
- } = u.useContext(D), y, b = !1;
161
- if (typeof l == "string" && Ce.test(l) && (y = l, xe))
182
+ } = c.useContext(D), w, y = !1;
183
+ if (typeof l == "string" && xe.test(l) && (w = l, Ne))
162
184
  try {
163
- let h = new URL(window.location.href), p = l.startsWith("//") ? new URL(h.protocol + l) : new URL(l), R = S(p.pathname, C);
164
- p.origin === h.origin && R != null ? l = R + p.search + p.hash : b = !0;
185
+ let p = new URL(window.location.href), d = l.startsWith("//") ? new URL(p.protocol + l) : new URL(l), _ = S(d.pathname, C);
186
+ d.origin === p.origin && _ != null ? l = _ + d.search + d.hash : y = !0;
165
187
  } catch {
166
188
  process.env.NODE_ENV !== "production" && X(!1, '<Link to="' + l + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
167
189
  }
168
- let g = ne(l, {
190
+ let g = te(l, {
169
191
  relative: t
170
- }), E = _e(l, {
192
+ }), E = Te(l, {
171
193
  replace: i,
172
194
  state: s,
173
- target: c,
195
+ target: u,
174
196
  preventScrollReset: f,
175
197
  relative: t,
176
- viewTransition: m
198
+ unstable_viewTransition: h
177
199
  });
178
- function d(h) {
179
- a && a(h), h.defaultPrevented || E(h);
200
+ function m(p) {
201
+ a && a(p), p.defaultPrevented || E(p);
180
202
  }
181
203
  return (
182
204
  // eslint-disable-next-line jsx-a11y/anchor-has-content
183
- /* @__PURE__ */ u.createElement("a", x({}, v, {
184
- href: y || g,
185
- onClick: b || o ? a : d,
205
+ /* @__PURE__ */ c.createElement("a", x({}, v, {
206
+ href: w || g,
207
+ onClick: y || o ? a : m,
186
208
  ref: r,
187
- target: c
209
+ target: u
188
210
  }))
189
211
  );
190
212
  });
191
213
  process.env.NODE_ENV !== "production" && (B.displayName = "Link");
192
- const Re = /* @__PURE__ */ u.forwardRef(function(n, r) {
214
+ const Ce = /* @__PURE__ */ c.forwardRef(function(n, r) {
193
215
  let {
194
216
  "aria-current": a = "page",
195
217
  caseSensitive: t = !1,
196
218
  className: o = "",
197
219
  end: i = !1,
198
220
  style: s,
199
- to: c,
200
- viewTransition: l,
221
+ to: u,
222
+ unstable_viewTransition: l,
201
223
  children: f
202
- } = n, m = M(n, be), v = P(c, {
203
- relative: m.relative
204
- }), C = W(), y = u.useContext(ae), {
205
- navigator: b,
224
+ } = n, h = M(n, we), v = F(u, {
225
+ relative: h.relative
226
+ }), C = W(), w = c.useContext(ne), {
227
+ navigator: y,
206
228
  basename: g
207
- } = u.useContext(D), E = y != null && // Conditional usage is OK here because the usage of a data router is static
229
+ } = c.useContext(D), E = w != null && // Conditional usage is OK here because the usage of a data router is static
208
230
  // eslint-disable-next-line react-hooks/rules-of-hooks
209
- Ve(v) && l === !0, d = b.encodeLocation ? b.encodeLocation(v).pathname : v.pathname, h = C.pathname, p = y && y.navigation && y.navigation.location ? y.navigation.location.pathname : null;
210
- t || (h = h.toLowerCase(), p = p ? p.toLowerCase() : null, d = d.toLowerCase()), p && g && (p = S(p, g) || p);
211
- const R = d !== "/" && d.endsWith("/") ? d.length - 1 : d.length;
212
- let O = h === d || !i && h.startsWith(d) && h.charAt(R) === "/", K = p != null && (p === d || !i && p.startsWith(d) && p.charAt(d.length) === "/"), V = {
231
+ Oe(v) && l === !0, m = y.encodeLocation ? y.encodeLocation(v).pathname : v.pathname, p = C.pathname, d = w && w.navigation && w.navigation.location ? w.navigation.location.pathname : null;
232
+ t || (p = p.toLowerCase(), d = d ? d.toLowerCase() : null, m = m.toLowerCase()), d && g && (d = S(d, g) || d);
233
+ const _ = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
234
+ let O = p === m || !i && p.startsWith(m) && p.charAt(_) === "/", K = d != null && (d === m || !i && d.startsWith(m) && d.charAt(m.length) === "/"), V = {
213
235
  isActive: O,
214
236
  isPending: K,
215
237
  isTransitioning: E
216
238
  }, Q = O ? a : void 0, A;
217
239
  typeof o == "function" ? A = o(V) : A = [o, O ? "active" : null, K ? "pending" : null, E ? "transitioning" : null].filter(Boolean).join(" ");
218
240
  let Z = typeof s == "function" ? s(V) : s;
219
- return /* @__PURE__ */ u.createElement(B, x({}, m, {
241
+ return /* @__PURE__ */ c.createElement(B, x({}, h, {
220
242
  "aria-current": Q,
221
243
  className: A,
222
244
  ref: r,
223
245
  style: Z,
224
- to: c,
225
- viewTransition: l
246
+ to: u,
247
+ unstable_viewTransition: l
226
248
  }), typeof f == "function" ? f(V) : f);
227
249
  });
228
- process.env.NODE_ENV !== "production" && (Re.displayName = "NavLink");
229
- const Te = /* @__PURE__ */ u.forwardRef((e, n) => {
250
+ process.env.NODE_ENV !== "production" && (Ce.displayName = "NavLink");
251
+ const _e = /* @__PURE__ */ c.forwardRef((e, n) => {
230
252
  let {
231
253
  fetcherKey: r,
232
254
  navigate: a,
233
255
  reloadDocument: t,
234
256
  replace: o,
235
257
  state: i,
236
- method: s = L,
237
- action: c,
258
+ method: s = T,
259
+ action: u,
238
260
  onSubmit: l,
239
261
  relative: f,
240
- preventScrollReset: m,
241
- viewTransition: v
242
- } = e, C = M(e, ge), y = Fe(), b = Oe(c, {
262
+ preventScrollReset: h,
263
+ unstable_viewTransition: v
264
+ } = e, C = M(e, ye), w = Fe(), y = Pe(u, {
243
265
  relative: f
244
- }), g = s.toLowerCase() === "get" ? "get" : "post", E = (d) => {
245
- if (l && l(d), d.defaultPrevented) return;
246
- d.preventDefault();
247
- let h = d.nativeEvent.submitter, p = h?.getAttribute("formmethod") || s;
248
- y(h || d.currentTarget, {
266
+ }), g = s.toLowerCase() === "get" ? "get" : "post", E = (m) => {
267
+ if (l && l(m), m.defaultPrevented)
268
+ return;
269
+ m.preventDefault();
270
+ let p = m.nativeEvent.submitter, d = (p == null ? void 0 : p.getAttribute("formmethod")) || s;
271
+ w(p || m.currentTarget, {
249
272
  fetcherKey: r,
250
- method: p,
273
+ method: d,
251
274
  navigate: a,
252
275
  replace: o,
253
276
  state: i,
254
277
  relative: f,
255
- preventScrollReset: m,
256
- viewTransition: v
278
+ preventScrollReset: h,
279
+ unstable_viewTransition: v
257
280
  });
258
281
  };
259
- return /* @__PURE__ */ u.createElement("form", x({
282
+ return /* @__PURE__ */ c.createElement("form", x({
260
283
  ref: n,
261
284
  method: g,
262
- action: b,
285
+ action: y,
263
286
  onSubmit: t ? l : E
264
287
  }, C));
265
288
  });
266
- process.env.NODE_ENV !== "production" && (Te.displayName = "Form");
289
+ process.env.NODE_ENV !== "production" && (_e.displayName = "Form");
267
290
  process.env.NODE_ENV;
268
291
  var k;
269
292
  (function(e) {
270
293
  e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
271
294
  })(k || (k = {}));
272
- var H;
295
+ var q;
273
296
  (function(e) {
274
297
  e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
275
- })(H || (H = {}));
276
- function Le(e) {
277
- return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
298
+ })(q || (q = {}));
299
+ function Re(e) {
300
+ return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
278
301
  }
279
302
  function J(e) {
280
- let n = u.useContext(se);
281
- return n || (process.env.NODE_ENV !== "production" ? N(!1, Le(e)) : N(!1)), n;
303
+ let n = c.useContext(le);
304
+ return n || (process.env.NODE_ENV !== "production" ? N(!1, Re(e)) : N(!1)), n;
282
305
  }
283
- function _e(e, n) {
306
+ function Te(e, n) {
284
307
  let {
285
308
  target: r,
286
309
  replace: a,
287
310
  state: t,
288
311
  preventScrollReset: o,
289
312
  relative: i,
290
- viewTransition: s
291
- } = n === void 0 ? {} : n, c = re(), l = W(), f = P(e, {
313
+ unstable_viewTransition: s
314
+ } = n === void 0 ? {} : n, u = re(), l = W(), f = F(e, {
292
315
  relative: i
293
316
  });
294
- return u.useCallback((m) => {
295
- if (pe(m, r)) {
296
- m.preventDefault();
317
+ return c.useCallback((h) => {
318
+ if (de(h, r)) {
319
+ h.preventDefault();
297
320
  let v = a !== void 0 ? a : I(l) === I(f);
298
- c(e, {
321
+ u(e, {
299
322
  replace: v,
300
323
  state: t,
301
324
  preventScrollReset: o,
302
325
  relative: i,
303
- viewTransition: s
326
+ unstable_viewTransition: s
304
327
  });
305
328
  }
306
- }, [l, c, f, a, t, r, e, o, i, s]);
329
+ }, [l, u, f, a, t, r, e, o, i, s]);
307
330
  }
308
- function ke() {
331
+ function Le() {
309
332
  if (typeof document > "u")
310
333
  throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
311
334
  }
312
- let De = 0, Pe = () => "__" + String(++De) + "__";
335
+ let ke = 0, De = () => "__" + String(++ke) + "__";
313
336
  function Fe() {
314
337
  let {
315
338
  router: e
316
339
  } = J(k.UseSubmit), {
317
340
  basename: n
318
- } = u.useContext(D), r = oe();
319
- return u.useCallback(function(a, t) {
320
- t === void 0 && (t = {}), ke();
341
+ } = c.useContext(D), r = oe();
342
+ return c.useCallback(function(a, t) {
343
+ t === void 0 && (t = {}), Le();
321
344
  let {
322
345
  action: o,
323
346
  method: i,
324
347
  encType: s,
325
- formData: c,
348
+ formData: u,
326
349
  body: l
327
- } = we(a, n);
350
+ } = ve(a, n);
328
351
  if (t.navigate === !1) {
329
- let f = t.fetcherKey || Pe();
352
+ let f = t.fetcherKey || De();
330
353
  e.fetch(f, r, t.action || o, {
331
354
  preventScrollReset: t.preventScrollReset,
332
- formData: c,
355
+ formData: u,
333
356
  body: l,
334
357
  formMethod: t.method || i,
335
358
  formEncType: t.encType || s,
336
- flushSync: t.flushSync
359
+ unstable_flushSync: t.unstable_flushSync
337
360
  });
338
361
  } else
339
362
  e.navigate(t.action || o, {
340
363
  preventScrollReset: t.preventScrollReset,
341
- formData: c,
364
+ formData: u,
342
365
  body: l,
343
366
  formMethod: t.method || i,
344
367
  formEncType: t.encType || s,
345
368
  replace: t.replace,
346
369
  state: t.state,
347
370
  fromRouteId: r,
348
- flushSync: t.flushSync,
349
- viewTransition: t.viewTransition
371
+ unstable_flushSync: t.unstable_flushSync,
372
+ unstable_viewTransition: t.unstable_viewTransition
350
373
  });
351
374
  }, [e, n, r]);
352
375
  }
353
- function Oe(e, n) {
376
+ function Pe(e, n) {
354
377
  let {
355
378
  relative: r
356
379
  } = n === void 0 ? {} : n, {
357
380
  basename: a
358
- } = u.useContext(D), t = u.useContext(ie);
381
+ } = c.useContext(D), t = c.useContext(ie);
359
382
  t || (process.env.NODE_ENV !== "production" ? N(!1, "useFormAction must be used inside a RouteContext") : N(!1));
360
- let [o] = t.matches.slice(-1), i = x({}, P(e || ".", {
383
+ let [o] = t.matches.slice(-1), i = x({}, F(e || ".", {
361
384
  relative: r
362
385
  })), s = W();
363
386
  if (e == null) {
364
387
  i.search = s.search;
365
- let c = new URLSearchParams(i.search), l = c.getAll("index");
366
- if (l.some((m) => m === "")) {
367
- c.delete("index"), l.filter((v) => v).forEach((v) => c.append("index", v));
368
- let m = c.toString();
369
- i.search = m ? "?" + m : "";
370
- }
388
+ let u = new URLSearchParams(i.search);
389
+ u.has("index") && u.get("index") === "" && (u.delete("index"), i.search = u.toString() ? "?" + u.toString() : "");
371
390
  }
372
- return (!e || e === ".") && o.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), a !== "/" && (i.pathname = i.pathname === "/" ? a : le([a, i.pathname])), I(i);
391
+ return (!e || e === ".") && o.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), a !== "/" && (i.pathname = i.pathname === "/" ? a : ae([a, i.pathname])), I(i);
373
392
  }
374
- function Ve(e, n) {
393
+ function Oe(e, n) {
375
394
  n === void 0 && (n = {});
376
- let r = u.useContext(Y);
377
- r == null && (process.env.NODE_ENV !== "production" ? N(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : N(!1));
395
+ let r = c.useContext(Y);
396
+ r == null && (process.env.NODE_ENV !== "production" ? N(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : N(!1));
378
397
  let {
379
398
  basename: a
380
- } = J(k.useViewTransitionState), t = P(e, {
399
+ } = J(k.useViewTransitionState), t = F(e, {
381
400
  relative: n.relative
382
401
  });
383
402
  if (!r.isTransitioning)
@@ -385,10 +404,10 @@ function Ve(e, n) {
385
404
  let o = S(r.currentLocation.pathname, a) || r.currentLocation.pathname, i = S(r.nextLocation.pathname, a) || r.nextLocation.pathname;
386
405
  return z(t.pathname, i) != null || z(t.pathname, o) != null;
387
406
  }
388
- const Ae = "_root_9577c_1", Ue = "_linkWrap_9577c_8", G = {
389
- root: Ae,
390
- linkWrap: Ue
391
- }, je = () => {
407
+ const Ve = "_root_9577c_1", Ae = "_linkWrap_9577c_8", G = {
408
+ root: Ve,
409
+ linkWrap: Ae
410
+ }, st = () => {
392
411
  const e = ({ to: n, title: r }) => /* @__PURE__ */ j(
393
412
  B,
394
413
  {
@@ -396,8 +415,8 @@ const Ae = "_root_9577c_1", Ue = "_linkWrap_9577c_8", G = {
396
415
  className: G.linkWrap,
397
416
  children: [
398
417
  r,
399
- /* @__PURE__ */ w(
400
- ce,
418
+ /* @__PURE__ */ b(
419
+ se,
401
420
  {
402
421
  size: "24",
403
422
  name: "play2",
@@ -409,77 +428,77 @@ const Ae = "_root_9577c_1", Ue = "_linkWrap_9577c_8", G = {
409
428
  }
410
429
  );
411
430
  return /* @__PURE__ */ j("div", { className: G.root, children: [
412
- /* @__PURE__ */ w(
431
+ /* @__PURE__ */ b(
413
432
  e,
414
433
  {
415
434
  to: "/buttons",
416
435
  title: "КНОПКИ"
417
436
  }
418
437
  ),
419
- /* @__PURE__ */ w(
438
+ /* @__PURE__ */ b(
420
439
  e,
421
440
  {
422
441
  to: "/modals",
423
442
  title: "МОДАЛКИ"
424
443
  }
425
444
  ),
426
- /* @__PURE__ */ w(
445
+ /* @__PURE__ */ b(
427
446
  e,
428
447
  {
429
448
  to: "/tabs",
430
449
  title: "ТАБЫ"
431
450
  }
432
451
  ),
433
- /* @__PURE__ */ w(
452
+ /* @__PURE__ */ b(
434
453
  e,
435
454
  {
436
455
  to: "/icons",
437
456
  title: "ИКОНКИ"
438
457
  }
439
458
  ),
440
- /* @__PURE__ */ w(
459
+ /* @__PURE__ */ b(
441
460
  e,
442
461
  {
443
462
  to: "/lots",
444
463
  title: "ЛОТЫ"
445
464
  }
446
465
  ),
447
- /* @__PURE__ */ w(
466
+ /* @__PURE__ */ b(
448
467
  e,
449
468
  {
450
469
  to: "/tags",
451
470
  title: "ТЭГИ"
452
471
  }
453
472
  ),
454
- /* @__PURE__ */ w(
473
+ /* @__PURE__ */ b(
455
474
  e,
456
475
  {
457
476
  to: "/select",
458
477
  title: "СЕЛЕКТ"
459
478
  }
460
479
  ),
461
- /* @__PURE__ */ w(
480
+ /* @__PURE__ */ b(
462
481
  e,
463
482
  {
464
483
  to: "/forms",
465
484
  title: "ФОРМЫ"
466
485
  }
467
486
  ),
468
- /* @__PURE__ */ w(
487
+ /* @__PURE__ */ b(
469
488
  e,
470
489
  {
471
490
  to: "/logo",
472
491
  title: "ЛОГО"
473
492
  }
474
493
  ),
475
- /* @__PURE__ */ w(
494
+ /* @__PURE__ */ b(
476
495
  e,
477
496
  {
478
497
  to: "/input",
479
498
  title: "ИНПУТЫ"
480
499
  }
481
500
  ),
482
- /* @__PURE__ */ w(
501
+ /* @__PURE__ */ b(
483
502
  e,
484
503
  {
485
504
  to: "/checkbox",
@@ -489,6 +508,6 @@ const Ae = "_root_9577c_1", Ue = "_linkWrap_9577c_8", G = {
489
508
  ] });
490
509
  };
491
510
  export {
492
- Ke as B,
493
- je as M
511
+ lt as B,
512
+ st as M
494
513
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as O, jsx as n } from "react/jsx-runtime";
2
- import { c as g } from "./index-B2JRaoNz.js";
3
2
  import { NewIcon as m } from "./components/NewIcon/ui/NewIcon.js";
3
+ import { c as g } from "./index-rKuIKazb.js";
4
4
  const C = "_multiSelectWrapper_1vjmo_1", b = "_selectedOptions_1vjmo_8", h = "_selectedText_1vjmo_26", f = "_selectedOptionsBtn_1vjmo_34", k = "_selectedOptionsOpened_1vjmo_60", y = "_selectedOptionsNotEmpty_1vjmo_64", D = "_selectOptionsDisabled_1vjmo_69", x = "_optionsOuterContainer_1vjmo_76", S = "_optionsList_1vjmo_89", B = "_lastList_1vjmo_118", L = "_listRight_1vjmo_123", N = "_inputWrapper_1vjmo_127", W = "_option_1vjmo_76", A = "_category_1vjmo_149", w = "_leftSide_1vjmo_155", E = "_optionCategory_1vjmo_160", R = "_optionDisabled_1vjmo_166", T = "_optionClickable_1vjmo_170", U = "_icon_1vjmo_174", $ = "_iconArrow_1vjmo_180", q = "_iconBtn_1vjmo_186", t = {
5
5
  multiSelectWrapper: C,
6
6
  selectedOptions: b,