stone-kit 0.0.875 → 0.0.877
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/Router.js +9 -9
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/bind.js +4 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/components/Button/ui/Button.js +44 -73
- package/dist/components/CheckBox/CheckBox.js +35 -46
- package/dist/components/CheckBoxNew/CheckBoxNew.js +19 -23
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +24 -31
- package/dist/components/DestinationTab/ui/DestinationTab.js +35 -48
- package/dist/components/FieldInput/ui/FieldInput.js +7 -10
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +61 -5
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +266 -7
- package/dist/components/Flex/ui/Flex.js +26 -61
- package/dist/components/FormModal/ui/ModalForm.js +289 -14
- package/dist/components/GroupedInput/ui/GroupedInputs.js +5 -6
- package/dist/components/Input/ui/Input.js +74 -3307
- package/dist/components/Logo/ui/Logo.js +19 -31
- package/dist/components/Logo/ui/Logo.types.js +18 -10
- package/dist/components/LotCard/hooks/useLotCard.js +125 -11
- package/dist/components/LotCard/index.js +2 -2
- package/dist/components/LotCard/ui/LotCard.js +150 -9
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +31 -58
- package/dist/components/MetroLabel/ui/MetroLabel.js +19 -24
- package/dist/components/MetroTag/ui/MetroTag.js +59 -72
- package/dist/components/Modal/ui/Modal.js +33 -38
- package/dist/components/ModalSuccess/ModalSuccess.js +26 -35
- package/dist/components/NewIcon/icons/PinTrans.js +3 -3
- package/dist/components/NewIcon/icons/SmallFilter.js +1 -1
- package/dist/components/NewIcon/ui/NewIcon.js +141 -301
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +5 -15
- package/dist/components/RoundButton/ui/RoundButton.js +42 -60
- package/dist/components/Select/ui/Category.js +30 -29
- package/dist/components/Select/ui/Option.js +52 -5
- package/dist/components/Select/ui/Select.js +24 -23
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +27 -28
- package/dist/components/SortSelect/hooks/useSortSelect.js +59 -4
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +114 -9
- package/dist/components/SummarySelect/ui/SummarySelect.js +59 -69
- package/dist/components/Switcher/ui/Switcher.js +13 -24
- package/dist/components/TabSelect/ui/TabSelect.js +28 -34
- package/dist/components/TabSwitcher/index.js +2 -2
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +84 -7
- package/dist/components/Tag/ui/Tag.js +19 -67
- package/dist/components/Text/ui/Text.js +12 -13
- package/dist/components/TextArea/TextArea.js +11 -14
- package/dist/components/ZoomControls/ui/ZoomControls.js +8 -11
- package/dist/components/mobileButton/ui/MobileButton.js +34 -39
- package/dist/layout/Layout.js +7 -8
- package/dist/layout/components/Header/Header.js +41 -44
- package/dist/layout/components/Menu.js +111 -6
- package/dist/main.js +46 -42
- package/dist/node_modules/@remix-run/router/dist/router.js +431 -0
- package/dist/node_modules/classnames/bind.js +42 -0
- package/dist/{index-rKuIKazb.js → node_modules/classnames/index.js} +12 -15
- package/dist/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +35 -0
- package/dist/node_modules/imask/esm/controls/html-input-mask-element.js +31 -0
- package/dist/node_modules/imask/esm/controls/html-mask-element.js +48 -0
- package/dist/node_modules/imask/esm/controls/input-history.js +30 -0
- package/dist/node_modules/imask/esm/controls/input.js +224 -0
- package/dist/node_modules/imask/esm/controls/mask-element.js +43 -0
- package/dist/node_modules/imask/esm/core/action-details.js +51 -0
- package/dist/node_modules/imask/esm/core/change-details.js +36 -0
- package/dist/node_modules/imask/esm/core/continuous-tail-details.js +44 -0
- package/dist/node_modules/imask/esm/core/holder.js +6 -0
- package/dist/node_modules/imask/esm/core/utils.js +80 -0
- package/dist/node_modules/imask/esm/index.js +50 -0
- package/dist/node_modules/imask/esm/masked/base.js +257 -0
- package/dist/node_modules/imask/esm/masked/date.js +118 -0
- package/dist/node_modules/imask/esm/masked/dynamic.js +224 -0
- package/dist/node_modules/imask/esm/masked/enum.js +70 -0
- package/dist/node_modules/imask/esm/masked/factory.js +51 -0
- package/dist/node_modules/imask/esm/masked/function.js +23 -0
- package/dist/node_modules/imask/esm/masked/number.js +215 -0
- package/dist/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +110 -0
- package/dist/node_modules/imask/esm/masked/pattern/cursor.js +102 -0
- package/dist/node_modules/imask/esm/masked/pattern/fixed-definition.js +103 -0
- package/dist/node_modules/imask/esm/masked/pattern/input-definition.js +134 -0
- package/dist/node_modules/imask/esm/masked/pattern.js +339 -0
- package/dist/node_modules/imask/esm/masked/pipe.js +23 -0
- package/dist/node_modules/imask/esm/masked/range.js +82 -0
- package/dist/node_modules/imask/esm/masked/regexp.js +21 -0
- package/dist/node_modules/imask/esm/masked/repeat.js +106 -0
- package/dist/node_modules/object-assign/index.js +55 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +55 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +53 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +330 -0
- package/dist/node_modules/prop-types/index.js +15 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +11 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +79 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +1062 -0
- package/dist/node_modules/react-imask/esm/input.js +25 -0
- package/dist/node_modules/react-imask/esm/mixin.js +131 -0
- package/dist/node_modules/react-router/dist/index.js +486 -0
- package/dist/node_modules/react-router-dom/dist/index.js +424 -0
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +1 -1
- package/dist/pages/ButtonsPage/Buttons.js +54 -62
- package/dist/pages/CheckboxPage/CheckboxPage.js +47 -51
- package/dist/pages/FormsPage/FormsPage.js +31 -32
- package/dist/pages/HomePage/HomePage.js +3 -4
- package/dist/pages/IconsPage/IconsPage.js +12 -10
- package/dist/pages/InputPage/InputPage.js +17 -12
- package/dist/pages/LogoPage/LogoPage.js +17 -14
- package/dist/pages/LotsPage/LotsPage.js +15 -15
- package/dist/pages/ModalsPage/ModalPage.js +19 -14
- package/dist/pages/SelectPage/SelectPage.js +42 -41
- package/dist/pages/TabsPage/TabsPage.js +49 -51
- package/dist/pages/TagsPage/TagsPage.js +10 -7
- package/dist/src/components/Button/ui/Button.module.scss.js +49 -0
- package/dist/src/components/CheckBox/s.module.scss.js +24 -0
- package/dist/src/components/CheckBoxNew/s.module.scss.js +13 -0
- package/dist/src/components/CheckboxSelect/ui/s.module.scss.js +19 -0
- package/dist/src/components/DestinationTab/ui/DestinationTab.module.scss.js +23 -0
- package/dist/src/components/FieldInput/ui/FieldInput.module.scss.js +11 -0
- package/dist/src/components/FilterWithSave/ui/s.module.scss.js +39 -0
- package/dist/src/components/Flex/ui/Flex.module.scss.js +41 -0
- package/dist/src/components/FormModal/ui/ModalForm.module.scss.js +31 -0
- package/dist/src/components/GroupedInput/ui/GroupedInputs.module.scss.js +7 -0
- package/dist/src/components/Input/ui/Input.module.scss.js +43 -0
- package/dist/src/components/Logo/assets/LogoBlack.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoDom.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoNewDom.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoNewOffice.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoOffice.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoRealty.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoValue.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoWhite.svg.js +4 -0
- package/dist/src/components/Logo/ui/Logo.module.scss.js +29 -0
- package/dist/src/components/LotCard/assets/testLot.webp.js +4 -0
- package/dist/src/components/LotCard/ui/LotCard.module.scss.js +71 -0
- package/dist/src/components/LotCardSkeleton/ui/LotCardSkeleton.module.scss.js +59 -0
- package/dist/src/components/MetroLabel/ui/MetroLabel.module.scss.js +15 -0
- package/dist/src/components/MetroTag/ui/MetroTag.module.scss.js +31 -0
- package/dist/src/components/Modal/ui/Modal.module.scss.js +15 -0
- package/dist/src/components/ModalSuccess/styles.module.scss.js +23 -0
- package/dist/src/components/NewIcon/assets/ArrowLong.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/ArrowShort.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Auto.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Building.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Burger.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/BurgerClose.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Call.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Callback.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Case.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Check.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Circle.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Close.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/DirectionDown.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Download.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Filter.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Food.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Fullscreen.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Heart.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Layers.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/LayersFilled.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Loader.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Lock.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Metro.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Minus.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/MinusCheck.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Moon.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Park.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Pedestrian.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Phone.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/PhoneFilled.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Pin.svg.js +10 -0
- package/dist/{PinTrans-D6OZq76b.js → src/components/NewIcon/assets/PinTrans.svg.js} +4 -4
- package/dist/src/components/NewIcon/assets/Play.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Play2.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Plus.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Redo.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Ruble.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Search.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/SelectChecked.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/SelectUnchecked.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Share.svg.js +10 -0
- package/dist/{SmallFilter-C-VKnbkP.js → src/components/NewIcon/assets/SmallFilter.svg.js} +3 -3
- package/dist/src/components/NewIcon/assets/Sport.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/SquareMeter.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Star.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/StarFilled.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Sun.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Telegram.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Timer.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/TwoArrows.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/User.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/WhatsApp.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/WithoutDecor.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/arrowRight.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/mail.svg.js +10 -0
- package/dist/src/components/NewIcon/ui/NewIcon.module.scss.js +4 -0
- package/dist/src/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.module.scss.js +25 -0
- package/dist/src/components/RoundButton/ui/RoundButton.module.scss.js +29 -0
- package/dist/src/components/Select/ui/Select.module.scss.js +52 -0
- package/dist/src/components/SliderNavigation/ui/SliderNavigation.module.scss.js +7 -0
- package/dist/src/components/SortSelect/ui/SortSelect.module.scss.js +41 -0
- package/dist/src/components/SummarySelect/ui/SummarySelect.module.scss.js +25 -0
- package/dist/src/components/Switcher/ui/Switcher.module.scss.js +27 -0
- package/dist/src/components/TabSelect/ui/TabSelect.module.scss.js +17 -0
- package/dist/src/components/TabSwitcher/ui/TabSwitcher.module.scss.js +57 -0
- package/dist/src/components/Tag/ui/Tag.module.scss.js +70 -0
- package/dist/src/components/Text/ui/Text.module.scss.js +7 -0
- package/dist/src/components/TextArea/styles.module.scss.js +9 -0
- package/dist/src/components/ZoomControls/ui/ZoomControls.module.scss.js +11 -0
- package/dist/src/components/mobileButton/ui/MobileButton.module.scss.js +12 -0
- package/dist/src/layout/components/Header/s.module.scss.js +19 -0
- package/dist/src/layout/components/Menu.module.scss.js +9 -0
- package/dist/src/layout/style.module.scss.js +7 -0
- package/dist/src/pages/ButtonsPage/ButtonState/ButtonState.js +18 -0
- package/dist/{ButtonState.module-DtW3aevR.js → src/pages/ButtonsPage/ButtonState/ButtonState.module.scss.js} +4 -1
- package/dist/src/pages/ButtonsPage/ButtonsPage.module.scss.js +9 -0
- package/dist/src/pages/CheckboxPage/CheckboxPage.module.scss.js +13 -0
- package/dist/src/pages/FormsPage/FormsPage.module.scss.js +15 -0
- package/dist/src/pages/HomePage/HomePage.module.scss.js +7 -0
- package/dist/src/pages/IconsPage/IconsPage.module.scss.js +9 -0
- package/dist/src/pages/InputPage/InputPage.module.scss.js +4 -0
- package/dist/src/pages/LogoPage/LogoPage.module.scss.js +7 -0
- package/dist/src/pages/LotsPage/LotsPage.module.scss.js +13 -0
- package/dist/src/pages/ModalsPage/ModalPage.module.scss.js +4 -0
- package/dist/src/pages/SelectPage/SelectPage.module.scss.js +11 -0
- package/dist/src/pages/TabsPage/TabsPage.module.scss.js +17 -0
- package/dist/src/pages/TagsPage/TagsPage.module.scss.js +7 -0
- package/dist/src/stories/button.css.js +1 -0
- package/dist/src/stories/header.css.js +1 -0
- package/dist/src/stories/page.css.js +1 -0
- package/dist/stories/Button.js +24 -0
- package/dist/stories/Header.js +45 -0
- package/dist/stories/Page.js +59 -0
- package/dist/style.css +1 -1
- package/package.json +11 -6
- package/dist/FilterWithSave-Bp6rH8Pe.js +0 -2230
- package/dist/Menu-CgCfinVZ.js +0 -513
- package/dist/Option-BVIm7wOW.js +0 -83
- package/dist/index-DmANy9jd.js +0 -890
- package/dist/useSortSelect-CjZXLFOG.js +0 -80
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import "react-dom";
|
|
3
|
+
import { Router as J, UNSAFE_NavigationContext as A, useHref as Q, useResolvedPath as L, useLocation as I, UNSAFE_DataRouterStateContext as Z, useNavigate as $, UNSAFE_useRouteId as ee, UNSAFE_RouteContext as te, UNSAFE_DataRouterContext as ne } from "../../react-router/dist/index.js";
|
|
4
|
+
import { Route as ke, Routes as Ie, UNSAFE_LocationContext as Ke, createRoutesFromChildren as Be, createRoutesFromChildren as Me, useInRouterContext as We, useRouteError as je, useRoutes as ze } from "../../react-router/dist/index.js";
|
|
5
|
+
import { createBrowserHistory as re, stripBasename as y, UNSAFE_warning as z, createPath as k, UNSAFE_invariant as R, joinPaths as ae, matchPath as M } from "../../@remix-run/router/dist/router.js";
|
|
6
|
+
import { Action as qe, isRouteErrorResponse as Ge, matchRoutes as Xe, parsePath as Ye, resolvePath as Je } from "../../@remix-run/router/dist/router.js";
|
|
7
|
+
/**
|
|
8
|
+
* React Router DOM v6.26.0
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Remix Software Inc.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
14
|
+
*
|
|
15
|
+
* @license MIT
|
|
16
|
+
*/
|
|
17
|
+
function N() {
|
|
18
|
+
return N = Object.assign ? Object.assign.bind() : function(e) {
|
|
19
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
20
|
+
var o = arguments[n];
|
|
21
|
+
for (var i in o)
|
|
22
|
+
Object.prototype.hasOwnProperty.call(o, i) && (e[i] = o[i]);
|
|
23
|
+
}
|
|
24
|
+
return e;
|
|
25
|
+
}, N.apply(this, arguments);
|
|
26
|
+
}
|
|
27
|
+
function K(e, n) {
|
|
28
|
+
if (e == null)
|
|
29
|
+
return {};
|
|
30
|
+
var o = {}, i = Object.keys(e), t, r;
|
|
31
|
+
for (r = 0; r < i.length; r++)
|
|
32
|
+
t = i[r], !(n.indexOf(t) >= 0) && (o[t] = e[t]);
|
|
33
|
+
return o;
|
|
34
|
+
}
|
|
35
|
+
const _ = "get", F = "application/x-www-form-urlencoded";
|
|
36
|
+
function U(e) {
|
|
37
|
+
return e != null && typeof e.tagName == "string";
|
|
38
|
+
}
|
|
39
|
+
function oe(e) {
|
|
40
|
+
return U(e) && e.tagName.toLowerCase() === "button";
|
|
41
|
+
}
|
|
42
|
+
function ie(e) {
|
|
43
|
+
return U(e) && e.tagName.toLowerCase() === "form";
|
|
44
|
+
}
|
|
45
|
+
function se(e) {
|
|
46
|
+
return U(e) && e.tagName.toLowerCase() === "input";
|
|
47
|
+
}
|
|
48
|
+
function le(e) {
|
|
49
|
+
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
50
|
+
}
|
|
51
|
+
function ue(e, n) {
|
|
52
|
+
return e.button === 0 && // Ignore everything but left clicks
|
|
53
|
+
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
54
|
+
!le(e);
|
|
55
|
+
}
|
|
56
|
+
let x = null;
|
|
57
|
+
function ce() {
|
|
58
|
+
if (x === null)
|
|
59
|
+
try {
|
|
60
|
+
new FormData(
|
|
61
|
+
document.createElement("form"),
|
|
62
|
+
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
63
|
+
0
|
|
64
|
+
), x = !1;
|
|
65
|
+
} catch {
|
|
66
|
+
x = !0;
|
|
67
|
+
}
|
|
68
|
+
return x;
|
|
69
|
+
}
|
|
70
|
+
const fe = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
71
|
+
function V(e) {
|
|
72
|
+
return e != null && !fe.has(e) ? (process.env.NODE_ENV !== "production" && z(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + F + '"')), null) : e;
|
|
73
|
+
}
|
|
74
|
+
function me(e, n) {
|
|
75
|
+
let o, i, t, r, a;
|
|
76
|
+
if (ie(e)) {
|
|
77
|
+
let l = e.getAttribute("action");
|
|
78
|
+
i = l ? y(l, n) : null, o = e.getAttribute("method") || _, t = V(e.getAttribute("enctype")) || F, r = new FormData(e);
|
|
79
|
+
} else if (oe(e) || se(e) && (e.type === "submit" || e.type === "image")) {
|
|
80
|
+
let l = e.form;
|
|
81
|
+
if (l == null)
|
|
82
|
+
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
83
|
+
let u = e.getAttribute("formaction") || l.getAttribute("action");
|
|
84
|
+
if (i = u ? y(u, n) : null, o = e.getAttribute("formmethod") || l.getAttribute("method") || _, t = V(e.getAttribute("formenctype")) || V(l.getAttribute("enctype")) || F, r = new FormData(l, e), !ce()) {
|
|
85
|
+
let {
|
|
86
|
+
name: s,
|
|
87
|
+
type: m,
|
|
88
|
+
value: h
|
|
89
|
+
} = e;
|
|
90
|
+
if (m === "image") {
|
|
91
|
+
let v = s ? s + "." : "";
|
|
92
|
+
r.append(v + "x", "0"), r.append(v + "y", "0");
|
|
93
|
+
} else
|
|
94
|
+
s && r.append(s, h);
|
|
95
|
+
}
|
|
96
|
+
} else {
|
|
97
|
+
if (U(e))
|
|
98
|
+
throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
99
|
+
o = _, i = null, t = F, a = e;
|
|
100
|
+
}
|
|
101
|
+
return r && t === "text/plain" && (a = r, r = void 0), {
|
|
102
|
+
action: i,
|
|
103
|
+
method: o.toLowerCase(),
|
|
104
|
+
encType: t,
|
|
105
|
+
formData: r,
|
|
106
|
+
body: a
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
const de = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], pe = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], he = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], ve = "6";
|
|
110
|
+
try {
|
|
111
|
+
window.__reactRouterVersion = ve;
|
|
112
|
+
} catch {
|
|
113
|
+
}
|
|
114
|
+
const H = /* @__PURE__ */ c.createContext({
|
|
115
|
+
isTransitioning: !1
|
|
116
|
+
});
|
|
117
|
+
process.env.NODE_ENV !== "production" && (H.displayName = "ViewTransition");
|
|
118
|
+
const be = /* @__PURE__ */ c.createContext(/* @__PURE__ */ new Map());
|
|
119
|
+
process.env.NODE_ENV !== "production" && (be.displayName = "Fetchers");
|
|
120
|
+
const we = "startTransition", W = c[we];
|
|
121
|
+
function Pe(e) {
|
|
122
|
+
let {
|
|
123
|
+
basename: n,
|
|
124
|
+
children: o,
|
|
125
|
+
future: i,
|
|
126
|
+
window: t
|
|
127
|
+
} = e, r = c.useRef();
|
|
128
|
+
r.current == null && (r.current = re({
|
|
129
|
+
window: t,
|
|
130
|
+
v5Compat: !0
|
|
131
|
+
}));
|
|
132
|
+
let a = r.current, [l, u] = c.useState({
|
|
133
|
+
action: a.action,
|
|
134
|
+
location: a.location
|
|
135
|
+
}), {
|
|
136
|
+
v7_startTransition: s
|
|
137
|
+
} = i || {}, m = c.useCallback((h) => {
|
|
138
|
+
s && W ? W(() => u(h)) : u(h);
|
|
139
|
+
}, [u, s]);
|
|
140
|
+
return c.useLayoutEffect(() => a.listen(m), [a, m]), /* @__PURE__ */ c.createElement(J, {
|
|
141
|
+
basename: n,
|
|
142
|
+
children: o,
|
|
143
|
+
location: l.location,
|
|
144
|
+
navigationType: l.action,
|
|
145
|
+
navigator: a,
|
|
146
|
+
future: i
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
process.env.NODE_ENV;
|
|
150
|
+
const Ee = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Se = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, q = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
151
|
+
let {
|
|
152
|
+
onClick: i,
|
|
153
|
+
relative: t,
|
|
154
|
+
reloadDocument: r,
|
|
155
|
+
replace: a,
|
|
156
|
+
state: l,
|
|
157
|
+
target: u,
|
|
158
|
+
to: s,
|
|
159
|
+
preventScrollReset: m,
|
|
160
|
+
unstable_viewTransition: h
|
|
161
|
+
} = n, v = K(n, de), {
|
|
162
|
+
basename: g
|
|
163
|
+
} = c.useContext(A), b, w = !1;
|
|
164
|
+
if (typeof s == "string" && Se.test(s) && (b = s, Ee))
|
|
165
|
+
try {
|
|
166
|
+
let p = new URL(window.location.href), d = s.startsWith("//") ? new URL(p.protocol + s) : new URL(s), C = y(d.pathname, g);
|
|
167
|
+
d.origin === p.origin && C != null ? s = C + d.search + d.hash : w = !0;
|
|
168
|
+
} catch {
|
|
169
|
+
process.env.NODE_ENV !== "production" && z(!1, '<Link to="' + s + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
170
|
+
}
|
|
171
|
+
let E = Q(s, {
|
|
172
|
+
relative: t
|
|
173
|
+
}), S = ge(s, {
|
|
174
|
+
replace: a,
|
|
175
|
+
state: l,
|
|
176
|
+
target: u,
|
|
177
|
+
preventScrollReset: m,
|
|
178
|
+
relative: t,
|
|
179
|
+
unstable_viewTransition: h
|
|
180
|
+
});
|
|
181
|
+
function f(p) {
|
|
182
|
+
i && i(p), p.defaultPrevented || S(p);
|
|
183
|
+
}
|
|
184
|
+
return (
|
|
185
|
+
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
186
|
+
/* @__PURE__ */ c.createElement("a", N({}, v, {
|
|
187
|
+
href: b || E,
|
|
188
|
+
onClick: w || r ? i : f,
|
|
189
|
+
ref: o,
|
|
190
|
+
target: u
|
|
191
|
+
}))
|
|
192
|
+
);
|
|
193
|
+
});
|
|
194
|
+
process.env.NODE_ENV !== "production" && (q.displayName = "Link");
|
|
195
|
+
const ye = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
196
|
+
let {
|
|
197
|
+
"aria-current": i = "page",
|
|
198
|
+
caseSensitive: t = !1,
|
|
199
|
+
className: r = "",
|
|
200
|
+
end: a = !1,
|
|
201
|
+
style: l,
|
|
202
|
+
to: u,
|
|
203
|
+
unstable_viewTransition: s,
|
|
204
|
+
children: m
|
|
205
|
+
} = n, h = K(n, pe), v = L(u, {
|
|
206
|
+
relative: h.relative
|
|
207
|
+
}), g = I(), b = c.useContext(Z), {
|
|
208
|
+
navigator: w,
|
|
209
|
+
basename: E
|
|
210
|
+
} = c.useContext(A), S = b != null && // Conditional usage is OK here because the usage of a data router is static
|
|
211
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
212
|
+
Ae(v) && s === !0, f = w.encodeLocation ? w.encodeLocation(v).pathname : v.pathname, p = g.pathname, d = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
|
|
213
|
+
t || (p = p.toLowerCase(), d = d ? d.toLowerCase() : null, f = f.toLowerCase()), d && E && (d = y(d, E) || d);
|
|
214
|
+
const C = f !== "/" && f.endsWith("/") ? f.length - 1 : f.length;
|
|
215
|
+
let D = p === f || !a && p.startsWith(f) && p.charAt(C) === "/", B = d != null && (d === f || !a && d.startsWith(f) && d.charAt(f.length) === "/"), P = {
|
|
216
|
+
isActive: D,
|
|
217
|
+
isPending: B,
|
|
218
|
+
isTransitioning: S
|
|
219
|
+
}, X = D ? i : void 0, O;
|
|
220
|
+
typeof r == "function" ? O = r(P) : O = [r, D ? "active" : null, B ? "pending" : null, S ? "transitioning" : null].filter(Boolean).join(" ");
|
|
221
|
+
let Y = typeof l == "function" ? l(P) : l;
|
|
222
|
+
return /* @__PURE__ */ c.createElement(q, N({}, h, {
|
|
223
|
+
"aria-current": X,
|
|
224
|
+
className: O,
|
|
225
|
+
ref: o,
|
|
226
|
+
style: Y,
|
|
227
|
+
to: u,
|
|
228
|
+
unstable_viewTransition: s
|
|
229
|
+
}), typeof m == "function" ? m(P) : m);
|
|
230
|
+
});
|
|
231
|
+
process.env.NODE_ENV !== "production" && (ye.displayName = "NavLink");
|
|
232
|
+
const Re = /* @__PURE__ */ c.forwardRef((e, n) => {
|
|
233
|
+
let {
|
|
234
|
+
fetcherKey: o,
|
|
235
|
+
navigate: i,
|
|
236
|
+
reloadDocument: t,
|
|
237
|
+
replace: r,
|
|
238
|
+
state: a,
|
|
239
|
+
method: l = _,
|
|
240
|
+
action: u,
|
|
241
|
+
onSubmit: s,
|
|
242
|
+
relative: m,
|
|
243
|
+
preventScrollReset: h,
|
|
244
|
+
unstable_viewTransition: v
|
|
245
|
+
} = e, g = K(e, he), b = Fe(), w = Te(u, {
|
|
246
|
+
relative: m
|
|
247
|
+
}), E = l.toLowerCase() === "get" ? "get" : "post", S = (f) => {
|
|
248
|
+
if (s && s(f), f.defaultPrevented)
|
|
249
|
+
return;
|
|
250
|
+
f.preventDefault();
|
|
251
|
+
let p = f.nativeEvent.submitter, d = (p == null ? void 0 : p.getAttribute("formmethod")) || l;
|
|
252
|
+
b(p || f.currentTarget, {
|
|
253
|
+
fetcherKey: o,
|
|
254
|
+
method: d,
|
|
255
|
+
navigate: i,
|
|
256
|
+
replace: r,
|
|
257
|
+
state: a,
|
|
258
|
+
relative: m,
|
|
259
|
+
preventScrollReset: h,
|
|
260
|
+
unstable_viewTransition: v
|
|
261
|
+
});
|
|
262
|
+
};
|
|
263
|
+
return /* @__PURE__ */ c.createElement("form", N({
|
|
264
|
+
ref: n,
|
|
265
|
+
method: E,
|
|
266
|
+
action: w,
|
|
267
|
+
onSubmit: t ? s : S
|
|
268
|
+
}, g));
|
|
269
|
+
});
|
|
270
|
+
process.env.NODE_ENV !== "production" && (Re.displayName = "Form");
|
|
271
|
+
process.env.NODE_ENV;
|
|
272
|
+
var T;
|
|
273
|
+
(function(e) {
|
|
274
|
+
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
|
|
275
|
+
})(T || (T = {}));
|
|
276
|
+
var j;
|
|
277
|
+
(function(e) {
|
|
278
|
+
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
279
|
+
})(j || (j = {}));
|
|
280
|
+
function Ne(e) {
|
|
281
|
+
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
282
|
+
}
|
|
283
|
+
function G(e) {
|
|
284
|
+
let n = c.useContext(ne);
|
|
285
|
+
return n || (process.env.NODE_ENV !== "production" ? R(!1, Ne(e)) : R(!1)), n;
|
|
286
|
+
}
|
|
287
|
+
function ge(e, n) {
|
|
288
|
+
let {
|
|
289
|
+
target: o,
|
|
290
|
+
replace: i,
|
|
291
|
+
state: t,
|
|
292
|
+
preventScrollReset: r,
|
|
293
|
+
relative: a,
|
|
294
|
+
unstable_viewTransition: l
|
|
295
|
+
} = n === void 0 ? {} : n, u = $(), s = I(), m = L(e, {
|
|
296
|
+
relative: a
|
|
297
|
+
});
|
|
298
|
+
return c.useCallback((h) => {
|
|
299
|
+
if (ue(h, o)) {
|
|
300
|
+
h.preventDefault();
|
|
301
|
+
let v = i !== void 0 ? i : k(s) === k(m);
|
|
302
|
+
u(e, {
|
|
303
|
+
replace: v,
|
|
304
|
+
state: t,
|
|
305
|
+
preventScrollReset: r,
|
|
306
|
+
relative: a,
|
|
307
|
+
unstable_viewTransition: l
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
}, [s, u, m, i, t, o, e, r, a, l]);
|
|
311
|
+
}
|
|
312
|
+
function Ce() {
|
|
313
|
+
if (typeof document > "u")
|
|
314
|
+
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
315
|
+
}
|
|
316
|
+
let xe = 0, _e = () => "__" + String(++xe) + "__";
|
|
317
|
+
function Fe() {
|
|
318
|
+
let {
|
|
319
|
+
router: e
|
|
320
|
+
} = G(T.UseSubmit), {
|
|
321
|
+
basename: n
|
|
322
|
+
} = c.useContext(A), o = ee();
|
|
323
|
+
return c.useCallback(function(i, t) {
|
|
324
|
+
t === void 0 && (t = {}), Ce();
|
|
325
|
+
let {
|
|
326
|
+
action: r,
|
|
327
|
+
method: a,
|
|
328
|
+
encType: l,
|
|
329
|
+
formData: u,
|
|
330
|
+
body: s
|
|
331
|
+
} = me(i, n);
|
|
332
|
+
if (t.navigate === !1) {
|
|
333
|
+
let m = t.fetcherKey || _e();
|
|
334
|
+
e.fetch(m, o, t.action || r, {
|
|
335
|
+
preventScrollReset: t.preventScrollReset,
|
|
336
|
+
formData: u,
|
|
337
|
+
body: s,
|
|
338
|
+
formMethod: t.method || a,
|
|
339
|
+
formEncType: t.encType || l,
|
|
340
|
+
unstable_flushSync: t.unstable_flushSync
|
|
341
|
+
});
|
|
342
|
+
} else
|
|
343
|
+
e.navigate(t.action || r, {
|
|
344
|
+
preventScrollReset: t.preventScrollReset,
|
|
345
|
+
formData: u,
|
|
346
|
+
body: s,
|
|
347
|
+
formMethod: t.method || a,
|
|
348
|
+
formEncType: t.encType || l,
|
|
349
|
+
replace: t.replace,
|
|
350
|
+
state: t.state,
|
|
351
|
+
fromRouteId: o,
|
|
352
|
+
unstable_flushSync: t.unstable_flushSync,
|
|
353
|
+
unstable_viewTransition: t.unstable_viewTransition
|
|
354
|
+
});
|
|
355
|
+
}, [e, n, o]);
|
|
356
|
+
}
|
|
357
|
+
function Te(e, n) {
|
|
358
|
+
let {
|
|
359
|
+
relative: o
|
|
360
|
+
} = n === void 0 ? {} : n, {
|
|
361
|
+
basename: i
|
|
362
|
+
} = c.useContext(A), t = c.useContext(te);
|
|
363
|
+
t || (process.env.NODE_ENV !== "production" ? R(!1, "useFormAction must be used inside a RouteContext") : R(!1));
|
|
364
|
+
let [r] = t.matches.slice(-1), a = N({}, L(e || ".", {
|
|
365
|
+
relative: o
|
|
366
|
+
})), l = I();
|
|
367
|
+
if (e == null) {
|
|
368
|
+
a.search = l.search;
|
|
369
|
+
let u = new URLSearchParams(a.search);
|
|
370
|
+
u.has("index") && u.get("index") === "" && (u.delete("index"), a.search = u.toString() ? "?" + u.toString() : "");
|
|
371
|
+
}
|
|
372
|
+
return (!e || e === ".") && r.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), i !== "/" && (a.pathname = a.pathname === "/" ? i : ae([i, a.pathname])), k(a);
|
|
373
|
+
}
|
|
374
|
+
function Ae(e, n) {
|
|
375
|
+
n === void 0 && (n = {});
|
|
376
|
+
let o = c.useContext(H);
|
|
377
|
+
o == null && (process.env.NODE_ENV !== "production" ? R(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : R(!1));
|
|
378
|
+
let {
|
|
379
|
+
basename: i
|
|
380
|
+
} = G(T.useViewTransitionState), t = L(e, {
|
|
381
|
+
relative: n.relative
|
|
382
|
+
});
|
|
383
|
+
if (!o.isTransitioning)
|
|
384
|
+
return !1;
|
|
385
|
+
let r = y(o.currentLocation.pathname, i) || o.currentLocation.pathname, a = y(o.nextLocation.pathname, i) || o.nextLocation.pathname;
|
|
386
|
+
return M(t.pathname, a) != null || M(t.pathname, r) != null;
|
|
387
|
+
}
|
|
388
|
+
export {
|
|
389
|
+
Pe as BrowserRouter,
|
|
390
|
+
Re as Form,
|
|
391
|
+
q as Link,
|
|
392
|
+
ye as NavLink,
|
|
393
|
+
qe as NavigationType,
|
|
394
|
+
ke as Route,
|
|
395
|
+
J as Router,
|
|
396
|
+
Ie as Routes,
|
|
397
|
+
ne as UNSAFE_DataRouterContext,
|
|
398
|
+
Z as UNSAFE_DataRouterStateContext,
|
|
399
|
+
be as UNSAFE_FetchersContext,
|
|
400
|
+
Ke as UNSAFE_LocationContext,
|
|
401
|
+
A as UNSAFE_NavigationContext,
|
|
402
|
+
te as UNSAFE_RouteContext,
|
|
403
|
+
H as UNSAFE_ViewTransitionContext,
|
|
404
|
+
ee as UNSAFE_useRouteId,
|
|
405
|
+
k as createPath,
|
|
406
|
+
Be as createRoutesFromChildren,
|
|
407
|
+
Me as createRoutesFromElements,
|
|
408
|
+
Ge as isRouteErrorResponse,
|
|
409
|
+
M as matchPath,
|
|
410
|
+
Xe as matchRoutes,
|
|
411
|
+
Ye as parsePath,
|
|
412
|
+
Je as resolvePath,
|
|
413
|
+
Ae as unstable_useViewTransitionState,
|
|
414
|
+
Te as useFormAction,
|
|
415
|
+
Q as useHref,
|
|
416
|
+
We as useInRouterContext,
|
|
417
|
+
ge as useLinkClickHandler,
|
|
418
|
+
I as useLocation,
|
|
419
|
+
$ as useNavigate,
|
|
420
|
+
L as useResolvedPath,
|
|
421
|
+
je as useRouteError,
|
|
422
|
+
ze as useRoutes,
|
|
423
|
+
Fe as useSubmit
|
|
424
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import y, { useState as o } from "react";
|
|
3
|
-
import
|
|
3
|
+
import i from "../../../src/pages/ButtonsPage/ButtonState/ButtonState.module.scss.js";
|
|
4
4
|
import { BUTTON_VARIANTS as T } from "../../../components/Button/ui/Button.types.js";
|
|
5
5
|
import { NewIcon as d, iconTypes as V } from "../../../components/NewIcon/ui/NewIcon.js";
|
|
6
6
|
const _ = ({ children: h }) => {
|
|
@@ -1,49 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { Button as
|
|
1
|
+
import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as n } from "react";
|
|
3
|
+
import { Button as p } from "../../components/Button/ui/Button.js";
|
|
4
4
|
import "../../components/mobileButton/ui/MobileButton.js";
|
|
5
|
-
import { NewIcon as
|
|
5
|
+
import { NewIcon as a } from "../../components/NewIcon/ui/NewIcon.js";
|
|
6
6
|
import "../../components/DestinationTab/ui/DestinationTab.js";
|
|
7
|
-
import { RoundButton as
|
|
7
|
+
import { RoundButton as l } from "../../components/RoundButton/ui/RoundButton.js";
|
|
8
8
|
import "../../components/Tag/ui/Tag.js";
|
|
9
|
-
import { Switcher as
|
|
9
|
+
import { Switcher as c } from "../../components/Switcher/ui/Switcher.js";
|
|
10
10
|
import "../../components/Text/ui/Text.js";
|
|
11
11
|
import "../../components/Flex/ui/Flex.js";
|
|
12
12
|
import "../../components/Input/ui/Input.js";
|
|
13
13
|
import "react-dom";
|
|
14
|
-
import "../../
|
|
14
|
+
import "../../components/TabSwitcher/ui/TabSwitcher.js";
|
|
15
15
|
import "../../components/GroupedInput/ui/GroupedInputs.js";
|
|
16
|
-
import "../../index
|
|
16
|
+
import "../../node_modules/classnames/index.js";
|
|
17
17
|
import "../../components/MetroTag/ui/MetroTag.js";
|
|
18
|
+
import "../../components/LotCard/ui/LotCard.js";
|
|
18
19
|
import "../../components/Select/ui/Select.js";
|
|
19
|
-
import
|
|
20
|
+
import "../../components/SortSelect/ui/SortSelect.js";
|
|
21
|
+
import { SliderNavigation as d } from "../../components/SliderNavigation/ui/SliderNavigation.js";
|
|
20
22
|
import "../../components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
21
23
|
import "../../components/TabSelect/ui/TabSelect.js";
|
|
22
|
-
import { ZoomControls as
|
|
24
|
+
import { ZoomControls as h } from "../../components/ZoomControls/ui/ZoomControls.js";
|
|
25
|
+
import "../../components/FormModal/ui/ModalForm.js";
|
|
26
|
+
import "../../components/FilterWithSave/ui/FilterWithSave.js";
|
|
23
27
|
import "../../components/CheckBox/CheckBox.js";
|
|
24
28
|
import "../../components/CheckBoxNew/CheckBoxNew.js";
|
|
25
29
|
import "../../components/CheckboxSelect/ui/CheckboxSelect.js";
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
isLoading: h,
|
|
36
|
-
pre: m ? t(d, { name: m, size: N ?? "24" }) : null,
|
|
37
|
-
post: p ? t(d, { name: p, size: k ?? "24" }) : null
|
|
38
|
-
}), x = ["auto", "full"], L = Object.values(j), v = Object.keys(A);
|
|
39
|
-
return i("div", { className: a.root, children: [_, i("div", { className: a.optionsWrapper, children: [t("div", { children: i("label", { children: ["Width:", t("select", { onChange: (e) => c(e.target.value), children: x.map((e) => t("option", { value: e, children: e }, e)) })] }) }), t("div", { children: i("label", { children: ["Variants:", t("select", { onChange: (e) => f(e.target.value), children: L.map((e) => t("option", { value: e, children: e }, e)) })] }) }), t("div", { children: i("label", { children: ["Pre Icon:", t("select", { onChange: (e) => I(e.target.value), children: v.map((e) => t("option", { value: e, children: e }, e)) })] }) }), t("div", { children: i("label", { children: ["Post Icon:", t("select", { onChange: (e) => S(e.target.value), children: v.map((e) => t("option", { value: e, children: e }, e)) })] }) }), t("div", { children: i("label", { children: ["Pre Icon Size:", t("select", { onChange: (e) => C(e.target.value), children: u.map((e) => t("option", { value: e, children: e }, e)) })] }) }), t("div", { children: i("label", { children: ["Post Icon Size:", t("select", { onChange: (e) => P(e.target.value), children: u.map((e) => t("option", { value: e, children: e }, e)) })] }) }), i("label", { className: a.isLoading, children: ["isLoading", t("input", { type: "checkbox", onChange: () => z(!h) })] })] })] });
|
|
40
|
-
}, he = () => {
|
|
41
|
-
const [o, l] = n(!0), [c, s] = n(!1);
|
|
42
|
-
return /* @__PURE__ */ i("div", { className: r.root, children: [
|
|
43
|
-
/* @__PURE__ */ i("div", { className: r.clearButton, children: [
|
|
44
|
-
/* @__PURE__ */ t("h2", { children: "Обычная" }),
|
|
45
|
-
/* @__PURE__ */ t("div", { className: r.buttonsWrapper, children: /* @__PURE__ */ t(V, { children: /* @__PURE__ */ t(
|
|
46
|
-
w,
|
|
30
|
+
import o from "../../src/pages/ButtonsPage/ButtonsPage.module.scss.js";
|
|
31
|
+
import { ButtonState as v } from "../../src/pages/ButtonsPage/ButtonState/ButtonState.js";
|
|
32
|
+
const M = () => {
|
|
33
|
+
const [r, e] = n(!0), [m, s] = n(!1);
|
|
34
|
+
return /* @__PURE__ */ t("div", { className: o.root, children: [
|
|
35
|
+
/* @__PURE__ */ t("div", { className: o.clearButton, children: [
|
|
36
|
+
/* @__PURE__ */ i("h2", { children: "Обычная" }),
|
|
37
|
+
/* @__PURE__ */ i("div", { className: o.buttonsWrapper, children: /* @__PURE__ */ i(v, { children: /* @__PURE__ */ i(
|
|
38
|
+
p,
|
|
47
39
|
{
|
|
48
40
|
as: "button",
|
|
49
41
|
size: "large",
|
|
@@ -52,42 +44,42 @@ const O = "_root_iex42_1", T = "_buttonsWrapper_iex42_11", r = {
|
|
|
52
44
|
}
|
|
53
45
|
) }) })
|
|
54
46
|
] }),
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
|
|
47
|
+
/* @__PURE__ */ t("div", { className: o.clearButton, children: [
|
|
48
|
+
/* @__PURE__ */ i("h2", { children: "Круглая" }),
|
|
49
|
+
/* @__PURE__ */ t("div", { className: o.buttonsWrapper, children: [
|
|
50
|
+
/* @__PURE__ */ i(
|
|
51
|
+
l,
|
|
60
52
|
{
|
|
61
|
-
variant:
|
|
53
|
+
variant: r ? "blackFill" : "whiteStroke",
|
|
62
54
|
size: "tiny",
|
|
63
|
-
onClick: () =>
|
|
64
|
-
children: /* @__PURE__ */
|
|
65
|
-
|
|
55
|
+
onClick: () => e(!r),
|
|
56
|
+
children: /* @__PURE__ */ i(
|
|
57
|
+
a,
|
|
66
58
|
{
|
|
67
59
|
name: "close",
|
|
68
60
|
size: "12",
|
|
69
|
-
color:
|
|
61
|
+
color: r ? "#fff" : "#000"
|
|
70
62
|
}
|
|
71
63
|
)
|
|
72
64
|
}
|
|
73
65
|
),
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
|
|
66
|
+
/* @__PURE__ */ i(
|
|
67
|
+
l,
|
|
76
68
|
{
|
|
77
69
|
iconName: "close",
|
|
78
|
-
variant:
|
|
70
|
+
variant: r ? "blackFill" : "whiteStroke",
|
|
79
71
|
deg: "90",
|
|
80
72
|
size: "tiny",
|
|
81
73
|
size_l: "small",
|
|
82
|
-
onClick: () =>
|
|
74
|
+
onClick: () => e(!r)
|
|
83
75
|
}
|
|
84
76
|
)
|
|
85
77
|
] })
|
|
86
78
|
] }),
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
|
|
79
|
+
/* @__PURE__ */ t("div", { children: [
|
|
80
|
+
/* @__PURE__ */ i("h2", { children: "Зум" }),
|
|
81
|
+
/* @__PURE__ */ i(
|
|
82
|
+
h,
|
|
91
83
|
{
|
|
92
84
|
size: "medium",
|
|
93
85
|
zoomIn: () => {
|
|
@@ -97,10 +89,10 @@ const O = "_root_iex42_1", T = "_buttonsWrapper_iex42_11", r = {
|
|
|
97
89
|
}
|
|
98
90
|
)
|
|
99
91
|
] }),
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
|
|
92
|
+
/* @__PURE__ */ t("div", { children: [
|
|
93
|
+
/* @__PURE__ */ i("h2", { children: "Слайдер" }),
|
|
94
|
+
/* @__PURE__ */ i(
|
|
95
|
+
d,
|
|
104
96
|
{
|
|
105
97
|
goNext: () => {
|
|
106
98
|
},
|
|
@@ -111,24 +103,24 @@ const O = "_root_iex42_1", T = "_buttonsWrapper_iex42_11", r = {
|
|
|
111
103
|
}
|
|
112
104
|
)
|
|
113
105
|
] }),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
|
|
106
|
+
/* @__PURE__ */ i(
|
|
107
|
+
c,
|
|
116
108
|
{
|
|
117
|
-
isActive:
|
|
118
|
-
onClick: () =>
|
|
109
|
+
isActive: r,
|
|
110
|
+
onClick: () => e(!r),
|
|
119
111
|
children: "В продаже"
|
|
120
112
|
}
|
|
121
113
|
),
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
|
|
114
|
+
/* @__PURE__ */ i(
|
|
115
|
+
c,
|
|
124
116
|
{
|
|
125
|
-
isActive:
|
|
126
|
-
onClick: () => s(!
|
|
117
|
+
isActive: m,
|
|
118
|
+
onClick: () => s(!m),
|
|
127
119
|
children: "В продаже"
|
|
128
120
|
}
|
|
129
121
|
)
|
|
130
122
|
] });
|
|
131
123
|
};
|
|
132
124
|
export {
|
|
133
|
-
|
|
125
|
+
M as ButtonsPage
|
|
134
126
|
};
|