stone-kit 0.0.1026 → 0.0.1028
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.
- package/dist/App.js +1 -1
- package/dist/{Menu-DKuZheFD.js → Menu-CdJTzN7T.js} +157 -176
- package/dist/{Option-DU8cvBnA.js → Option-rFBMQAPk.js} +1 -1
- package/dist/Router.js +1 -1
- package/dist/components/Button/ui/Button.d.ts +0 -1
- package/dist/components/Button/ui/Button.js +1 -1
- package/dist/components/Button/ui/Button.types.d.ts +0 -1
- package/dist/components/CheckBox/CheckBox.d.ts +0 -1
- package/dist/components/CheckBox/CheckBox.js +1 -1
- package/dist/components/CheckBox/CheckBox.types.d.ts +0 -2
- package/dist/components/CheckBoxNew/CheckBox.types.d.ts +0 -1
- package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +0 -1
- package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +0 -1
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
- package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +0 -1
- package/dist/components/CommercialLotCard/CommercialLotCard.js +50 -7
- package/dist/components/CommercialLotCard/components/Price/Price.d.ts +0 -1
- package/dist/components/CommercialLotCard/components/Price/Price.js +25 -26
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +0 -1
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +98 -27
- package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +0 -1
- package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +0 -1
- package/dist/components/CommercialLotCard/types/LotCard.d.ts +0 -1
- package/dist/components/CommercialLotCard/utils/formatPrice.js +1 -2
- package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +1 -2
- package/dist/components/DestinationTab/ui/DestinationTab.d.ts +0 -1
- package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
- package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +0 -1
- package/dist/components/FieldInput/ui/FieldInput.d.ts +0 -1
- package/dist/components/FieldInput/ui/FieldInput.types.d.ts +0 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +0 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +54 -26
- package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +0 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +328 -7
- package/dist/components/Flex/ui/Flex.d.ts +0 -1
- package/dist/components/Flex/ui/Flex.js +1 -1
- package/dist/components/Flex/ui/Flex.types.d.ts +0 -1
- package/dist/components/FormModal/ui/ModalForm.js +1430 -28
- package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +0 -1
- package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
- package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +0 -1
- package/dist/components/Input/ui/Input.d.ts +1 -2
- package/dist/components/Input/ui/Input.js +234 -304
- package/dist/components/Logo/ui/Logo.d.ts +0 -1
- package/dist/components/Logo/ui/Logo.js +6 -6
- package/dist/components/LotCard/hooks/useLotCard.d.ts +0 -1
- package/dist/components/LotCard/hooks/useLotCard.js +6 -24
- package/dist/components/LotCard/index.js +2 -2
- package/dist/components/LotCard/ui/LotCard.d.ts +0 -1
- package/dist/components/LotCard/ui/LotCard.js +213 -10
- package/dist/components/LotCard/ui/LotCard.types.d.ts +0 -1
- package/dist/components/LotCard/utils/formatPrice.js +1 -2
- package/dist/components/LotCard/utils/getTagsFeatures.d.ts +1 -2
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
- package/dist/components/MetroLabel/ui/MetroLabel.d.ts +0 -1
- package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
- package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +0 -1
- package/dist/components/MetroTag/ui/MetroTag.d.ts +0 -1
- package/dist/components/MetroTag/ui/MetroTag.js +74 -74
- package/dist/components/MetroTag/ui/MetroTag.types.d.ts +0 -1
- package/dist/components/Modal/ui/Modal.d.ts +0 -1
- package/dist/components/Modal/ui/Modal.js +34 -37
- package/dist/components/Modal/ui/Modal.types.d.ts +0 -1
- package/dist/components/ModalSuccess/ModalSuccess.d.ts +0 -1
- package/dist/components/ModalSuccess/ModalSuccess.js +18 -19
- package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +0 -1
- package/dist/components/NewIcon/icons/PinTrans.d.ts +0 -1
- package/dist/components/NewIcon/icons/SmallFilter.d.ts +0 -1
- package/dist/components/NewIcon/ui/NewIcon.d.ts +0 -1
- package/dist/components/NewIcon/ui/NewIcon.js +43 -33
- package/dist/components/NewIcon/ui/NewIcon.types.d.ts +0 -1
- package/dist/components/NewIcon/ui/iconTypes.d.ts +0 -1
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +9 -11
- package/dist/components/RoundButton/ui/RoundButton.d.ts +0 -1
- package/dist/components/RoundButton/ui/RoundButton.js +2 -2
- package/dist/components/RoundButton/ui/RoundButton.types.d.ts +0 -1
- package/dist/components/Select/model/selectMode.d.ts +0 -1
- package/dist/components/Select/model/selectMode.js +30 -30
- package/dist/components/Select/ui/Category.d.ts +0 -1
- package/dist/components/Select/ui/Category.js +3 -3
- package/dist/components/Select/ui/Option.d.ts +0 -1
- package/dist/components/Select/ui/Option.js +2 -2
- package/dist/components/Select/ui/Select.d.ts +0 -1
- package/dist/components/Select/ui/Select.js +115 -115
- package/dist/components/SliderNavigation/index.d.ts +0 -1
- package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +0 -1
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
- package/dist/components/SortSelect/hooks/useSortSelect.d.ts +0 -1
- package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.d.ts +0 -1
- package/dist/components/SortSelect/ui/SortSelect.js +108 -26
- package/dist/components/SortSelect/ui/SortSelect.types.d.ts +0 -1
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -1
- package/dist/components/SummarySelect/ui/SummarySelect.js +56 -61
- package/dist/components/Switcher/ui/Switcher.d.ts +0 -1
- package/dist/components/Switcher/ui/Switcher.js +1 -1
- package/dist/components/Switcher/ui/Switcher.types.d.ts +0 -1
- package/dist/components/TabSelect/ui/TabSelect.d.ts +0 -1
- package/dist/components/TabSelect/ui/TabSelect.js +5 -5
- package/dist/components/TabSwitcher/index.js +2 -2
- package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +0 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +118 -26
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +0 -1
- package/dist/components/Tag/ui/Tag.d.ts +0 -1
- package/dist/components/Tag/ui/Tag.js +91 -91
- package/dist/components/Tag/ui/Tag.types.d.ts +0 -1
- package/dist/components/Text/ui/Text.d.ts +0 -1
- package/dist/components/Text/ui/Text.js +1 -1
- package/dist/components/Text/ui/Text.types.d.ts +0 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextArea/TextArea.types.d.ts +0 -1
- package/dist/components/ZoomControls/ui/ZoomControls.d.ts +0 -1
- package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +0 -1
- package/dist/components/mobileButton/ui/MobileButton.d.ts +0 -1
- package/dist/components/mobileButton/ui/MobileButton.js +1 -1
- package/dist/components/mobileButton/ui/MobileButton.types.d.ts +0 -1
- package/dist/{index-DvCs2JPX.js → index-3E04UaC2.js} +9529 -9629
- package/dist/index-B2JRaoNz.js +48 -0
- package/dist/{index-DmANy9jd.js → index-CBdtKu-u.js} +272 -271
- package/dist/layout/Layout.d.ts +0 -1
- package/dist/layout/components/Header/Header.js +48 -71
- package/dist/layout/components/Menu.js +2 -24
- package/dist/main.js +70 -65
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.d.ts +0 -1
- package/dist/pages/ButtonsPage/Buttons.js +21 -38
- package/dist/pages/FormsPage/FormsPage.js +26 -50
- package/dist/pages/IconsPage/IconsPage.js +9 -31
- package/dist/pages/InputPage/InputPage.js +10 -32
- package/dist/pages/LogoPage/LogoPage.js +13 -35
- package/dist/pages/LotsPage/LotsPage.js +18 -17
- package/dist/pages/LotsPage/const.d.ts +0 -1
- package/dist/pages/ModalsPage/ModalPage.js +46 -66
- package/dist/pages/SelectPage/SelectPage.js +58 -58
- package/dist/pages/TabsPage/TabsPage.js +19 -20
- package/dist/pages/TagsPage/TagsPage.js +23 -44
- package/dist/shared/checkLargeOffice.d.ts +0 -1
- package/dist/shared/checkLargeOffice.js +1 -1
- package/dist/shared/mlnRound.js +1 -2
- package/dist/stone-kit.css +1 -0
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +2 -2
- package/dist/stories/shared/ui/Button/Button.stories.js +5 -5
- package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
- package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
- package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
- package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
- package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
- package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +2 -2
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +8 -8
- package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
- package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
- package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
- package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
- package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
- package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
- package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
- package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
- package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +2 -2
- package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
- package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
- package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
- package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +2 -2
- package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
- package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
- package/dist/useLotCard-DG9doKCX.js +186 -0
- package/dist/useSortSelect-C72ddcYI.js +80 -0
- package/package.json +1 -1
- package/dist/FilterWithSave-DkVYQ7W8.js +0 -2473
- package/dist/index-rKuIKazb.js +0 -45
- package/dist/style.css +0 -1
- package/dist/useSortSelect-CjZXLFOG.js +0 -80
package/dist/App.js
CHANGED
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
import { jsxs as j, jsx as
|
|
2
|
-
import * as
|
|
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 $,
|
|
5
|
-
import "./components/
|
|
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-DkVYQ7W8.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.
|
|
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
|
|
55
|
-
function
|
|
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
|
|
38
|
+
return F(e) && e.tagName.toLowerCase() === "button";
|
|
60
39
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
40
|
+
function fe(e) {
|
|
41
|
+
return F(e) && e.tagName.toLowerCase() === "form";
|
|
63
42
|
}
|
|
64
43
|
function me(e) {
|
|
65
|
-
return
|
|
44
|
+
return F(e) && e.tagName.toLowerCase() === "input";
|
|
66
45
|
}
|
|
67
|
-
function
|
|
46
|
+
function de(e) {
|
|
68
47
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
69
48
|
}
|
|
70
|
-
function
|
|
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
|
-
!
|
|
52
|
+
!de(e);
|
|
74
53
|
}
|
|
75
|
-
let
|
|
76
|
-
function
|
|
77
|
-
if (
|
|
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
|
-
),
|
|
62
|
+
), T = !1;
|
|
84
63
|
} catch {
|
|
85
|
-
|
|
64
|
+
T = !0;
|
|
86
65
|
}
|
|
87
|
-
return
|
|
66
|
+
return T;
|
|
88
67
|
}
|
|
89
|
-
const
|
|
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 && !
|
|
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
|
|
72
|
+
function we(e, n) {
|
|
94
73
|
let r, a, t, o, i;
|
|
95
|
-
if (
|
|
74
|
+
if (fe(e)) {
|
|
96
75
|
let s = e.getAttribute("action");
|
|
97
|
-
a = s ? S(s, n) : null, r = e.getAttribute("method") ||
|
|
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
|
|
103
|
-
if (a =
|
|
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:
|
|
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 (
|
|
94
|
+
if (F(e))
|
|
117
95
|
throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
118
|
-
r =
|
|
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
|
|
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 =
|
|
108
|
+
window.__reactRouterVersion = Ee;
|
|
131
109
|
} catch {
|
|
132
110
|
}
|
|
133
|
-
const Y = /* @__PURE__ */
|
|
111
|
+
const Y = /* @__PURE__ */ u.createContext({
|
|
134
112
|
isTransitioning: !1
|
|
135
113
|
});
|
|
136
114
|
process.env.NODE_ENV !== "production" && (Y.displayName = "ViewTransition");
|
|
137
|
-
const
|
|
138
|
-
process.env.NODE_ENV !== "production" && (
|
|
139
|
-
const
|
|
140
|
-
function
|
|
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 =
|
|
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,
|
|
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 =
|
|
157
|
-
l &&
|
|
158
|
-
}, [
|
|
159
|
-
return
|
|
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
|
|
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:
|
|
154
|
+
target: c,
|
|
177
155
|
to: l,
|
|
178
156
|
preventScrollReset: f,
|
|
179
|
-
|
|
180
|
-
} = n, v = M(n,
|
|
157
|
+
viewTransition: m
|
|
158
|
+
} = n, v = M(n, ye), {
|
|
181
159
|
basename: C
|
|
182
|
-
} =
|
|
183
|
-
if (typeof l == "string" &&
|
|
160
|
+
} = u.useContext(D), y, b = !1;
|
|
161
|
+
if (typeof l == "string" && Ce.test(l) && (y = l, xe))
|
|
184
162
|
try {
|
|
185
|
-
let
|
|
186
|
-
|
|
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 =
|
|
168
|
+
let g = ne(l, {
|
|
191
169
|
relative: t
|
|
192
|
-
}), E =
|
|
170
|
+
}), E = _e(l, {
|
|
193
171
|
replace: i,
|
|
194
172
|
state: s,
|
|
195
|
-
target:
|
|
173
|
+
target: c,
|
|
196
174
|
preventScrollReset: f,
|
|
197
175
|
relative: t,
|
|
198
|
-
|
|
176
|
+
viewTransition: m
|
|
199
177
|
});
|
|
200
|
-
function
|
|
201
|
-
a && a(
|
|
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__ */
|
|
206
|
-
href:
|
|
207
|
-
onClick:
|
|
183
|
+
/* @__PURE__ */ u.createElement("a", x({}, v, {
|
|
184
|
+
href: y || g,
|
|
185
|
+
onClick: b || o ? a : d,
|
|
208
186
|
ref: r,
|
|
209
|
-
target:
|
|
187
|
+
target: c
|
|
210
188
|
}))
|
|
211
189
|
);
|
|
212
190
|
});
|
|
213
191
|
process.env.NODE_ENV !== "production" && (B.displayName = "Link");
|
|
214
|
-
const
|
|
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:
|
|
222
|
-
|
|
199
|
+
to: c,
|
|
200
|
+
viewTransition: l,
|
|
223
201
|
children: f
|
|
224
|
-
} = n,
|
|
225
|
-
relative:
|
|
226
|
-
}), C = W(),
|
|
227
|
-
navigator:
|
|
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
|
-
} =
|
|
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
|
-
|
|
232
|
-
t || (
|
|
233
|
-
const
|
|
234
|
-
let O =
|
|
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__ */
|
|
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:
|
|
247
|
-
|
|
224
|
+
to: c,
|
|
225
|
+
viewTransition: l
|
|
248
226
|
}), typeof f == "function" ? f(V) : f);
|
|
249
227
|
});
|
|
250
|
-
process.env.NODE_ENV !== "production" && (
|
|
251
|
-
const
|
|
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 =
|
|
259
|
-
action:
|
|
236
|
+
method: s = L,
|
|
237
|
+
action: c,
|
|
260
238
|
onSubmit: l,
|
|
261
239
|
relative: f,
|
|
262
|
-
preventScrollReset:
|
|
263
|
-
|
|
264
|
-
} = e, C = M(e,
|
|
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 = (
|
|
267
|
-
if (l && l(
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
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:
|
|
250
|
+
method: p,
|
|
274
251
|
navigate: a,
|
|
275
252
|
replace: o,
|
|
276
253
|
state: i,
|
|
277
254
|
relative: f,
|
|
278
|
-
preventScrollReset:
|
|
279
|
-
|
|
255
|
+
preventScrollReset: m,
|
|
256
|
+
viewTransition: v
|
|
280
257
|
});
|
|
281
258
|
};
|
|
282
|
-
return /* @__PURE__ */
|
|
259
|
+
return /* @__PURE__ */ u.createElement("form", x({
|
|
283
260
|
ref: n,
|
|
284
261
|
method: g,
|
|
285
|
-
action:
|
|
262
|
+
action: b,
|
|
286
263
|
onSubmit: t ? l : E
|
|
287
264
|
}, C));
|
|
288
265
|
});
|
|
289
|
-
process.env.NODE_ENV !== "production" && (
|
|
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
|
|
272
|
+
var H;
|
|
296
273
|
(function(e) {
|
|
297
274
|
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
298
|
-
})(
|
|
299
|
-
function
|
|
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 =
|
|
304
|
-
return n || (process.env.NODE_ENV !== "production" ? N(!1,
|
|
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
|
|
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
|
-
|
|
314
|
-
} = n === void 0 ? {} : n,
|
|
290
|
+
viewTransition: s
|
|
291
|
+
} = n === void 0 ? {} : n, c = re(), l = W(), f = P(e, {
|
|
315
292
|
relative: i
|
|
316
293
|
});
|
|
317
|
-
return
|
|
318
|
-
if (
|
|
319
|
-
|
|
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
|
-
|
|
298
|
+
c(e, {
|
|
322
299
|
replace: v,
|
|
323
300
|
state: t,
|
|
324
301
|
preventScrollReset: o,
|
|
325
302
|
relative: i,
|
|
326
|
-
|
|
303
|
+
viewTransition: s
|
|
327
304
|
});
|
|
328
305
|
}
|
|
329
|
-
}, [l,
|
|
306
|
+
}, [l, c, f, a, t, r, e, o, i, s]);
|
|
330
307
|
}
|
|
331
|
-
function
|
|
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
|
|
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
|
-
} =
|
|
342
|
-
return
|
|
343
|
-
t === void 0 && (t = {}),
|
|
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:
|
|
325
|
+
formData: c,
|
|
349
326
|
body: l
|
|
350
|
-
} =
|
|
327
|
+
} = we(a, n);
|
|
351
328
|
if (t.navigate === !1) {
|
|
352
|
-
let f = t.fetcherKey ||
|
|
329
|
+
let f = t.fetcherKey || Pe();
|
|
353
330
|
e.fetch(f, r, t.action || o, {
|
|
354
331
|
preventScrollReset: t.preventScrollReset,
|
|
355
|
-
formData:
|
|
332
|
+
formData: c,
|
|
356
333
|
body: l,
|
|
357
334
|
formMethod: t.method || i,
|
|
358
335
|
formEncType: t.encType || s,
|
|
359
|
-
|
|
336
|
+
flushSync: t.flushSync
|
|
360
337
|
});
|
|
361
338
|
} else
|
|
362
339
|
e.navigate(t.action || o, {
|
|
363
340
|
preventScrollReset: t.preventScrollReset,
|
|
364
|
-
formData:
|
|
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
|
-
|
|
372
|
-
|
|
348
|
+
flushSync: t.flushSync,
|
|
349
|
+
viewTransition: t.viewTransition
|
|
373
350
|
});
|
|
374
351
|
}, [e, n, r]);
|
|
375
352
|
}
|
|
376
|
-
function
|
|
353
|
+
function Oe(e, n) {
|
|
377
354
|
let {
|
|
378
355
|
relative: r
|
|
379
356
|
} = n === void 0 ? {} : n, {
|
|
380
357
|
basename: a
|
|
381
|
-
} =
|
|
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({},
|
|
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
|
|
389
|
-
|
|
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 :
|
|
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
|
|
374
|
+
function Ve(e, n) {
|
|
394
375
|
n === void 0 && (n = {});
|
|
395
|
-
let r =
|
|
396
|
-
r == null && (process.env.NODE_ENV !== "production" ? 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 =
|
|
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
|
|
408
|
-
root:
|
|
409
|
-
linkWrap:
|
|
410
|
-
},
|
|
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__ */
|
|
419
|
-
|
|
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__ */
|
|
412
|
+
/* @__PURE__ */ w(
|
|
432
413
|
e,
|
|
433
414
|
{
|
|
434
415
|
to: "/buttons",
|
|
435
416
|
title: "КНОПКИ"
|
|
436
417
|
}
|
|
437
418
|
),
|
|
438
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ w(
|
|
439
420
|
e,
|
|
440
421
|
{
|
|
441
422
|
to: "/modals",
|
|
442
423
|
title: "МОДАЛКИ"
|
|
443
424
|
}
|
|
444
425
|
),
|
|
445
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ w(
|
|
446
427
|
e,
|
|
447
428
|
{
|
|
448
429
|
to: "/tabs",
|
|
449
430
|
title: "ТАБЫ"
|
|
450
431
|
}
|
|
451
432
|
),
|
|
452
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ w(
|
|
453
434
|
e,
|
|
454
435
|
{
|
|
455
436
|
to: "/icons",
|
|
456
437
|
title: "ИКОНКИ"
|
|
457
438
|
}
|
|
458
439
|
),
|
|
459
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ w(
|
|
460
441
|
e,
|
|
461
442
|
{
|
|
462
443
|
to: "/lots",
|
|
463
444
|
title: "ЛОТЫ"
|
|
464
445
|
}
|
|
465
446
|
),
|
|
466
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ w(
|
|
467
448
|
e,
|
|
468
449
|
{
|
|
469
450
|
to: "/tags",
|
|
470
451
|
title: "ТЭГИ"
|
|
471
452
|
}
|
|
472
453
|
),
|
|
473
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ w(
|
|
474
455
|
e,
|
|
475
456
|
{
|
|
476
457
|
to: "/select",
|
|
477
458
|
title: "СЕЛЕКТ"
|
|
478
459
|
}
|
|
479
460
|
),
|
|
480
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ w(
|
|
481
462
|
e,
|
|
482
463
|
{
|
|
483
464
|
to: "/forms",
|
|
484
465
|
title: "ФОРМЫ"
|
|
485
466
|
}
|
|
486
467
|
),
|
|
487
|
-
/* @__PURE__ */
|
|
468
|
+
/* @__PURE__ */ w(
|
|
488
469
|
e,
|
|
489
470
|
{
|
|
490
471
|
to: "/logo",
|
|
491
472
|
title: "ЛОГО"
|
|
492
473
|
}
|
|
493
474
|
),
|
|
494
|
-
/* @__PURE__ */
|
|
475
|
+
/* @__PURE__ */ w(
|
|
495
476
|
e,
|
|
496
477
|
{
|
|
497
478
|
to: "/input",
|
|
498
479
|
title: "ИНПУТЫ"
|
|
499
480
|
}
|
|
500
481
|
),
|
|
501
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
512
|
-
|
|
492
|
+
Ke as B,
|
|
493
|
+
je as M
|
|
513
494
|
};
|