stone-kit 0.0.1029 → 0.0.1030

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 (173) hide show
  1. package/dist/App.js +4 -4
  2. package/dist/FilterWithSave-BWA01WwU.js +2476 -0
  3. package/dist/Menu-CeBSiTyP.js +513 -0
  4. package/dist/{Option-CtwUzW8a.js → Option-DU8cvBnA.js} +1 -1
  5. package/dist/Router.js +1 -1
  6. package/dist/components/Button/ui/Button.d.ts +1 -0
  7. package/dist/components/Button/ui/Button.js +1 -1
  8. package/dist/components/Button/ui/Button.types.d.ts +1 -0
  9. package/dist/components/CheckBox/CheckBox.d.ts +1 -0
  10. package/dist/components/CheckBox/CheckBox.js +1 -1
  11. package/dist/components/CheckBox/CheckBox.types.d.ts +1 -0
  12. package/dist/components/CheckBoxNew/CheckBox.types.d.ts +1 -0
  13. package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +1 -0
  14. package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
  15. package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +1 -0
  16. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
  17. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -0
  18. package/dist/components/CommercialLotCard/CommercialLotCard.js +7 -50
  19. package/dist/components/CommercialLotCard/components/Price/Price.d.ts +1 -0
  20. package/dist/components/CommercialLotCard/components/Price/Price.js +24 -23
  21. package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +1 -0
  22. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +27 -98
  23. package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +1 -0
  24. package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
  25. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +1 -0
  26. package/dist/components/CommercialLotCard/types/LotCard.d.ts +1 -0
  27. package/dist/components/CommercialLotCard/utils/formatPrice.js +2 -1
  28. package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +2 -1
  29. package/dist/components/DestinationTab/ui/DestinationTab.d.ts +1 -0
  30. package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
  31. package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +1 -0
  32. package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -0
  33. package/dist/components/FieldInput/ui/FieldInput.types.d.ts +1 -0
  34. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +2 -1
  35. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +26 -54
  36. package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +1 -0
  37. package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -323
  38. package/dist/components/Flex/ui/Flex.d.ts +1 -0
  39. package/dist/components/Flex/ui/Flex.js +1 -1
  40. package/dist/components/Flex/ui/Flex.types.d.ts +1 -0
  41. package/dist/components/FormModal/ui/ModalForm.js +28 -1445
  42. package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +1 -0
  43. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  44. package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +1 -0
  45. package/dist/components/Input/ui/Input.d.ts +2 -1
  46. package/dist/components/Input/ui/Input.js +325 -234
  47. package/dist/components/Logo/ui/Logo.d.ts +1 -0
  48. package/dist/components/Logo/ui/Logo.js +6 -6
  49. package/dist/components/LotCard/hooks/useLotCard.d.ts +1 -0
  50. package/dist/components/LotCard/hooks/useLotCard.js +24 -6
  51. package/dist/components/LotCard/index.js +2 -2
  52. package/dist/components/LotCard/ui/LotCard.d.ts +1 -0
  53. package/dist/components/LotCard/ui/LotCard.js +10 -213
  54. package/dist/components/LotCard/ui/LotCard.types.d.ts +1 -0
  55. package/dist/components/LotCard/utils/formatPrice.js +2 -1
  56. package/dist/components/LotCard/utils/getTagsFeatures.d.ts +2 -1
  57. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  58. package/dist/components/MetroLabel/ui/MetroLabel.d.ts +1 -0
  59. package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
  60. package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +1 -0
  61. package/dist/components/MetroTag/ui/MetroTag.d.ts +1 -0
  62. package/dist/components/MetroTag/ui/MetroTag.js +74 -74
  63. package/dist/components/MetroTag/ui/MetroTag.types.d.ts +1 -0
  64. package/dist/components/Modal/ui/Modal.d.ts +1 -0
  65. package/dist/components/Modal/ui/Modal.js +37 -34
  66. package/dist/components/Modal/ui/Modal.types.d.ts +1 -0
  67. package/dist/components/ModalSuccess/ModalSuccess.d.ts +1 -0
  68. package/dist/components/ModalSuccess/ModalSuccess.js +19 -18
  69. package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +1 -0
  70. package/dist/components/NewIcon/icons/PinTrans.d.ts +1 -0
  71. package/dist/components/NewIcon/icons/SmallFilter.d.ts +1 -0
  72. package/dist/components/NewIcon/ui/NewIcon.d.ts +1 -0
  73. package/dist/components/NewIcon/ui/NewIcon.js +1 -1
  74. package/dist/components/NewIcon/ui/NewIcon.types.d.ts +1 -0
  75. package/dist/components/NewIcon/ui/iconTypes.d.ts +1 -0
  76. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +11 -9
  77. package/dist/components/RoundButton/ui/RoundButton.d.ts +1 -0
  78. package/dist/components/RoundButton/ui/RoundButton.js +2 -2
  79. package/dist/components/RoundButton/ui/RoundButton.types.d.ts +1 -0
  80. package/dist/components/Select/model/selectMode.d.ts +1 -0
  81. package/dist/components/Select/model/selectMode.js +30 -30
  82. package/dist/components/Select/ui/Category.d.ts +1 -0
  83. package/dist/components/Select/ui/Category.js +3 -3
  84. package/dist/components/Select/ui/Option.d.ts +1 -0
  85. package/dist/components/Select/ui/Option.js +2 -2
  86. package/dist/components/Select/ui/Select.d.ts +1 -0
  87. package/dist/components/Select/ui/Select.js +115 -115
  88. package/dist/components/SliderNavigation/index.d.ts +1 -0
  89. package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +1 -0
  90. package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
  91. package/dist/components/SortSelect/hooks/useSortSelect.d.ts +1 -0
  92. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  93. package/dist/components/SortSelect/index.js +1 -1
  94. package/dist/components/SortSelect/ui/SortSelect.d.ts +1 -0
  95. package/dist/components/SortSelect/ui/SortSelect.js +26 -108
  96. package/dist/components/SortSelect/ui/SortSelect.types.d.ts +1 -0
  97. package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -0
  98. package/dist/components/SummarySelect/ui/SummarySelect.js +65 -59
  99. package/dist/components/Switcher/ui/Switcher.d.ts +1 -0
  100. package/dist/components/Switcher/ui/Switcher.js +1 -1
  101. package/dist/components/Switcher/ui/Switcher.types.d.ts +1 -0
  102. package/dist/components/TabSelect/ui/TabSelect.d.ts +1 -0
  103. package/dist/components/TabSelect/ui/TabSelect.js +5 -5
  104. package/dist/components/TabSwitcher/index.js +2 -2
  105. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +1 -0
  106. package/dist/components/TabSwitcher/ui/TabSwitcher.js +26 -120
  107. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -0
  108. package/dist/components/Tag/ui/Tag.d.ts +1 -0
  109. package/dist/components/Tag/ui/Tag.js +91 -91
  110. package/dist/components/Tag/ui/Tag.types.d.ts +1 -0
  111. package/dist/components/Text/ui/Text.d.ts +1 -0
  112. package/dist/components/Text/ui/Text.js +1 -1
  113. package/dist/components/Text/ui/Text.types.d.ts +1 -0
  114. package/dist/components/TextArea/TextArea.d.ts +1 -0
  115. package/dist/components/TextArea/TextArea.js +1 -1
  116. package/dist/components/ZoomControls/ui/ZoomControls.d.ts +1 -0
  117. package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +1 -0
  118. package/dist/components/mobileButton/ui/MobileButton.d.ts +1 -0
  119. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  120. package/dist/components/mobileButton/ui/MobileButton.types.d.ts +1 -0
  121. package/dist/index-DmANy9jd.js +890 -0
  122. package/dist/{index-BJwl9stn.js → index-DvCs2JPX.js} +9695 -9596
  123. package/dist/index-rKuIKazb.js +45 -0
  124. package/dist/layout/Layout.d.ts +1 -0
  125. package/dist/layout/components/Header/Header.js +71 -48
  126. package/dist/layout/components/Menu.js +26 -107
  127. package/dist/main.js +65 -70
  128. package/dist/pages/ButtonsPage/Buttons.js +61 -44
  129. package/dist/pages/FormsPage/FormsPage.js +50 -26
  130. package/dist/pages/IconsPage/IconsPage.js +31 -9
  131. package/dist/pages/InputPage/InputPage.js +32 -10
  132. package/dist/pages/LogoPage/LogoPage.js +35 -13
  133. package/dist/pages/LotsPage/LotsPage.js +17 -18
  134. package/dist/pages/LotsPage/const.d.ts +1 -0
  135. package/dist/pages/ModalsPage/ModalPage.js +66 -46
  136. package/dist/pages/SelectPage/SelectPage.js +58 -58
  137. package/dist/pages/TabsPage/TabsPage.js +20 -19
  138. package/dist/pages/TagsPage/TagsPage.js +44 -23
  139. package/dist/shared/checkLargeOffice.d.ts +1 -0
  140. package/dist/shared/checkLargeOffice.js +1 -1
  141. package/dist/shared/mlnRound.js +2 -1
  142. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +2 -2
  143. package/dist/stories/shared/ui/Button/Button.stories.js +5 -5
  144. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  145. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  146. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  147. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  148. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  149. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +2 -2
  150. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +8 -8
  151. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  152. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  153. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  154. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  155. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  156. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  157. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  158. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  159. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +2 -2
  160. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  161. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  162. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  163. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +2 -2
  164. package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
  165. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  166. package/dist/style.css +1 -0
  167. package/dist/useSortSelect-BTCEVMVn.js +80 -0
  168. package/package.json +1 -1
  169. package/dist/chunk-4WY6JWTD-BeveLKf_.js +0 -1582
  170. package/dist/index-YnD2EP-S.js +0 -43
  171. package/dist/stone-kit.css +0 -1
  172. package/dist/useLotCard-CYcRSogE.js +0 -186
  173. package/dist/useSortSelect-Cy3od4ig.js +0 -80
@@ -1,56 +1,28 @@
1
- import { useState as c, useRef as w, useEffect as p } from "react";
2
- import { useClientWidth as x } from "../../../shared/useClientWidth.js";
3
- const I = ({
4
- selectedTabs: n = [],
5
- selectedValues: v = [],
6
- onClickItem: m,
7
- disabledOptions: h = [],
8
- tabs: a = [],
9
- onChange: s,
10
- setSelectedTabs: S,
11
- onSaveClick: C,
12
- onClearClick: E
13
- }) => {
14
- const { isMobile: L } = x(), [i, u] = c(!1), f = w(null), [M, g] = c(n), [R] = c(v), [O, r] = c(M), [l, o] = c(R), y = (e) => {
15
- if (m && m(e), h.some((t) => t.value === e.value))
16
- return;
17
- const d = l.some((t) => t.value === e.value) ? l.filter((t) => t.value !== e.value) : [...l, e];
18
- o(d);
19
- }, J = () => {
20
- g(a), r(a), o([]), E(), s && (s([]), S?.(a));
21
- }, N = () => {
22
- o(v), r(n);
23
- }, k = () => {
24
- N(), u(!1);
25
- }, W = (e) => {
26
- e.stopPropagation(), C(), s && (S?.(O), s(l)), u(!1);
27
- };
28
- return p(() => {
29
- i || r((e) => JSON.stringify(e) !== JSON.stringify(n) ? n : e);
30
- }, [i, n]), p(() => {
31
- const e = (d) => {
32
- if (!f.current) return;
33
- const t = d.target;
34
- f.current.contains(t) || t.closest("svg") || k();
35
- };
36
- return i ? document.addEventListener("click", e) : document.removeEventListener("click", e), () => {
37
- document.removeEventListener("click", e);
38
- };
39
- }, [i]), {
40
- isMobile: L,
41
- handleClearClick: J,
42
- handleCloseModal: k,
43
- handleOptionClick: y,
44
- handleSaveClick: W,
45
- localSelectedTabs: O,
46
- selectedOptions: l,
47
- setSelectedOptions: o,
48
- isModalOpen: i,
49
- setIsModalOpen: u,
50
- setLocalSelectedTabs: r,
51
- containerRef: f
52
- };
53
- };
1
+ import "react";
2
+ import "../../Button/ui/Button.js";
3
+ import "../../mobileButton/ui/MobileButton.js";
4
+ import "../../NewIcon/ui/NewIcon.js";
5
+ import "../../DestinationTab/ui/DestinationTab.js";
6
+ import "../../RoundButton/ui/RoundButton.js";
7
+ import "../../Tag/ui/Tag.js";
8
+ import "../../Switcher/ui/Switcher.js";
9
+ import "../../Text/ui/Text.js";
10
+ import "../../Flex/ui/Flex.js";
11
+ import "../../Input/ui/Input.js";
12
+ import "react/jsx-runtime";
13
+ import "react-dom";
14
+ import { b as w } from "../../../FilterWithSave-BWA01WwU.js";
15
+ import "../../GroupedInput/ui/GroupedInputs.js";
16
+ import "../../../index-rKuIKazb.js";
17
+ import "../../MetroTag/ui/MetroTag.js";
18
+ import "../../Select/ui/Select.js";
19
+ import "../../../shared/useClientWidth.js";
20
+ import "../../SliderNavigation/ui/SliderNavigation.js";
21
+ import "../../LotCardSkeleton/ui/LotCardSkeleton.js";
22
+ import "../../TabSelect/ui/TabSelect.js";
23
+ import "../../CheckBox/CheckBox.js";
24
+ import "../../CheckBoxNew/CheckBoxNew.js";
25
+ import "../../CheckboxSelect/ui/CheckboxSelect.js";
54
26
  export {
55
- I as useFilterWithSave
27
+ w as useFilterWithSave
56
28
  };
@@ -1,4 +1,5 @@
1
1
  import { TOption } from '../../Select/ui/Select.types';
2
+
2
3
  interface IFilterWithSave {
3
4
  selectOptions?: TOption[];
4
5
  disabledOptions?: TOption[];
@@ -1,325 +1,9 @@
1
- import { jsxs as d, Fragment as I, jsx as t } from "react/jsx-runtime";
2
- import { O as M } from "../../../Option-CtwUzW8a.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
- };
1
+ import "react/jsx-runtime";
2
+ import "../../NewIcon/ui/NewIcon.js";
3
+ import { F as a } from "../../../FilterWithSave-BWA01WwU.js";
4
+ import "../../Modal/ui/Modal.js";
5
+ import "../../../Option-DU8cvBnA.js";
6
+ import "../../Button/ui/Button.js";
323
7
  export {
324
- ye as FilterWithSave
8
+ a as FilterWithSave
325
9
  };
@@ -1,2 +1,3 @@
1
1
  import { IFlexProps } from './Flex.types';
2
+
2
3
  export declare const Flex: ({ className, children, jc, ai, gap, fd, w, additionalClass, ...rest }: IFlexProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { c as t } from "../../../index-YnD2EP-S.js";
2
+ import { c as t } from "../../../index-rKuIKazb.js";
3
3
  const o = "_root_fi64k_1", _ = {
4
4
  root: o,
5
5
  "gap-1": "_gap-1_fi64k_5",
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type IFlex = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16';
2
3
  type IJustifyContent = 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
3
4
  type IAlignItems = 'start' | 'end' | 'center' | 'stretch';