stone-kit 0.0.1030 → 0.0.1032

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