stone-kit 0.0.874 → 0.0.876

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/App.js +10 -0
  2. package/dist/ButtonState.module-DtW3aevR.js +8 -0
  3. package/dist/FilterWithSave-Bp6rH8Pe.js +2230 -0
  4. package/dist/Menu-CgCfinVZ.js +513 -0
  5. package/dist/Option-BVIm7wOW.js +83 -0
  6. package/dist/PinTrans-D6OZq76b.js +10 -0
  7. package/dist/Router.js +103 -0
  8. package/dist/SmallFilter-C-VKnbkP.js +10 -0
  9. package/dist/components/Button/index.js +4 -0
  10. package/dist/components/Button/ui/Button.js +94 -0
  11. package/dist/components/Button/ui/Button.types.js +15 -0
  12. package/dist/components/CheckBox/CheckBox.js +84 -0
  13. package/dist/components/CheckBox/CheckBox.types.js +1 -0
  14. package/dist/components/CheckBox/index.js +4 -0
  15. package/dist/components/CheckBoxNew/CheckBox.types.js +6 -0
  16. package/dist/components/CheckBoxNew/CheckBoxNew.js +44 -0
  17. package/dist/components/CheckboxSelect/index.js +4 -0
  18. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +51 -0
  19. package/dist/components/DestinationTab/index.js +4 -0
  20. package/dist/components/DestinationTab/ui/DestinationTab.js +75 -0
  21. package/dist/components/DestinationTab/ui/DestinationTab.types.js +6 -0
  22. package/dist/components/FieldInput/index.js +4 -0
  23. package/dist/components/FieldInput/ui/FieldInput.js +22 -0
  24. package/dist/components/FieldInput/ui/FieldInput.types.js +1 -0
  25. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +28 -0
  26. package/dist/components/FilterWithSave/ui/FilterWithSave.js +9 -0
  27. package/dist/components/Flex/index.js +4 -0
  28. package/dist/components/Flex/ui/Flex.js +68 -0
  29. package/dist/components/Flex/ui/Flex.types.js +1 -0
  30. package/dist/components/FormModal/ui/ModalForm.js +30 -0
  31. package/dist/components/FormModal/utils/reg.js +6 -0
  32. package/dist/components/GroupedInput/index.js +4 -0
  33. package/dist/components/GroupedInput/ui/GroupedInputs.js +8 -0
  34. package/dist/components/GroupedInput/ui/GroupedInputs.types.js +1 -0
  35. package/dist/components/Input/index.js +4 -0
  36. package/dist/components/Input/ui/Input.js +3346 -0
  37. package/dist/components/Input/ui/Input.types.js +1 -0
  38. package/dist/components/Logo/index.js +4 -0
  39. package/dist/components/Logo/ui/Logo.js +63 -0
  40. package/dist/components/Logo/ui/Logo.types.js +13 -0
  41. package/dist/components/LotCard/hooks/useLotCard.js +31 -0
  42. package/dist/components/LotCard/index.js +4 -0
  43. package/dist/components/LotCard/ui/LotCard.js +11 -0
  44. package/dist/components/LotCard/ui/LotCard.types.js +1 -0
  45. package/dist/components/LotCard/utils/checkBedroomsCount.js +20 -0
  46. package/dist/components/LotCard/utils/const.js +11 -0
  47. package/dist/components/LotCard/utils/formatPrice.js +11 -0
  48. package/dist/components/LotCard/utils/getTagsFeatures.js +13 -0
  49. package/dist/components/LotCard/utils/monthlyPayment.js +4 -0
  50. package/dist/components/LotCardSkeleton/index.js +4 -0
  51. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +83 -0
  52. package/dist/components/MetroLabel/ui/MetroLabel.js +44 -0
  53. package/dist/components/MetroLabel/ui/MetroLabel.types.js +1 -0
  54. package/dist/components/MetroTag/index.js +4 -0
  55. package/dist/components/MetroTag/ui/MetroTag.js +142 -0
  56. package/dist/components/MetroTag/ui/MetroTag.types.js +1 -0
  57. package/dist/components/Modal/index.js +4 -0
  58. package/dist/components/Modal/ui/Modal.js +77 -0
  59. package/dist/components/Modal/ui/Modal.types.js +1 -0
  60. package/dist/components/ModalSuccess/ModalSuccess.js +61 -0
  61. package/dist/components/ModalSuccess/ModalSuccess.types.js +1 -0
  62. package/dist/components/NewIcon/icons/PinTrans.js +6 -0
  63. package/dist/components/NewIcon/icons/SmallFilter.js +6 -0
  64. package/dist/components/NewIcon/index.js +4 -0
  65. package/dist/components/NewIcon/ui/NewIcon.js +314 -0
  66. package/dist/components/NewIcon/ui/NewIcon.types.js +1 -0
  67. package/dist/components/NewIcon/ui/iconTypes.js +60 -0
  68. package/dist/components/ProjectCardSkeleton/index.js +4 -0
  69. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +34 -0
  70. package/dist/components/RoundButton/index.js +4 -0
  71. package/dist/components/RoundButton/ui/RoundButton.js +73 -0
  72. package/dist/components/RoundButton/ui/RoundButton.types.js +16 -0
  73. package/dist/components/Select/index.js +4 -0
  74. package/dist/components/Select/model/selectMode.js +49 -0
  75. package/dist/components/Select/ui/Category.js +76 -0
  76. package/dist/components/Select/ui/Option.js +7 -0
  77. package/dist/components/Select/ui/Select.js +179 -0
  78. package/dist/components/Select/ui/Select.types.js +1 -0
  79. package/dist/components/SliderNavigation/index.js +4 -0
  80. package/dist/components/SliderNavigation/ui/SliderNavigation.js +65 -0
  81. package/dist/components/SliderNavigation/ui/SliderNavigation.types.js +1 -0
  82. package/dist/components/SortSelect/hooks/useSortSelect.js +6 -0
  83. package/dist/components/SortSelect/index.js +4 -0
  84. package/dist/components/SortSelect/ui/SortSelect.js +29 -0
  85. package/dist/components/SortSelect/ui/SortSelect.types.js +1 -0
  86. package/dist/components/SummarySelect/index.js +4 -0
  87. package/dist/components/SummarySelect/ui/SummarySelect.js +128 -0
  88. package/dist/components/Switcher/index.js +4 -0
  89. package/dist/components/Switcher/ui/Switcher.js +49 -0
  90. package/dist/components/Switcher/ui/Switcher.types.js +1 -0
  91. package/dist/components/TabSelect/index.js +4 -0
  92. package/dist/components/TabSelect/ui/TabSelect.js +49 -0
  93. package/dist/components/TabSelect/ui/TabSelect.types.js +1 -0
  94. package/dist/components/TabSwitcher/index.js +4 -0
  95. package/dist/components/TabSwitcher/ui/TabSwitcher.js +28 -0
  96. package/dist/components/TabSwitcher/ui/TabSwitcher.types.js +1 -0
  97. package/dist/components/Tag/index.js +4 -0
  98. package/dist/components/Tag/ui/Tag.js +79 -0
  99. package/dist/components/Tag/ui/Tag.types.js +20 -0
  100. package/dist/components/Text/index.js +4 -0
  101. package/dist/components/Text/ui/Text.js +22 -0
  102. package/dist/components/Text/ui/Text.types.js +1 -0
  103. package/dist/components/TextArea/TextArea.js +19 -0
  104. package/dist/components/TextArea/TextArea.types.js +1 -0
  105. package/dist/components/ZoomControls/index.js +4 -0
  106. package/dist/components/ZoomControls/ui/ZoomControls.js +31 -0
  107. package/dist/components/ZoomControls/ui/ZoomControls.types.js +1 -0
  108. package/dist/components/mobileButton/index.js +4 -0
  109. package/dist/components/mobileButton/ui/MobileButton.js +64 -0
  110. package/dist/components/mobileButton/ui/MobileButton.types.js +6 -0
  111. package/dist/index-DmANy9jd.js +890 -0
  112. package/dist/index-rKuIKazb.js +45 -0
  113. package/dist/layout/Layout.js +11 -0
  114. package/dist/layout/components/Header/Header.js +164 -0
  115. package/dist/layout/components/Menu.js +28 -0
  116. package/dist/main.d.ts +31 -3
  117. package/dist/main.js +64 -35
  118. package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +121 -0
  119. package/dist/pages/ButtonsPage/Buttons.js +134 -0
  120. package/dist/pages/CheckboxPage/CheckboxPage.js +224 -0
  121. package/dist/pages/FormsPage/FormsPage.js +78 -0
  122. package/dist/pages/HomePage/HomePage.js +7 -0
  123. package/dist/pages/IconsPage/IconsPage.js +41 -0
  124. package/dist/pages/InputPage/InputPage.js +35 -0
  125. package/dist/pages/LogoPage/LogoPage.js +38 -0
  126. package/dist/pages/LotsPage/LotsPage.js +542 -0
  127. package/dist/pages/ModalsPage/ModalPage.js +130 -0
  128. package/dist/pages/SelectPage/SelectPage.js +192 -0
  129. package/dist/pages/SelectPage/const.js +35 -0
  130. package/dist/pages/TabsPage/TabsPage.js +175 -0
  131. package/dist/pages/TagsPage/TagsPage.js +75 -0
  132. package/dist/shared/checkLargeOffice.js +12 -0
  133. package/dist/shared/deepEqual.js +16 -0
  134. package/dist/shared/useClientWidth.js +14 -0
  135. package/dist/style.css +1 -1
  136. package/dist/useSortSelect-CjZXLFOG.js +80 -0
  137. package/package.json +9 -2
@@ -0,0 +1,49 @@
1
+ const J = ({
2
+ option: e,
3
+ setSelectedOptions: s,
4
+ selectedOptions: l,
5
+ disabledOptions: u,
6
+ onChange: c,
7
+ mode: y,
8
+ optionsParentArr: f
9
+ }) => {
10
+ if (!Array.isArray(e)) {
11
+ if (u.includes(e))
12
+ return;
13
+ let i = l.some((r) => r.value === e.value) ? l.filter((r) => r.value !== e.value) : [...l, e];
14
+ if (y === "single") {
15
+ const r = [e];
16
+ s(r), c && c(r);
17
+ return;
18
+ }
19
+ if (y === "double") {
20
+ "options" in e && (l.map((t) => JSON.stringify(t)).includes(JSON.stringify(e)) ? i = i.filter(
21
+ (t) => !e.options.map((a) => JSON.stringify(a)).includes(JSON.stringify(t))
22
+ ) : Array.isArray(e.options) && (i = [...i, ...e.options]));
23
+ const r = f == null ? void 0 : f.filter((S) => "options" in S && S.options.includes(e))[0];
24
+ !(r && l.map((S) => JSON.stringify(S)).includes(JSON.stringify(r))) && r && i.push(r);
25
+ }
26
+ s(i), c && c(i);
27
+ }
28
+ }, N = ({
29
+ option: e,
30
+ setSelectedOptions: s,
31
+ selectedOptions: l,
32
+ disabledOptions: u,
33
+ onChange: c
34
+ }) => {
35
+ if (Array.isArray(e)) {
36
+ const y = e.filter((f) => !(u != null && u.includes(f)));
37
+ if (y.every((f) => l.map((i) => i).includes(f))) {
38
+ const f = l.filter((i) => !e.includes(i));
39
+ s(f), c && c(f);
40
+ } else {
41
+ const f = y.filter((r) => !l.includes(r)), i = [...l, ...f];
42
+ s(i), c && c(i);
43
+ }
44
+ }
45
+ };
46
+ export {
47
+ N as handleClickModeCategory,
48
+ J as handleClickModeOption
49
+ };
@@ -0,0 +1,76 @@
1
+ import { jsxs as u, Fragment as I, jsx as o } from "react/jsx-runtime";
2
+ import { s as n, O as J } from "../../../Option-BVIm7wOW.js";
3
+ import { NewIcon as N } from "../../NewIcon/ui/NewIcon.js";
4
+ import { c as O } from "../../../index-rKuIKazb.js";
5
+ import { useState as U } from "react";
6
+ const j = O.bind(n), z = ({
7
+ category: t,
8
+ selectedOptions: r,
9
+ disabledOptions: m,
10
+ clickableOptions: s,
11
+ handleOptionClick: d,
12
+ sizeIcon: i,
13
+ isDisabledNotClickable: p,
14
+ mode: f
15
+ }) => {
16
+ const [l, h] = U(!1), w = r.map((e) => JSON.stringify(e)), c = f === "category", g = f === "double", k = c && t.options.every((e) => w.includes(JSON.stringify(e))), x = s ? s.includes(t.value.toString()) : !0, v = r.some((e) => e.value === t.value), C = () => p && s ? !s.includes(t.value.toString()) : m.some(
17
+ (e) => e.value === t.value
18
+ ), F = c ? k ? "selectChecked" : "selectUnchecked" : g && v ? "selectChecked" : "selectUnchecked", S = t.options.length > 1;
19
+ return /* @__PURE__ */ u(I, { children: [
20
+ /* @__PURE__ */ u(
21
+ "div",
22
+ {
23
+ className: j(
24
+ n.option,
25
+ n.category,
26
+ {
27
+ [n.optionDisabled]: C(),
28
+ [n.optionClickable]: x
29
+ }
30
+ ),
31
+ onClick: () => {
32
+ C() && !v || (g && !l && h(!0), d(c ? t.options : t));
33
+ },
34
+ children: [
35
+ /* @__PURE__ */ u("div", { className: n.leftSide, children: [
36
+ /* @__PURE__ */ o(
37
+ N,
38
+ {
39
+ size: i ?? "20",
40
+ name: F
41
+ }
42
+ ),
43
+ /* @__PURE__ */ o("div", { children: t.label })
44
+ ] }),
45
+ S && /* @__PURE__ */ o("div", { className: n.iconArrow, onClick: (e) => {
46
+ e.stopPropagation(), h((a) => !a);
47
+ }, children: /* @__PURE__ */ o(
48
+ N,
49
+ {
50
+ name: "arrowShort",
51
+ deg: l ? "180" : "0",
52
+ size: i ?? "24"
53
+ }
54
+ ) })
55
+ ]
56
+ }
57
+ ),
58
+ l && S && t.options.map((e, a) => /* @__PURE__ */ o(
59
+ J,
60
+ {
61
+ option: e,
62
+ disabledOptions: m,
63
+ selectedOptions: r,
64
+ handleOptionClick: () => d(e),
65
+ sizeIcon: i,
66
+ clickableOptions: s,
67
+ isOptionCategory: !0,
68
+ isDisabledNotClickable: p
69
+ },
70
+ a
71
+ ))
72
+ ] });
73
+ };
74
+ export {
75
+ z as Category
76
+ };
@@ -0,0 +1,7 @@
1
+ import "react/jsx-runtime";
2
+ import { O as m } from "../../../Option-BVIm7wOW.js";
3
+ import "../../NewIcon/ui/NewIcon.js";
4
+ import "../../../index-rKuIKazb.js";
5
+ export {
6
+ m as Option
7
+ };
@@ -0,0 +1,179 @@
1
+ import { jsxs as m, Fragment as L, jsx as l } from "react/jsx-runtime";
2
+ import { useState as W, useRef as j, useEffect as z } from "react";
3
+ import { c as Q } from "../../../index-rKuIKazb.js";
4
+ import { s as e, O as T } from "../../../Option-BVIm7wOW.js";
5
+ import { NewIcon as B } from "../../NewIcon/ui/NewIcon.js";
6
+ import { Category as U } from "./Category.js";
7
+ import { handleClickModeOption as X, handleClickModeCategory as Y } from "../model/selectMode.js";
8
+ const a = Q.bind(e), ne = ({
9
+ options: t,
10
+ customPlaceholder: h,
11
+ placeholder: D = "Выберите опции",
12
+ error: M,
13
+ disabled: u,
14
+ disabledOptions: d = [],
15
+ additionalClass: F = "",
16
+ additionalClassOption: _,
17
+ additionalClassBtn: q,
18
+ onChange: G,
19
+ onBlur: O,
20
+ selectedValues: i = [],
21
+ isBtn: y = !1,
22
+ btnName: v,
23
+ clickableOptions: C,
24
+ isListRight: H = !1,
25
+ sizeIcon: f,
26
+ mode: c = "options",
27
+ onClickItem: S,
28
+ onCLickSelect: N,
29
+ size_s: $ = "large",
30
+ size_m: k,
31
+ size_l: x,
32
+ isDisabledNotClickable: A,
33
+ isLast: J
34
+ }) => {
35
+ t = Array.isArray(t) ? [.../* @__PURE__ */ new Set([...t])] : [];
36
+ const [s, E] = W(i), [o, g] = W(!1), p = j(null), R = (r) => {
37
+ S && S(r);
38
+ const n = {
39
+ option: r,
40
+ selectedOptions: s,
41
+ disabledOptions: d,
42
+ setSelectedOptions: E,
43
+ onChange: G,
44
+ mode: c,
45
+ optionsParentArr: t
46
+ };
47
+ Array.isArray(r) ? Y(n) : X(n);
48
+ }, K = () => {
49
+ O && O(s);
50
+ };
51
+ z(() => {
52
+ const r = (n) => {
53
+ const P = n.target;
54
+ if (p.current && !p.current.contains(n.target)) {
55
+ if (P.closest("svg"))
56
+ return;
57
+ g(!1);
58
+ }
59
+ };
60
+ return document.addEventListener("click", r), () => {
61
+ document.removeEventListener("click", r);
62
+ };
63
+ }, []);
64
+ const w = j(i);
65
+ return z(() => {
66
+ i.length !== w.current.length && (E(i), w.current = i);
67
+ }, [i]), /* @__PURE__ */ m(
68
+ "div",
69
+ {
70
+ ref: p,
71
+ className: a(e.multiSelectWrapper, { [e.multiSelectWrapperError]: M }, F),
72
+ tabIndex: 0,
73
+ onBlur: K,
74
+ children: [
75
+ /* @__PURE__ */ m("div", { className: a(e.inputWrapper), children: [
76
+ !y && /* @__PURE__ */ m(L, { children: [
77
+ /* @__PURE__ */ l(
78
+ "div",
79
+ {
80
+ className: a(
81
+ e.selectedOptions,
82
+ e[`${$}-size`],
83
+ e[`${k}-size_m`],
84
+ e[`${x}-size)_l`],
85
+ { [e.selectedOptionsNotEmpty]: s.length > 0 },
86
+ { [e.selectOptionsDisabled]: u }
87
+ ),
88
+ onClick: () => g(!o),
89
+ children: h || (s.length === 0 ? D : "Выбрано " + s.length)
90
+ }
91
+ ),
92
+ /* @__PURE__ */ l(
93
+ B,
94
+ {
95
+ name: "arrowShort",
96
+ deg: o ? "180" : "0",
97
+ size: f ?? "24",
98
+ additionalClass: e.icon
99
+ }
100
+ )
101
+ ] }),
102
+ y && /* @__PURE__ */ m(L, { children: [
103
+ /* @__PURE__ */ l(
104
+ "button",
105
+ {
106
+ className: a(
107
+ e.selectedOptions,
108
+ e[`${$}-size`],
109
+ e[`${k}-size_m`],
110
+ e[`${x}-size_l`],
111
+ e.selectedOptionsBtn,
112
+ { [e.selectOptionsDisabled]: u },
113
+ q
114
+ ),
115
+ onClick: () => {
116
+ N && N(), g(!o);
117
+ },
118
+ children: v
119
+ }
120
+ ),
121
+ /* @__PURE__ */ l(
122
+ B,
123
+ {
124
+ name: "filter",
125
+ deg: o ? "180" : "0",
126
+ size: f ?? "24",
127
+ additionalClass: a(e.icon, { [e.iconBtn]: !v })
128
+ }
129
+ )
130
+ ] })
131
+ ] }),
132
+ o && /* @__PURE__ */ m(
133
+ "div",
134
+ {
135
+ className: a(
136
+ e.optionsList,
137
+ { [e.listRight]: H },
138
+ { [e.lastList]: J },
139
+ _
140
+ ),
141
+ children: [
142
+ (c === "options" || c === "single") && (t == null ? void 0 : t.map((r, n) => /* @__PURE__ */ l(
143
+ T,
144
+ {
145
+ disabledOptions: d,
146
+ clickableOptions: C,
147
+ selectedOptions: s,
148
+ sizeIcon: f,
149
+ option: r,
150
+ handleOptionClick: R,
151
+ isDisabledNotClickable: A
152
+ },
153
+ n
154
+ ))),
155
+ (c === "category" || c === "double") && (t == null ? void 0 : t.map((r, n) => "options" in r ? /* @__PURE__ */ l(
156
+ U,
157
+ {
158
+ disabledOptions: d,
159
+ clickableOptions: C,
160
+ selectedOptions: s,
161
+ sizeIcon: f,
162
+ category: r,
163
+ mode: c,
164
+ selectedValues: i,
165
+ handleOptionClick: R,
166
+ isDisabledNotClickable: A
167
+ },
168
+ n
169
+ ) : null))
170
+ ]
171
+ }
172
+ )
173
+ ]
174
+ }
175
+ );
176
+ };
177
+ export {
178
+ ne as Select
179
+ };
@@ -0,0 +1,4 @@
1
+ import { SliderNavigation as r } from "./ui/SliderNavigation.js";
2
+ export {
3
+ r as SliderNavigation
4
+ };
@@ -0,0 +1,65 @@
1
+ import { jsxs as f, jsx as r } from "react/jsx-runtime";
2
+ import { RoundButton as d } from "../../RoundButton/ui/RoundButton.js";
3
+ import { Tag as C } from "../../Tag/ui/Tag.js";
4
+ import { useClientWidth as T } from "../../../shared/useClientWidth.js";
5
+ import { c as N } from "../../../index-rKuIKazb.js";
6
+ const k = "_sliderTag_1rvl9_1", l = {
7
+ sliderTag: k
8
+ }, v = N.bind(l), $ = ({
9
+ indexSlide: o,
10
+ isDisabledOff: s,
11
+ goPrev: m,
12
+ goNext: c,
13
+ arr: e,
14
+ isNeedTag: g = !0,
15
+ additionalClassTag: p = "",
16
+ navigationClassName: u = "",
17
+ additionalClassNavButton: t = "",
18
+ size: n = "medium",
19
+ size_m: i = "medium",
20
+ size_l: a = "large"
21
+ }) => {
22
+ const { isDesktop: h } = T();
23
+ return /* @__PURE__ */ f("div", { className: u, children: [
24
+ /* @__PURE__ */ r(
25
+ d,
26
+ {
27
+ iconName: "directionDown",
28
+ deg: "90",
29
+ size: n,
30
+ size_m: i,
31
+ size_l: a,
32
+ disabled: s ? !1 : o === 0,
33
+ additionalClass: t,
34
+ onClick: m
35
+ }
36
+ ),
37
+ g && /* @__PURE__ */ r(
38
+ C,
39
+ {
40
+ additionalClass: v(l.sliderTag, p),
41
+ variant: "shade",
42
+ size: h ? "large" : "medium",
43
+ size_m: i,
44
+ size_l: a,
45
+ children: `${o + 1} из ${e.length}`
46
+ }
47
+ ),
48
+ /* @__PURE__ */ r(
49
+ d,
50
+ {
51
+ disabled: s ? !1 : o === e.length - 1,
52
+ size: n,
53
+ size_m: i,
54
+ size_l: a,
55
+ iconName: "directionDown",
56
+ deg: "-90",
57
+ additionalClass: t,
58
+ onClick: c
59
+ }
60
+ )
61
+ ] });
62
+ };
63
+ export {
64
+ $ as SliderNavigation
65
+ };
@@ -0,0 +1,6 @@
1
+ import "react/jsx-runtime";
2
+ import { u as m } from "../../../useSortSelect-CjZXLFOG.js";
3
+ import "../../../index-rKuIKazb.js";
4
+ export {
5
+ m as useSortSelect
6
+ };
@@ -0,0 +1,4 @@
1
+ import { a as r } from "../../FilterWithSave-Bp6rH8Pe.js";
2
+ export {
3
+ r as SortSelect
4
+ };
@@ -0,0 +1,29 @@
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../../../index-rKuIKazb.js";
4
+ import "../../../useSortSelect-CjZXLFOG.js";
5
+ import "../../NewIcon/ui/NewIcon.js";
6
+ import "../../Button/ui/Button.js";
7
+ import "../../mobileButton/ui/MobileButton.js";
8
+ import "../../DestinationTab/ui/DestinationTab.js";
9
+ import "../../RoundButton/ui/RoundButton.js";
10
+ import "../../Tag/ui/Tag.js";
11
+ import "../../Switcher/ui/Switcher.js";
12
+ import "../../Text/ui/Text.js";
13
+ import "../../Flex/ui/Flex.js";
14
+ import "../../Input/ui/Input.js";
15
+ import "../../Modal/ui/Modal.js";
16
+ import { a as A } from "../../../FilterWithSave-Bp6rH8Pe.js";
17
+ import "../../GroupedInput/ui/GroupedInputs.js";
18
+ import "../../MetroTag/ui/MetroTag.js";
19
+ import "../../Select/ui/Select.js";
20
+ import "../../../shared/useClientWidth.js";
21
+ import "../../SliderNavigation/ui/SliderNavigation.js";
22
+ import "../../LotCardSkeleton/ui/LotCardSkeleton.js";
23
+ import "../../TabSelect/ui/TabSelect.js";
24
+ import "../../CheckBox/CheckBox.js";
25
+ import "../../CheckBoxNew/CheckBoxNew.js";
26
+ import "../../CheckboxSelect/ui/CheckboxSelect.js";
27
+ export {
28
+ A as SortSelect
29
+ };
@@ -0,0 +1,4 @@
1
+ import { SummarySelect as r } from "./ui/SummarySelect.js";
2
+ export {
3
+ r as SummarySelect
4
+ };
@@ -0,0 +1,128 @@
1
+ import { jsxs as s, jsx as l } from "react/jsx-runtime";
2
+ import { NewIcon as d } from "../../NewIcon/ui/NewIcon.js";
3
+ import { Select as O } from "../../Select/ui/Select.js";
4
+ const N = "_root_156r8_1", p = "_nameWrapper_156r8_8", f = "_clearBtn_156r8_18", S = "_summaryList_156r8_33", V = "_summaryOption_156r8_40", B = "_categoryOption_156r8_62", b = "_summaryCategory_156r8_71", k = "_headerCategory_156r8_81", T = "_categoryTitle_156r8_87", W = "_categoryOptions_156r8_95", t = {
5
+ root: N,
6
+ nameWrapper: p,
7
+ clearBtn: f,
8
+ summaryList: S,
9
+ summaryOption: V,
10
+ categoryOption: B,
11
+ summaryCategory: b,
12
+ headerCategory: k,
13
+ categoryTitle: T,
14
+ categoryOptions: W
15
+ }, j = ({
16
+ label: _ = "",
17
+ isShowReset: g,
18
+ ...a
19
+ }) => {
20
+ var y;
21
+ const c = (e) => {
22
+ a.onChange && a.onChange(e);
23
+ }, u = (e) => {
24
+ var r;
25
+ const o = ((r = a.selectedValues) == null ? void 0 : r.filter((n) => n.value !== e)) || [];
26
+ c(o);
27
+ }, h = () => {
28
+ c([]);
29
+ }, v = (e) => {
30
+ var o;
31
+ c(
32
+ ((o = a.selectedValues) == null ? void 0 : o.filter((r) => r.value !== e.value).filter(
33
+ (r) => !e.options.some((n) => n.value === r.value)
34
+ )) ?? []
35
+ );
36
+ }, m = (y = a.selectedValues) == null ? void 0 : y.filter((e) => "options" in e);
37
+ return /* @__PURE__ */ s("div", { className: t.root, children: [
38
+ /* @__PURE__ */ s("div", { className: t.nameWrapper, children: [
39
+ /* @__PURE__ */ l("div", { children: _ }),
40
+ g && /* @__PURE__ */ l(
41
+ "div",
42
+ {
43
+ className: t.clearBtn,
44
+ onClick: h,
45
+ children: "Очистить"
46
+ }
47
+ )
48
+ ] }),
49
+ /* @__PURE__ */ l(
50
+ O,
51
+ {
52
+ ...a,
53
+ onChange: c
54
+ }
55
+ ),
56
+ a.mode === "options" && a.selectedValues && a.selectedValues.length > 0 && /* @__PURE__ */ l("div", { className: t.summaryList, children: a.selectedValues.map((e) => /* @__PURE__ */ s(
57
+ "div",
58
+ {
59
+ onClick: () => u(e.value.toString()),
60
+ className: t.summaryOption,
61
+ children: [
62
+ e.label,
63
+ /* @__PURE__ */ l(
64
+ d,
65
+ {
66
+ name: "close",
67
+ size: "16"
68
+ }
69
+ )
70
+ ]
71
+ },
72
+ e.value
73
+ )) }),
74
+ a.mode === "double" && (m == null ? void 0 : m.map((e, o) => {
75
+ const r = e;
76
+ return /* @__PURE__ */ s(
77
+ "div",
78
+ {
79
+ className: t.summaryCategory,
80
+ children: [
81
+ /* @__PURE__ */ s("div", { className: t.headerCategory, children: [
82
+ /* @__PURE__ */ l("div", { className: t.categoryTitle, children: r.label }),
83
+ /* @__PURE__ */ l(
84
+ "div",
85
+ {
86
+ onClick: () => v(e),
87
+ className: t.clearBtn,
88
+ children: /* @__PURE__ */ l(
89
+ d,
90
+ {
91
+ name: "close",
92
+ size: "16"
93
+ }
94
+ )
95
+ }
96
+ )
97
+ ] }),
98
+ /* @__PURE__ */ l("div", { className: t.categoryOptions, children: r.options.filter((n) => {
99
+ var i;
100
+ return (i = a.selectedValues) == null ? void 0 : i.some((C) => n.value === C.value);
101
+ }).map((n, i) => /* @__PURE__ */ s(
102
+ "div",
103
+ {
104
+ onClick: () => u(n.value.toString()),
105
+ className: `${t.summaryOption} ${t.categoryOption}`,
106
+ children: [
107
+ n.label,
108
+ /* @__PURE__ */ l(
109
+ d,
110
+ {
111
+ name: "close",
112
+ size: "16"
113
+ }
114
+ )
115
+ ]
116
+ },
117
+ i
118
+ )) })
119
+ ]
120
+ },
121
+ o
122
+ );
123
+ }))
124
+ ] });
125
+ };
126
+ export {
127
+ j as SummarySelect
128
+ };
@@ -0,0 +1,4 @@
1
+ import { Switcher as o } from "./ui/Switcher.js";
2
+ export {
3
+ o as Switcher
4
+ };
@@ -0,0 +1,49 @@
1
+ import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
+ import { useRef as o, useEffect as _ } from "react";
3
+ import { c as f } from "../../../index-rKuIKazb.js";
4
+ const v = "_switcherWrapper_1sffg_29", h = "_switcherWrapperReverse_1sffg_40", d = "_switcherWrapperBetween_1sffg_44", W = "_swiper_1sffg_48", g = "_swiperBackward_1sffg_1", l = "_swiperActive_1sffg_63", m = "_swiperForward_1sffg_1", u = "_swiperInactive_1sffg_68", I = "_swiperPoint_1sffg_73", P = "_swiperPointActive_1sffg_85", B = "_swiperInitialize_1sffg_109", e = {
5
+ switcherWrapper: v,
6
+ switcherWrapperReverse: h,
7
+ switcherWrapperBetween: d,
8
+ swiper: W,
9
+ swiperBackward: g,
10
+ swiperActive: l,
11
+ swiperForward: m,
12
+ swiperInactive: u,
13
+ swiperPoint: I,
14
+ swiperPointActive: P,
15
+ swiperInitialize: B
16
+ }, i = f.bind(e), z = ({ children: p, isActive: s, onClick: c, isReverse: w, isBetween: n }) => {
17
+ const r = o(!0);
18
+ return _(() => {
19
+ r.current && (r.current = !1);
20
+ }, []), /* @__PURE__ */ a(
21
+ "div",
22
+ {
23
+ className: i(
24
+ e.switcherWrapper,
25
+ { [e.switcherWrapperReverse]: w },
26
+ { [e.switcherWrapperBetween]: n }
27
+ ),
28
+ children: [
29
+ /* @__PURE__ */ t(
30
+ "div",
31
+ {
32
+ className: i(
33
+ e.swiper,
34
+ { [e.swiperInitialize]: r.current },
35
+ { [e.swiperActive]: s },
36
+ { [e.swiperInactive]: !s && !r.current }
37
+ ),
38
+ onClick: c,
39
+ children: /* @__PURE__ */ t("div", { className: i(e.swiperPoint, { [e.swiperPointActive]: s }) })
40
+ }
41
+ ),
42
+ p
43
+ ]
44
+ }
45
+ );
46
+ };
47
+ export {
48
+ z as Switcher
49
+ };
@@ -0,0 +1,4 @@
1
+ import { TabSelect as r } from "./ui/TabSelect.js";
2
+ export {
3
+ r as TabSelect
4
+ };
@@ -0,0 +1,49 @@
1
+ import { jsxs as N, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as T } from "react";
3
+ import { c as y } from "../../../index-rKuIKazb.js";
4
+ import { Text as u } from "../../Text/ui/Text.js";
5
+ import { useClientWidth as D } from "../../../shared/useClientWidth.js";
6
+ const F = "_root_1knhi_1", P = "_whiteFill_1knhi_29", C = "_text_1knhi_34", I = "_whiteStroke_1knhi_48", j = "_withPadding_1knhi_86", A = "_grayDesign_1knhi_90", t = {
7
+ root: F,
8
+ whiteFill: P,
9
+ text: C,
10
+ whiteStroke: I,
11
+ withPadding: j,
12
+ grayDesign: A
13
+ }, i = y.bind(t), O = {
14
+ whiteFill: "whiteFill",
15
+ whiteStroke: "whiteStroke",
16
+ grayDesign: "grayDesign"
17
+ }, L = ({ variant: s = "whiteFill", classname: a, children: n }) => /* @__PURE__ */ e("div", { className: i(t.root, t[`${s}`], a), children: n }), r = T((s, a) => {
18
+ const { isTablet: n, isDesktop: c } = D(), h = (f, x) => f && o ? o : x && l ? l : b, {
19
+ children: d,
20
+ className: m,
21
+ additionalClassName: _,
22
+ additionalLabelClass: w,
23
+ //TODO предлогаю засунуть в жопу isLong
24
+ isLong: g,
25
+ checked: k,
26
+ withPadding: S = !1,
27
+ width: b,
28
+ width_m: o,
29
+ width_l: l,
30
+ ...p
31
+ } = s;
32
+ return /* @__PURE__ */ N("label", { className: i(t.item, w, { [t.withPadding]: S }), children: [
33
+ /* @__PURE__ */ e("input", { ref: a, type: "checkbox", checked: k, ...p }),
34
+ /* @__PURE__ */ e(
35
+ "div",
36
+ {
37
+ className: i(m, _, { isLong: g }),
38
+ style: { width: h(n, c) },
39
+ children: /* @__PURE__ */ e(u, { className: i(t.text), children: d })
40
+ }
41
+ )
42
+ ] });
43
+ });
44
+ r.displayName = "TabSelectItem";
45
+ const V = Object.assign(L, { Item: r });
46
+ export {
47
+ O as TAB_SELECT_VARIANTS,
48
+ V as TabSelect
49
+ };