stone-kit 0.0.1105 → 0.0.1107
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/README.md +30 -0
- package/dist/App.d.ts +2 -0
- package/dist/App.js +10 -0
- package/dist/Option-DmDx_xOt.js +99 -0
- package/dist/PinTrans-D6OZq76b.js +10 -0
- package/dist/Router.d.ts +2 -0
- package/dist/Router.js +103 -0
- package/dist/SmallFilter-C-VKnbkP.js +10 -0
- package/dist/chunk-4WY6JWTD-BeveLKf_.js +1582 -0
- package/dist/components/Button/ui/Button.d.ts +1 -2
- package/dist/components/Button/ui/Button.js +74 -67
- package/dist/components/Button/ui/Button.types.d.ts +7 -5
- package/dist/components/Button/ui/Button.types.js +5 -3
- package/dist/components/CheckBox/CheckBox.d.ts +2 -0
- package/dist/components/CheckBox/CheckBox.js +84 -0
- package/dist/components/CheckBox/CheckBox.types.d.ts +17 -0
- package/dist/components/CheckBox/CheckBox.types.js +1 -0
- package/dist/components/CheckBox/index.d.ts +2 -0
- package/dist/components/CheckBox/index.js +4 -0
- package/dist/components/CheckBoxNew/CheckBox.types.d.ts +16 -0
- package/dist/components/CheckBoxNew/CheckBox.types.js +6 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +11 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.js +45 -0
- package/dist/components/CheckboxSelect/index.d.ts +1 -0
- package/dist/components/CheckboxSelect/index.js +4 -0
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +18 -0
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +57 -0
- package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +2 -0
- package/dist/components/CommercialLotCard/CommercialLotCard.js +81 -0
- package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.d.ts +6 -0
- package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.js +21 -0
- package/dist/components/CommercialLotCard/components/Price/Price.d.ts +9 -0
- package/dist/components/CommercialLotCard/components/Price/Price.js +39 -0
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +6 -0
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +100 -0
- package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +7 -0
- package/dist/components/CommercialLotCard/components/Tags/Tags.js +37 -0
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +10 -0
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.js +1 -0
- package/dist/components/CommercialLotCard/types/LotCard.d.ts +386 -0
- package/dist/components/CommercialLotCard/types/LotCard.js +1 -0
- package/dist/components/CommercialLotCard/utils/formatPrice.d.ts +1 -0
- package/dist/components/CommercialLotCard/utils/formatPrice.js +8 -0
- package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +4 -0
- package/dist/components/CommercialLotCard/utils/getTagsFeatures.js +13 -0
- 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/FavoriteIcon/FavoriteIcon.d.ts +7 -0
- package/dist/components/FavoriteIcon/FavoriteIcon.js +66 -0
- package/dist/components/FavoriteIcon/Heart.d.ts +3 -0
- package/dist/components/FavoriteIcon/Heart.js +24 -0
- package/dist/components/FavoriteIcon/HeartFilled.d.ts +5 -0
- package/dist/components/FavoriteIcon/HeartFilled.js +27 -0
- package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -2
- package/dist/components/FieldInput/ui/FieldInput.js +28 -7
- package/dist/components/FieldInput/ui/FieldInput.types.d.ts +3 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +43 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +56 -0
- package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +29 -0
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +325 -0
- 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.d.ts +60 -0
- package/dist/components/FormModal/ui/ModalForm.js +1518 -0
- package/dist/components/FormModal/utils/reg.d.ts +4 -0
- package/dist/components/FormModal/utils/reg.js +6 -0
- package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +0 -1
- package/dist/components/GroupedInput/ui/GroupedInputs.js +5 -5
- package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +0 -1
- package/dist/components/Input/ui/Input.d.ts +28 -0
- package/dist/components/Input/ui/Input.js +3247 -49
- package/dist/components/Input/ui/Input.types.d.ts +0 -23
- package/dist/components/Input/ui/Input.types.js +1 -7
- package/dist/components/Logo/ui/Logo.d.ts +1 -2
- package/dist/components/Logo/ui/Logo.js +58 -33
- package/dist/components/Logo/ui/Logo.types.d.ts +13 -1
- package/dist/components/Logo/ui/Logo.types.js +14 -1
- package/dist/components/LotCard/hooks/useLotCard.d.ts +25 -0
- package/dist/components/LotCard/hooks/useLotCard.js +13 -0
- package/dist/components/LotCard/ui/LotCard.d.ts +1 -2
- package/dist/components/LotCard/ui/LotCard.js +203 -104
- package/dist/components/LotCard/ui/LotCard.types.d.ts +234 -75
- package/dist/components/LotCard/utils/checkBedroomsCount.js +2 -2
- package/dist/components/LotCard/utils/const.d.ts +8 -0
- package/dist/components/LotCard/utils/const.js +11 -0
- package/dist/components/LotCard/utils/formatPrice.d.ts +1 -1
- package/dist/components/LotCard/utils/formatPrice.js +5 -6
- package/dist/components/LotCard/utils/getTagsFeatures.d.ts +4 -0
- package/dist/components/LotCard/utils/getTagsFeatures.js +13 -0
- package/dist/components/LotCard/utils/monthlyPayment.d.ts +1 -0
- package/dist/components/LotCard/utils/monthlyPayment.js +4 -0
- package/dist/components/LotCardSkeleton/index.d.ts +1 -0
- package/dist/components/LotCardSkeleton/index.js +4 -0
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.d.ts +5 -0
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +83 -0
- package/dist/components/MetroLabel/ui/MetroLabel.d.ts +0 -1
- package/dist/components/MetroLabel/ui/MetroLabel.js +19 -19
- package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +0 -1
- package/dist/components/MetroTag/ui/MetroTag.d.ts +1 -2
- package/dist/components/MetroTag/ui/MetroTag.js +121 -25
- package/dist/components/MetroTag/ui/MetroTag.types.d.ts +21 -6
- package/dist/components/Modal/ui/Modal.d.ts +2 -17
- package/dist/components/Modal/ui/Modal.js +63 -19594
- package/dist/components/Modal/ui/Modal.types.d.ts +21 -0
- package/dist/components/ModalSuccess/ModalSuccess.d.ts +2 -0
- package/dist/components/ModalSuccess/ModalSuccess.js +60 -0
- package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +8 -0
- package/dist/components/ModalSuccess/ModalSuccess.types.js +1 -0
- package/dist/components/ModalSuccess/index.d.ts +1 -0
- package/dist/components/ModalSuccess/index.js +4 -0
- package/dist/components/NewIcon/icons/PinTrans.d.ts +3 -0
- package/dist/components/NewIcon/icons/PinTrans.js +6 -0
- package/dist/components/NewIcon/icons/SmallFilter.d.ts +3 -0
- package/dist/components/NewIcon/icons/SmallFilter.js +6 -0
- package/dist/components/NewIcon/index.d.ts +1 -1
- package/dist/components/NewIcon/index.js +3 -2
- package/dist/components/NewIcon/ui/NewIcon.d.ts +2 -2
- package/dist/components/NewIcon/ui/NewIcon.js +204 -99
- package/dist/components/NewIcon/ui/NewIcon.types.d.ts +0 -1
- package/dist/components/NewIcon/ui/iconTypes.d.ts +3 -0
- package/dist/components/NewIcon/ui/iconTypes.js +60 -0
- package/dist/components/ProjectCardSkeleton/index.d.ts +1 -0
- package/dist/components/ProjectCardSkeleton/index.js +4 -0
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.d.ts +1 -0
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +32 -0
- package/dist/components/RoundButton/ui/RoundButton.d.ts +1 -2
- package/dist/components/RoundButton/ui/RoundButton.js +56 -45
- package/dist/components/RoundButton/ui/RoundButton.types.d.ts +10 -2
- package/dist/components/RoundButton/ui/RoundButton.types.js +13 -6
- package/dist/components/Select/model/selectMode.d.ts +16 -0
- package/dist/components/Select/model/selectMode.js +64 -0
- package/dist/components/Select/ui/Category.d.ts +13 -0
- package/dist/components/Select/ui/Category.js +79 -0
- package/dist/components/Select/ui/Option.d.ts +15 -0
- package/dist/components/Select/ui/Option.js +7 -0
- package/dist/components/Select/ui/Select.d.ts +1 -3
- package/dist/components/Select/ui/Select.js +196 -79
- package/dist/components/Select/ui/Select.types.d.ts +62 -6
- package/dist/components/SliderNavigation/index.d.ts +0 -1
- package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +1 -2
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +45 -32
- package/dist/components/SliderNavigation/ui/SliderNavigation.types.d.ts +7 -0
- package/dist/components/SortSelect/hooks/useSortSelect.d.ts +5 -4
- package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
- package/dist/components/SortSelect/ui/SortSelect.d.ts +0 -1
- package/dist/components/SortSelect/ui/SortSelect.js +67 -56
- package/dist/components/SortSelect/ui/SortSelect.types.d.ts +9 -2
- package/dist/components/SummarySelect/index.d.ts +1 -0
- package/dist/components/SummarySelect/index.js +4 -0
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +15 -0
- package/dist/components/SummarySelect/ui/SummarySelect.js +172 -0
- package/dist/components/Switcher/ui/Switcher.d.ts +1 -2
- package/dist/components/Switcher/ui/Switcher.js +45 -30
- package/dist/components/Switcher/ui/Switcher.types.d.ts +3 -1
- package/dist/components/TabSelect/index.d.ts +1 -0
- package/dist/components/TabSelect/index.js +4 -0
- package/dist/components/TabSelect/ui/TabSelect.d.ts +32 -0
- package/dist/components/TabSelect/ui/TabSelect.js +64 -0
- package/dist/components/TabSelect/ui/TabSelect.types.d.ts +0 -0
- package/dist/components/TabSelect/ui/TabSelect.types.js +1 -0
- package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +4 -4
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +114 -34
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +23 -4
- package/dist/components/Tag/ui/Tag.d.ts +1 -2
- package/dist/components/Tag/ui/Tag.js +96 -44
- package/dist/components/Tag/ui/Tag.types.d.ts +22 -2
- package/dist/components/Tag/ui/Tag.types.js +20 -3
- package/dist/components/Text/ui/Text.d.ts +1 -2
- package/dist/components/Text/ui/Text.js +20 -27
- package/dist/components/Text/ui/Text.types.d.ts +0 -1
- package/dist/components/TextArea/TextArea.d.ts +8 -0
- package/dist/components/TextArea/TextArea.js +25 -0
- package/dist/components/ZoomControls/index.d.ts +1 -0
- package/dist/components/ZoomControls/index.js +4 -0
- package/dist/components/ZoomControls/ui/ZoomControls.d.ts +2 -0
- package/dist/components/ZoomControls/ui/ZoomControls.js +33 -0
- package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +6 -0
- package/dist/components/ZoomControls/ui/ZoomControls.types.js +1 -0
- package/dist/components/mobileButton/ui/MobileButton.d.ts +0 -1
- package/dist/components/mobileButton/ui/MobileButton.js +38 -38
- package/dist/components/mobileButton/ui/MobileButton.types.d.ts +0 -1
- package/dist/index-BJwl9stn.js +33872 -0
- package/dist/index-YnD2EP-S.js +43 -0
- package/dist/layout/Layout.d.ts +5 -0
- package/dist/layout/Layout.js +11 -0
- package/dist/layout/components/Header/Header.d.ts +1 -0
- package/dist/layout/components/Header/Header.js +141 -0
- package/dist/layout/components/Menu.d.ts +1 -0
- package/dist/layout/components/Menu.js +109 -0
- package/dist/main.d.ts +14 -0
- package/dist/main.js +70 -42
- package/dist/pages/ButtonsPage/Buttons.d.ts +1 -0
- package/dist/pages/ButtonsPage/Buttons.js +106 -0
- package/dist/pages/CheckboxPage/CheckboxPage.d.ts +1 -0
- package/dist/pages/CheckboxPage/CheckboxPage.js +224 -0
- package/dist/pages/FormsPage/FormsPage.d.ts +2 -0
- package/dist/pages/FormsPage/FormsPage.js +58 -0
- package/dist/pages/HomePage/HomePage.d.ts +2 -0
- package/dist/pages/HomePage/HomePage.js +7 -0
- package/dist/pages/IconsPage/IconsPage.d.ts +1 -0
- package/dist/pages/IconsPage/IconsPage.js +19 -0
- package/dist/pages/InputPage/InputPage.d.ts +1 -0
- package/dist/pages/InputPage/InputPage.js +13 -0
- package/dist/pages/LogoPage/LogoPage.d.ts +1 -0
- package/dist/pages/LogoPage/LogoPage.js +16 -0
- package/dist/pages/LotsPage/LotsPage.d.ts +1 -0
- package/dist/pages/LotsPage/LotsPage.js +74 -0
- package/dist/pages/LotsPage/const.d.ts +4 -0
- package/dist/pages/LotsPage/const.js +678 -0
- package/dist/pages/ModalsPage/ModalPage.d.ts +2 -0
- package/dist/pages/ModalsPage/ModalPage.js +110 -0
- package/dist/pages/SelectPage/SelectPage.d.ts +1 -0
- package/dist/pages/SelectPage/SelectPage.js +211 -0
- package/dist/pages/SelectPage/const.d.ts +13 -0
- package/dist/pages/SelectPage/const.js +35 -0
- package/dist/pages/TabsPage/TabsPage.d.ts +2 -0
- package/dist/pages/TabsPage/TabsPage.js +168 -0
- package/dist/pages/TagsPage/TagsPage.d.ts +1 -0
- package/dist/pages/TagsPage/TagsPage.js +64 -0
- package/dist/shared/checkLargeOffice.d.ts +2 -0
- package/dist/shared/checkLargeOffice.js +4 -0
- package/dist/shared/deepEqual.d.ts +1 -0
- package/dist/shared/deepEqual.js +16 -0
- package/dist/shared/fmtNumber.d.ts +1 -0
- package/dist/shared/fmtNumber.js +4 -0
- package/dist/shared/mlnRound.d.ts +1 -0
- package/dist/shared/mlnRound.js +8 -0
- package/dist/shared/useClientWidth.d.ts +2 -0
- package/dist/shared/useClientWidth.js +6 -6
- package/dist/stone-kit.css +1 -0
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +166 -0
- package/dist/stories/entities/index.js +4 -0
- package/dist/stories/shared/ui/Button/Button.stories.js +118 -0
- package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +71 -0
- package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +45 -0
- package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +114 -0
- package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +89 -0
- package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +31 -0
- package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +44 -0
- package/dist/stories/shared/ui/Flex/Flex.stories.js +74 -0
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +65 -0
- package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +68 -0
- package/dist/stories/shared/ui/Input/Input.stories.js +82 -0
- package/dist/stories/shared/ui/Logo/Logo.stories.js +75 -0
- package/dist/stories/shared/ui/MetroLabel/MetroLabel.stories.js +91 -0
- package/dist/stories/shared/ui/MetroTag/MetroTag.stories.js +96 -0
- package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +77 -0
- package/dist/stories/shared/ui/Modal/Modal.stories.js +77 -0
- package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +34 -0
- package/dist/stories/shared/ui/NewIcon/NewIcon.stories.js +38 -0
- package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +83 -0
- package/dist/stories/shared/ui/Select/Select.stories.js +81 -0
- package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +82 -0
- package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +87 -0
- package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +85 -0
- package/dist/stories/shared/ui/Switcher/Switcher.stories.js +77 -0
- package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +76 -0
- package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +76 -0
- package/dist/stories/shared/ui/Tag/Tag.stories.js +51 -0
- package/dist/stories/shared/ui/Text/Text.stories.js +22 -0
- package/dist/stories/shared/ui/TextArea/TextArea.stories.js +37 -0
- package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +91 -0
- package/dist/stories/shared/ui/index.js +62 -0
- package/dist/useLotCard-D-gK4J_o.js +186 -0
- package/dist/useSortSelect-IeonkD5d.js +79 -0
- package/package.json +39 -30
- package/dist/index-DIxK0V-G.js +0 -44
- package/dist/style.css +0 -1
- package/dist/useSortSelect-A7A_pNcU.js +0 -76
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { jsxs as d, Fragment as I, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { O as M } from "../../../Option-DmDx_xOt.js";
|
|
3
|
+
import { g as D } from "../../../index-YnD2EP-S.js";
|
|
4
|
+
import { useFilterWithSave as P } from "../hooks/useFilterWithSave.js";
|
|
5
|
+
import { NewIcon as S } from "../../NewIcon/ui/NewIcon.js";
|
|
6
|
+
import { TabSwitcher as _ } from "../../TabSwitcher/ui/TabSwitcher.js";
|
|
7
|
+
import { Button as f } from "../../Button/ui/Button.js";
|
|
8
|
+
import { Modal as V } from "../../Modal/ui/Modal.js";
|
|
9
|
+
const G = "_root_1v1y9_1", H = "_filterWithSaveModal_1v1y9_15", J = "_modalAddBody_1v1y9_20", K = "_closeBtn_1v1y9_29", Q = "_btnName_1v1y9_35", U = "_modalTitle_1v1y9_39", X = "_tabSWitcherWrapper_1v1y9_48", Y = "_switcherTitle_1v1y9_77", Z = "_switcherScroll_1v1y9_84", ee = "_tabs_1v1y9_93", te = "_selectWrapper_1v1y9_98", ae = "_filterOption_1v1y9_102", re = "_btnWrapper_1v1y9_110", ie = "_resetBtn_1v1y9_116", se = "_saveBtn_1v1y9_117", ne = "_desktopWrapper_1v1y9_121", le = "_desktopWrapperOpen_1v1y9_144", e = {
|
|
10
|
+
root: G,
|
|
11
|
+
filterWithSaveModal: H,
|
|
12
|
+
modalAddBody: J,
|
|
13
|
+
closeBtn: K,
|
|
14
|
+
btnName: Q,
|
|
15
|
+
modalTitle: U,
|
|
16
|
+
tabSWitcherWrapper: X,
|
|
17
|
+
switcherTitle: Y,
|
|
18
|
+
switcherScroll: Z,
|
|
19
|
+
tabs: ee,
|
|
20
|
+
selectWrapper: te,
|
|
21
|
+
filterOption: ae,
|
|
22
|
+
btnWrapper: re,
|
|
23
|
+
resetBtn: ie,
|
|
24
|
+
saveBtn: se,
|
|
25
|
+
desktopWrapper: ne,
|
|
26
|
+
desktopWrapperOpen: le
|
|
27
|
+
};
|
|
28
|
+
var N = { exports: {} };
|
|
29
|
+
var A;
|
|
30
|
+
function oe() {
|
|
31
|
+
return A || (A = 1, (function(v) {
|
|
32
|
+
(function() {
|
|
33
|
+
var p = {}.hasOwnProperty;
|
|
34
|
+
function s() {
|
|
35
|
+
for (var a = "", i = 0; i < arguments.length; i++) {
|
|
36
|
+
var l = arguments[i];
|
|
37
|
+
l && (a = h(a, u.call(this, l)));
|
|
38
|
+
}
|
|
39
|
+
return a;
|
|
40
|
+
}
|
|
41
|
+
function u(a) {
|
|
42
|
+
if (typeof a == "string" || typeof a == "number")
|
|
43
|
+
return this && this[a] || a;
|
|
44
|
+
if (typeof a != "object")
|
|
45
|
+
return "";
|
|
46
|
+
if (Array.isArray(a))
|
|
47
|
+
return s.apply(this, a);
|
|
48
|
+
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
|
|
49
|
+
return a.toString();
|
|
50
|
+
var i = "";
|
|
51
|
+
for (var l in a)
|
|
52
|
+
p.call(a, l) && a[l] && (i = h(i, this && this[l] || l));
|
|
53
|
+
return i;
|
|
54
|
+
}
|
|
55
|
+
function h(a, i) {
|
|
56
|
+
return i ? a ? a + " " + i : a + i : a;
|
|
57
|
+
}
|
|
58
|
+
v.exports ? (s.default = s, v.exports = s) : window.classNames = s;
|
|
59
|
+
})();
|
|
60
|
+
})(N)), N.exports;
|
|
61
|
+
}
|
|
62
|
+
var ce = oe();
|
|
63
|
+
const de = /* @__PURE__ */ D(ce), pe = de.bind(e), ye = ({
|
|
64
|
+
disabledOptions: v,
|
|
65
|
+
tabs: p = [],
|
|
66
|
+
selectOptions: s = [],
|
|
67
|
+
onChange: u,
|
|
68
|
+
onClick: h = () => null,
|
|
69
|
+
selectedValues: a,
|
|
70
|
+
setSelectedTabs: i,
|
|
71
|
+
selectedTabs: l,
|
|
72
|
+
onClickItem: z,
|
|
73
|
+
onCLickSelect: B,
|
|
74
|
+
dataTestId: j,
|
|
75
|
+
onSaveClick: F = () => null,
|
|
76
|
+
onClearClick: R = () => null,
|
|
77
|
+
onTabClick: q = () => null,
|
|
78
|
+
btnName: E = "Фильтр"
|
|
79
|
+
}) => {
|
|
80
|
+
const {
|
|
81
|
+
handleCloseModal: C,
|
|
82
|
+
localSelectedTabs: O,
|
|
83
|
+
selectedOptions: k,
|
|
84
|
+
isMobile: b,
|
|
85
|
+
handleOptionClick: w,
|
|
86
|
+
handleClearClick: T,
|
|
87
|
+
handleSaveClick: x,
|
|
88
|
+
isModalOpen: W,
|
|
89
|
+
setLocalSelectedTabs: g,
|
|
90
|
+
setIsModalOpen: y,
|
|
91
|
+
containerRef: L
|
|
92
|
+
} = P({
|
|
93
|
+
selectedTabs: l,
|
|
94
|
+
onClickItem: z,
|
|
95
|
+
setSelectedTabs: i,
|
|
96
|
+
tabs: p,
|
|
97
|
+
onChange: u,
|
|
98
|
+
disabledOptions: v,
|
|
99
|
+
selectedValues: a,
|
|
100
|
+
onSaveClick: F,
|
|
101
|
+
onClearClick: R
|
|
102
|
+
}), $ = () => /* @__PURE__ */ d(I, { children: [
|
|
103
|
+
/* @__PURE__ */ t(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
className: e.closeBtn,
|
|
107
|
+
onClick: () => {
|
|
108
|
+
C();
|
|
109
|
+
},
|
|
110
|
+
children: /* @__PURE__ */ t(
|
|
111
|
+
S,
|
|
112
|
+
{
|
|
113
|
+
name: "close",
|
|
114
|
+
size: "24"
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
/* @__PURE__ */ t("div", { className: e.modalTitle, children: "Фильтры" }),
|
|
120
|
+
/* @__PURE__ */ d("div", { className: e.tabSWitcherWrapper, children: [
|
|
121
|
+
/* @__PURE__ */ t("div", { className: e.switcherTitle, children: "Готовность" }),
|
|
122
|
+
/* @__PURE__ */ t("div", { className: e.switcherScroll, children: /* @__PURE__ */ t(
|
|
123
|
+
_,
|
|
124
|
+
{
|
|
125
|
+
variant: "grayRow",
|
|
126
|
+
addClassName: e.tabs,
|
|
127
|
+
isApart: !0,
|
|
128
|
+
children: p?.map((o, n) => {
|
|
129
|
+
const r = o.value;
|
|
130
|
+
return /* @__PURE__ */ t(
|
|
131
|
+
_.Item,
|
|
132
|
+
{
|
|
133
|
+
itemsLength: p?.length,
|
|
134
|
+
mini: !0,
|
|
135
|
+
size_s: "small",
|
|
136
|
+
value: r,
|
|
137
|
+
onClick: () => {
|
|
138
|
+
},
|
|
139
|
+
checked: O?.find((m) => m.value === r)?.state ?? !1,
|
|
140
|
+
onChange: () => {
|
|
141
|
+
g?.(
|
|
142
|
+
(m) => m.map((c) => c.value === r ? { ...c, state: !c.state } : c)
|
|
143
|
+
);
|
|
144
|
+
},
|
|
145
|
+
index: n,
|
|
146
|
+
children: r
|
|
147
|
+
},
|
|
148
|
+
n
|
|
149
|
+
);
|
|
150
|
+
})
|
|
151
|
+
}
|
|
152
|
+
) })
|
|
153
|
+
] }),
|
|
154
|
+
/* @__PURE__ */ t("div", { className: e.selectWrapper, children: s?.map((o, n) => /* @__PURE__ */ t(
|
|
155
|
+
M,
|
|
156
|
+
{
|
|
157
|
+
sizeIcon: "24",
|
|
158
|
+
addClassName: e.filterOption,
|
|
159
|
+
disabledOptions: [],
|
|
160
|
+
clickableOptions: s?.map((r) => r.value.toString()),
|
|
161
|
+
selectedOptions: k,
|
|
162
|
+
option: o,
|
|
163
|
+
handleOptionClick: w
|
|
164
|
+
},
|
|
165
|
+
n
|
|
166
|
+
)) }),
|
|
167
|
+
/* @__PURE__ */ d("div", { className: e.btnWrapper, children: [
|
|
168
|
+
/* @__PURE__ */ t(
|
|
169
|
+
f,
|
|
170
|
+
{
|
|
171
|
+
as: "button",
|
|
172
|
+
variant: "gray",
|
|
173
|
+
additionalClass: e.resetBtn,
|
|
174
|
+
onClick: T,
|
|
175
|
+
children: "Сбросить"
|
|
176
|
+
}
|
|
177
|
+
),
|
|
178
|
+
/* @__PURE__ */ t(
|
|
179
|
+
f,
|
|
180
|
+
{
|
|
181
|
+
as: "button",
|
|
182
|
+
additionalClass: e.saveBtn,
|
|
183
|
+
onClick: x,
|
|
184
|
+
children: "Сохранить"
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
] })
|
|
188
|
+
] });
|
|
189
|
+
return /* @__PURE__ */ d(I, { children: [
|
|
190
|
+
/* @__PURE__ */ d("div", { style: { position: "relative" }, children: [
|
|
191
|
+
/* @__PURE__ */ d(
|
|
192
|
+
"div",
|
|
193
|
+
{
|
|
194
|
+
className: e.root,
|
|
195
|
+
"data-testid": j,
|
|
196
|
+
onClick: () => {
|
|
197
|
+
B && B(), h && h(), b ? y((o) => !o) : W || y(!0);
|
|
198
|
+
},
|
|
199
|
+
children: [
|
|
200
|
+
/* @__PURE__ */ t("div", { className: e.btnName, children: E }),
|
|
201
|
+
/* @__PURE__ */ t(
|
|
202
|
+
S,
|
|
203
|
+
{
|
|
204
|
+
name: "filter",
|
|
205
|
+
size: "16"
|
|
206
|
+
}
|
|
207
|
+
)
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
),
|
|
211
|
+
!b && /* @__PURE__ */ d(
|
|
212
|
+
"div",
|
|
213
|
+
{
|
|
214
|
+
ref: L,
|
|
215
|
+
className: pe(e.desktopWrapper, { [e.desktopWrapperOpen]: W }),
|
|
216
|
+
children: [
|
|
217
|
+
/* @__PURE__ */ t(
|
|
218
|
+
"div",
|
|
219
|
+
{
|
|
220
|
+
className: e.closeBtn,
|
|
221
|
+
onClick: () => {
|
|
222
|
+
C();
|
|
223
|
+
},
|
|
224
|
+
children: /* @__PURE__ */ t(
|
|
225
|
+
S,
|
|
226
|
+
{
|
|
227
|
+
name: "close",
|
|
228
|
+
size: "24"
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
}
|
|
232
|
+
),
|
|
233
|
+
/* @__PURE__ */ t("div", { className: e.modalTitle, children: "Фильтры" }),
|
|
234
|
+
/* @__PURE__ */ d("div", { className: e.tabSWitcherWrapper, children: [
|
|
235
|
+
/* @__PURE__ */ t("div", { className: e.switcherTitle, children: "Готовность" }),
|
|
236
|
+
/* @__PURE__ */ t("div", { className: e.switcherScroll, children: /* @__PURE__ */ t(
|
|
237
|
+
_,
|
|
238
|
+
{
|
|
239
|
+
variant: "grayRow",
|
|
240
|
+
addClassName: e.tabs,
|
|
241
|
+
isApart: !0,
|
|
242
|
+
children: p?.map((o, n) => {
|
|
243
|
+
const r = o.value;
|
|
244
|
+
return /* @__PURE__ */ t(
|
|
245
|
+
_.Item,
|
|
246
|
+
{
|
|
247
|
+
itemsLength: p?.length,
|
|
248
|
+
dataTestId: `filterWithSave_year_${r}_tab`,
|
|
249
|
+
size_s: "small",
|
|
250
|
+
mini: !0,
|
|
251
|
+
value: r,
|
|
252
|
+
onClick: () => q(),
|
|
253
|
+
checked: O?.find((m) => m.value === r)?.state ?? !1,
|
|
254
|
+
onChange: () => {
|
|
255
|
+
g?.(
|
|
256
|
+
(m) => m.map((c) => c.value === r ? { ...c, state: !c.state } : c)
|
|
257
|
+
);
|
|
258
|
+
},
|
|
259
|
+
index: n,
|
|
260
|
+
addItemClassName: e.tabSwitcher,
|
|
261
|
+
children: r
|
|
262
|
+
},
|
|
263
|
+
n
|
|
264
|
+
);
|
|
265
|
+
})
|
|
266
|
+
}
|
|
267
|
+
) })
|
|
268
|
+
] }),
|
|
269
|
+
/* @__PURE__ */ t("div", { className: e.selectWrapper, children: s?.map((o, n) => /* @__PURE__ */ t(
|
|
270
|
+
M,
|
|
271
|
+
{
|
|
272
|
+
sizeIcon: "24",
|
|
273
|
+
dataTestId: `filterWIthSave_${n}_select`,
|
|
274
|
+
addClassName: e.filterOption,
|
|
275
|
+
disabledOptions: [],
|
|
276
|
+
clickableOptions: s?.map((r) => r.value.toString()),
|
|
277
|
+
selectedOptions: k,
|
|
278
|
+
option: o,
|
|
279
|
+
handleOptionClick: w
|
|
280
|
+
},
|
|
281
|
+
n
|
|
282
|
+
)) }),
|
|
283
|
+
/* @__PURE__ */ d("div", { className: e.btnWrapper, children: [
|
|
284
|
+
/* @__PURE__ */ t(
|
|
285
|
+
f,
|
|
286
|
+
{
|
|
287
|
+
"data-testid": "filterWithSave_clear_btn",
|
|
288
|
+
as: "button",
|
|
289
|
+
variant: "gray",
|
|
290
|
+
additionalClass: e.resetBtn,
|
|
291
|
+
onClick: T,
|
|
292
|
+
children: "Сбросить"
|
|
293
|
+
}
|
|
294
|
+
),
|
|
295
|
+
/* @__PURE__ */ t(
|
|
296
|
+
f,
|
|
297
|
+
{
|
|
298
|
+
"data-testid": "filterWithSave_save_btn",
|
|
299
|
+
as: "button",
|
|
300
|
+
additionalClass: e.saveBtn,
|
|
301
|
+
onClick: x,
|
|
302
|
+
children: "Сохранить"
|
|
303
|
+
}
|
|
304
|
+
)
|
|
305
|
+
] })
|
|
306
|
+
]
|
|
307
|
+
}
|
|
308
|
+
)
|
|
309
|
+
] }),
|
|
310
|
+
b && /* @__PURE__ */ t(
|
|
311
|
+
V,
|
|
312
|
+
{
|
|
313
|
+
isOpen: W,
|
|
314
|
+
emitIsOpen: y,
|
|
315
|
+
isTransparentBack: !0,
|
|
316
|
+
additionalClassModalBody: e.modalAddBody,
|
|
317
|
+
additionalClass: e.filterWithSaveModal,
|
|
318
|
+
children: /* @__PURE__ */ t($, {})
|
|
319
|
+
}
|
|
320
|
+
)
|
|
321
|
+
] });
|
|
322
|
+
};
|
|
323
|
+
export {
|
|
324
|
+
ye as FilterWithSave
|
|
325
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type IFlex = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16';
|
|
3
2
|
type IJustifyContent = 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
|
|
4
3
|
type IAlignItems = 'start' | 'end' | 'center' | 'stretch';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
interface IModalFormProps {
|
|
2
|
+
isFormOpen: boolean;
|
|
3
|
+
setIsFormOpen: (isOpen: boolean) => void;
|
|
4
|
+
submitHandler: (data: IFormPageInputs) => void;
|
|
5
|
+
blurHandler?: ({ e, analyticParams }: {
|
|
6
|
+
e: unknown;
|
|
7
|
+
analyticParams: {
|
|
8
|
+
action_element: string;
|
|
9
|
+
action_element_status: 'error' | 'success';
|
|
10
|
+
block_name?: string;
|
|
11
|
+
};
|
|
12
|
+
}) => void;
|
|
13
|
+
handlerButton?: () => void;
|
|
14
|
+
modalWidth?: string;
|
|
15
|
+
isPhone?: boolean;
|
|
16
|
+
title: string;
|
|
17
|
+
isEmail?: boolean;
|
|
18
|
+
telegramLink?: string;
|
|
19
|
+
isTextArea?: boolean;
|
|
20
|
+
subTitle: string;
|
|
21
|
+
advCheckBox?: {
|
|
22
|
+
text: string;
|
|
23
|
+
isRequired: boolean;
|
|
24
|
+
} | undefined | null;
|
|
25
|
+
textAreaPlaceholder?: string;
|
|
26
|
+
rowsTextArea?: number;
|
|
27
|
+
isRequiredPhone?: boolean;
|
|
28
|
+
isNews?: boolean;
|
|
29
|
+
isRequiredEmail?: boolean;
|
|
30
|
+
isRequiredPhoneOrEmail?: boolean;
|
|
31
|
+
isAdvCheckBox?: boolean;
|
|
32
|
+
telegramClickHandler?: () => void;
|
|
33
|
+
addTitleClassName?: string;
|
|
34
|
+
block_name?: string;
|
|
35
|
+
createPortalObj?: {
|
|
36
|
+
domNode: HTMLElement | null;
|
|
37
|
+
key?: string | null | undefined;
|
|
38
|
+
};
|
|
39
|
+
policiesMap?: Record<DocumentSlug, string>;
|
|
40
|
+
emitCheckBox?: () => void;
|
|
41
|
+
emitAdvCheckBox?: () => void;
|
|
42
|
+
}
|
|
43
|
+
type DocumentSlug = string;
|
|
44
|
+
type IFormPageInputs = {
|
|
45
|
+
phone: string;
|
|
46
|
+
name: string;
|
|
47
|
+
email?: string;
|
|
48
|
+
personalCheckBox: boolean;
|
|
49
|
+
advCheckBox?: boolean;
|
|
50
|
+
textarea?: string;
|
|
51
|
+
'policy-slug': string;
|
|
52
|
+
};
|
|
53
|
+
export declare enum POLICY_TYPE {
|
|
54
|
+
PRIVACY_POLICY = "privacy-policy",
|
|
55
|
+
PERSONAL_DATA = "personal-data",
|
|
56
|
+
MAILING = "mailing",
|
|
57
|
+
STONE_VALUE = "stone-value"
|
|
58
|
+
}
|
|
59
|
+
export declare const ModalForm: ({ isFormOpen, setIsFormOpen, isNews, title, isEmail, isPhone, isTextArea, telegramLink, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, advCheckBox, isAdvCheckBox, addTitleClassName, createPortalObj, telegramClickHandler, blurHandler, handlerButton, block_name, policiesMap, emitCheckBox, emitAdvCheckBox, }: IModalFormProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
60
|
+
export {};
|