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.
Files changed (271) hide show
  1. package/README.md +30 -0
  2. package/dist/App.d.ts +2 -0
  3. package/dist/App.js +10 -0
  4. package/dist/Option-DmDx_xOt.js +99 -0
  5. package/dist/PinTrans-D6OZq76b.js +10 -0
  6. package/dist/Router.d.ts +2 -0
  7. package/dist/Router.js +103 -0
  8. package/dist/SmallFilter-C-VKnbkP.js +10 -0
  9. package/dist/chunk-4WY6JWTD-BeveLKf_.js +1582 -0
  10. package/dist/components/Button/ui/Button.d.ts +1 -2
  11. package/dist/components/Button/ui/Button.js +74 -67
  12. package/dist/components/Button/ui/Button.types.d.ts +7 -5
  13. package/dist/components/Button/ui/Button.types.js +5 -3
  14. package/dist/components/CheckBox/CheckBox.d.ts +2 -0
  15. package/dist/components/CheckBox/CheckBox.js +84 -0
  16. package/dist/components/CheckBox/CheckBox.types.d.ts +17 -0
  17. package/dist/components/CheckBox/CheckBox.types.js +1 -0
  18. package/dist/components/CheckBox/index.d.ts +2 -0
  19. package/dist/components/CheckBox/index.js +4 -0
  20. package/dist/components/CheckBoxNew/CheckBox.types.d.ts +16 -0
  21. package/dist/components/CheckBoxNew/CheckBox.types.js +6 -0
  22. package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +11 -0
  23. package/dist/components/CheckBoxNew/CheckBoxNew.js +45 -0
  24. package/dist/components/CheckboxSelect/index.d.ts +1 -0
  25. package/dist/components/CheckboxSelect/index.js +4 -0
  26. package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +18 -0
  27. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +57 -0
  28. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +2 -0
  29. package/dist/components/CommercialLotCard/CommercialLotCard.js +81 -0
  30. package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.d.ts +6 -0
  31. package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.js +21 -0
  32. package/dist/components/CommercialLotCard/components/Price/Price.d.ts +9 -0
  33. package/dist/components/CommercialLotCard/components/Price/Price.js +39 -0
  34. package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +6 -0
  35. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +100 -0
  36. package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +7 -0
  37. package/dist/components/CommercialLotCard/components/Tags/Tags.js +37 -0
  38. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +10 -0
  39. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.js +1 -0
  40. package/dist/components/CommercialLotCard/types/LotCard.d.ts +386 -0
  41. package/dist/components/CommercialLotCard/types/LotCard.js +1 -0
  42. package/dist/components/CommercialLotCard/utils/formatPrice.d.ts +1 -0
  43. package/dist/components/CommercialLotCard/utils/formatPrice.js +8 -0
  44. package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +4 -0
  45. package/dist/components/CommercialLotCard/utils/getTagsFeatures.js +13 -0
  46. package/dist/components/DestinationTab/ui/DestinationTab.d.ts +0 -1
  47. package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
  48. package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +0 -1
  49. package/dist/components/FavoriteIcon/FavoriteIcon.d.ts +7 -0
  50. package/dist/components/FavoriteIcon/FavoriteIcon.js +66 -0
  51. package/dist/components/FavoriteIcon/Heart.d.ts +3 -0
  52. package/dist/components/FavoriteIcon/Heart.js +24 -0
  53. package/dist/components/FavoriteIcon/HeartFilled.d.ts +5 -0
  54. package/dist/components/FavoriteIcon/HeartFilled.js +27 -0
  55. package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -2
  56. package/dist/components/FieldInput/ui/FieldInput.js +28 -7
  57. package/dist/components/FieldInput/ui/FieldInput.types.d.ts +3 -1
  58. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +43 -0
  59. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +56 -0
  60. package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +29 -0
  61. package/dist/components/FilterWithSave/ui/FilterWithSave.js +325 -0
  62. package/dist/components/Flex/ui/Flex.d.ts +0 -1
  63. package/dist/components/Flex/ui/Flex.js +1 -1
  64. package/dist/components/Flex/ui/Flex.types.d.ts +0 -1
  65. package/dist/components/FormModal/ui/ModalForm.d.ts +60 -0
  66. package/dist/components/FormModal/ui/ModalForm.js +1518 -0
  67. package/dist/components/FormModal/utils/reg.d.ts +4 -0
  68. package/dist/components/FormModal/utils/reg.js +6 -0
  69. package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +0 -1
  70. package/dist/components/GroupedInput/ui/GroupedInputs.js +5 -5
  71. package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +0 -1
  72. package/dist/components/Input/ui/Input.d.ts +28 -0
  73. package/dist/components/Input/ui/Input.js +3247 -49
  74. package/dist/components/Input/ui/Input.types.d.ts +0 -23
  75. package/dist/components/Input/ui/Input.types.js +1 -7
  76. package/dist/components/Logo/ui/Logo.d.ts +1 -2
  77. package/dist/components/Logo/ui/Logo.js +58 -33
  78. package/dist/components/Logo/ui/Logo.types.d.ts +13 -1
  79. package/dist/components/Logo/ui/Logo.types.js +14 -1
  80. package/dist/components/LotCard/hooks/useLotCard.d.ts +25 -0
  81. package/dist/components/LotCard/hooks/useLotCard.js +13 -0
  82. package/dist/components/LotCard/ui/LotCard.d.ts +1 -2
  83. package/dist/components/LotCard/ui/LotCard.js +203 -104
  84. package/dist/components/LotCard/ui/LotCard.types.d.ts +234 -75
  85. package/dist/components/LotCard/utils/checkBedroomsCount.js +2 -2
  86. package/dist/components/LotCard/utils/const.d.ts +8 -0
  87. package/dist/components/LotCard/utils/const.js +11 -0
  88. package/dist/components/LotCard/utils/formatPrice.d.ts +1 -1
  89. package/dist/components/LotCard/utils/formatPrice.js +5 -6
  90. package/dist/components/LotCard/utils/getTagsFeatures.d.ts +4 -0
  91. package/dist/components/LotCard/utils/getTagsFeatures.js +13 -0
  92. package/dist/components/LotCard/utils/monthlyPayment.d.ts +1 -0
  93. package/dist/components/LotCard/utils/monthlyPayment.js +4 -0
  94. package/dist/components/LotCardSkeleton/index.d.ts +1 -0
  95. package/dist/components/LotCardSkeleton/index.js +4 -0
  96. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.d.ts +5 -0
  97. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +83 -0
  98. package/dist/components/MetroLabel/ui/MetroLabel.d.ts +0 -1
  99. package/dist/components/MetroLabel/ui/MetroLabel.js +19 -19
  100. package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +0 -1
  101. package/dist/components/MetroTag/ui/MetroTag.d.ts +1 -2
  102. package/dist/components/MetroTag/ui/MetroTag.js +121 -25
  103. package/dist/components/MetroTag/ui/MetroTag.types.d.ts +21 -6
  104. package/dist/components/Modal/ui/Modal.d.ts +2 -17
  105. package/dist/components/Modal/ui/Modal.js +63 -19594
  106. package/dist/components/Modal/ui/Modal.types.d.ts +21 -0
  107. package/dist/components/ModalSuccess/ModalSuccess.d.ts +2 -0
  108. package/dist/components/ModalSuccess/ModalSuccess.js +60 -0
  109. package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +8 -0
  110. package/dist/components/ModalSuccess/ModalSuccess.types.js +1 -0
  111. package/dist/components/ModalSuccess/index.d.ts +1 -0
  112. package/dist/components/ModalSuccess/index.js +4 -0
  113. package/dist/components/NewIcon/icons/PinTrans.d.ts +3 -0
  114. package/dist/components/NewIcon/icons/PinTrans.js +6 -0
  115. package/dist/components/NewIcon/icons/SmallFilter.d.ts +3 -0
  116. package/dist/components/NewIcon/icons/SmallFilter.js +6 -0
  117. package/dist/components/NewIcon/index.d.ts +1 -1
  118. package/dist/components/NewIcon/index.js +3 -2
  119. package/dist/components/NewIcon/ui/NewIcon.d.ts +2 -2
  120. package/dist/components/NewIcon/ui/NewIcon.js +204 -99
  121. package/dist/components/NewIcon/ui/NewIcon.types.d.ts +0 -1
  122. package/dist/components/NewIcon/ui/iconTypes.d.ts +3 -0
  123. package/dist/components/NewIcon/ui/iconTypes.js +60 -0
  124. package/dist/components/ProjectCardSkeleton/index.d.ts +1 -0
  125. package/dist/components/ProjectCardSkeleton/index.js +4 -0
  126. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.d.ts +1 -0
  127. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +32 -0
  128. package/dist/components/RoundButton/ui/RoundButton.d.ts +1 -2
  129. package/dist/components/RoundButton/ui/RoundButton.js +56 -45
  130. package/dist/components/RoundButton/ui/RoundButton.types.d.ts +10 -2
  131. package/dist/components/RoundButton/ui/RoundButton.types.js +13 -6
  132. package/dist/components/Select/model/selectMode.d.ts +16 -0
  133. package/dist/components/Select/model/selectMode.js +64 -0
  134. package/dist/components/Select/ui/Category.d.ts +13 -0
  135. package/dist/components/Select/ui/Category.js +79 -0
  136. package/dist/components/Select/ui/Option.d.ts +15 -0
  137. package/dist/components/Select/ui/Option.js +7 -0
  138. package/dist/components/Select/ui/Select.d.ts +1 -3
  139. package/dist/components/Select/ui/Select.js +196 -79
  140. package/dist/components/Select/ui/Select.types.d.ts +62 -6
  141. package/dist/components/SliderNavigation/index.d.ts +0 -1
  142. package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +1 -2
  143. package/dist/components/SliderNavigation/ui/SliderNavigation.js +45 -32
  144. package/dist/components/SliderNavigation/ui/SliderNavigation.types.d.ts +7 -0
  145. package/dist/components/SortSelect/hooks/useSortSelect.d.ts +5 -4
  146. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  147. package/dist/components/SortSelect/ui/SortSelect.d.ts +0 -1
  148. package/dist/components/SortSelect/ui/SortSelect.js +67 -56
  149. package/dist/components/SortSelect/ui/SortSelect.types.d.ts +9 -2
  150. package/dist/components/SummarySelect/index.d.ts +1 -0
  151. package/dist/components/SummarySelect/index.js +4 -0
  152. package/dist/components/SummarySelect/ui/SummarySelect.d.ts +15 -0
  153. package/dist/components/SummarySelect/ui/SummarySelect.js +172 -0
  154. package/dist/components/Switcher/ui/Switcher.d.ts +1 -2
  155. package/dist/components/Switcher/ui/Switcher.js +45 -30
  156. package/dist/components/Switcher/ui/Switcher.types.d.ts +3 -1
  157. package/dist/components/TabSelect/index.d.ts +1 -0
  158. package/dist/components/TabSelect/index.js +4 -0
  159. package/dist/components/TabSelect/ui/TabSelect.d.ts +32 -0
  160. package/dist/components/TabSelect/ui/TabSelect.js +64 -0
  161. package/dist/components/TabSelect/ui/TabSelect.types.d.ts +0 -0
  162. package/dist/components/TabSelect/ui/TabSelect.types.js +1 -0
  163. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +4 -4
  164. package/dist/components/TabSwitcher/ui/TabSwitcher.js +114 -34
  165. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +23 -4
  166. package/dist/components/Tag/ui/Tag.d.ts +1 -2
  167. package/dist/components/Tag/ui/Tag.js +96 -44
  168. package/dist/components/Tag/ui/Tag.types.d.ts +22 -2
  169. package/dist/components/Tag/ui/Tag.types.js +20 -3
  170. package/dist/components/Text/ui/Text.d.ts +1 -2
  171. package/dist/components/Text/ui/Text.js +20 -27
  172. package/dist/components/Text/ui/Text.types.d.ts +0 -1
  173. package/dist/components/TextArea/TextArea.d.ts +8 -0
  174. package/dist/components/TextArea/TextArea.js +25 -0
  175. package/dist/components/ZoomControls/index.d.ts +1 -0
  176. package/dist/components/ZoomControls/index.js +4 -0
  177. package/dist/components/ZoomControls/ui/ZoomControls.d.ts +2 -0
  178. package/dist/components/ZoomControls/ui/ZoomControls.js +33 -0
  179. package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +6 -0
  180. package/dist/components/ZoomControls/ui/ZoomControls.types.js +1 -0
  181. package/dist/components/mobileButton/ui/MobileButton.d.ts +0 -1
  182. package/dist/components/mobileButton/ui/MobileButton.js +38 -38
  183. package/dist/components/mobileButton/ui/MobileButton.types.d.ts +0 -1
  184. package/dist/index-BJwl9stn.js +33872 -0
  185. package/dist/index-YnD2EP-S.js +43 -0
  186. package/dist/layout/Layout.d.ts +5 -0
  187. package/dist/layout/Layout.js +11 -0
  188. package/dist/layout/components/Header/Header.d.ts +1 -0
  189. package/dist/layout/components/Header/Header.js +141 -0
  190. package/dist/layout/components/Menu.d.ts +1 -0
  191. package/dist/layout/components/Menu.js +109 -0
  192. package/dist/main.d.ts +14 -0
  193. package/dist/main.js +70 -42
  194. package/dist/pages/ButtonsPage/Buttons.d.ts +1 -0
  195. package/dist/pages/ButtonsPage/Buttons.js +106 -0
  196. package/dist/pages/CheckboxPage/CheckboxPage.d.ts +1 -0
  197. package/dist/pages/CheckboxPage/CheckboxPage.js +224 -0
  198. package/dist/pages/FormsPage/FormsPage.d.ts +2 -0
  199. package/dist/pages/FormsPage/FormsPage.js +58 -0
  200. package/dist/pages/HomePage/HomePage.d.ts +2 -0
  201. package/dist/pages/HomePage/HomePage.js +7 -0
  202. package/dist/pages/IconsPage/IconsPage.d.ts +1 -0
  203. package/dist/pages/IconsPage/IconsPage.js +19 -0
  204. package/dist/pages/InputPage/InputPage.d.ts +1 -0
  205. package/dist/pages/InputPage/InputPage.js +13 -0
  206. package/dist/pages/LogoPage/LogoPage.d.ts +1 -0
  207. package/dist/pages/LogoPage/LogoPage.js +16 -0
  208. package/dist/pages/LotsPage/LotsPage.d.ts +1 -0
  209. package/dist/pages/LotsPage/LotsPage.js +74 -0
  210. package/dist/pages/LotsPage/const.d.ts +4 -0
  211. package/dist/pages/LotsPage/const.js +678 -0
  212. package/dist/pages/ModalsPage/ModalPage.d.ts +2 -0
  213. package/dist/pages/ModalsPage/ModalPage.js +110 -0
  214. package/dist/pages/SelectPage/SelectPage.d.ts +1 -0
  215. package/dist/pages/SelectPage/SelectPage.js +211 -0
  216. package/dist/pages/SelectPage/const.d.ts +13 -0
  217. package/dist/pages/SelectPage/const.js +35 -0
  218. package/dist/pages/TabsPage/TabsPage.d.ts +2 -0
  219. package/dist/pages/TabsPage/TabsPage.js +168 -0
  220. package/dist/pages/TagsPage/TagsPage.d.ts +1 -0
  221. package/dist/pages/TagsPage/TagsPage.js +64 -0
  222. package/dist/shared/checkLargeOffice.d.ts +2 -0
  223. package/dist/shared/checkLargeOffice.js +4 -0
  224. package/dist/shared/deepEqual.d.ts +1 -0
  225. package/dist/shared/deepEqual.js +16 -0
  226. package/dist/shared/fmtNumber.d.ts +1 -0
  227. package/dist/shared/fmtNumber.js +4 -0
  228. package/dist/shared/mlnRound.d.ts +1 -0
  229. package/dist/shared/mlnRound.js +8 -0
  230. package/dist/shared/useClientWidth.d.ts +2 -0
  231. package/dist/shared/useClientWidth.js +6 -6
  232. package/dist/stone-kit.css +1 -0
  233. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +166 -0
  234. package/dist/stories/entities/index.js +4 -0
  235. package/dist/stories/shared/ui/Button/Button.stories.js +118 -0
  236. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +71 -0
  237. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +45 -0
  238. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +114 -0
  239. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +89 -0
  240. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +31 -0
  241. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +44 -0
  242. package/dist/stories/shared/ui/Flex/Flex.stories.js +74 -0
  243. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +65 -0
  244. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +68 -0
  245. package/dist/stories/shared/ui/Input/Input.stories.js +82 -0
  246. package/dist/stories/shared/ui/Logo/Logo.stories.js +75 -0
  247. package/dist/stories/shared/ui/MetroLabel/MetroLabel.stories.js +91 -0
  248. package/dist/stories/shared/ui/MetroTag/MetroTag.stories.js +96 -0
  249. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +77 -0
  250. package/dist/stories/shared/ui/Modal/Modal.stories.js +77 -0
  251. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +34 -0
  252. package/dist/stories/shared/ui/NewIcon/NewIcon.stories.js +38 -0
  253. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +83 -0
  254. package/dist/stories/shared/ui/Select/Select.stories.js +81 -0
  255. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +82 -0
  256. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +87 -0
  257. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +85 -0
  258. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +77 -0
  259. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +76 -0
  260. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +76 -0
  261. package/dist/stories/shared/ui/Tag/Tag.stories.js +51 -0
  262. package/dist/stories/shared/ui/Text/Text.stories.js +22 -0
  263. package/dist/stories/shared/ui/TextArea/TextArea.stories.js +37 -0
  264. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +91 -0
  265. package/dist/stories/shared/ui/index.js +62 -0
  266. package/dist/useLotCard-D-gK4J_o.js +186 -0
  267. package/dist/useSortSelect-IeonkD5d.js +79 -0
  268. package/package.json +39 -30
  269. package/dist/index-DIxK0V-G.js +0 -44
  270. package/dist/style.css +0 -1
  271. package/dist/useSortSelect-A7A_pNcU.js +0 -76
@@ -1,66 +1,74 @@
1
- import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
- import { useState as d, useRef as y, useEffect as I } from "react";
3
- import { c as B } from "../../../index-DIxK0V-G.js";
4
- import { s as e, u as E } from "../../../useSortSelect-A7A_pNcU.js";
5
- import { NewIcon as u } from "../../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 as L } from "../../Text/ui/Text.js";
13
- import "../../Flex/ui/Flex.js";
14
- import "../../Input/ui/Input.js";
15
- import { Modal as W } from "../../Modal/ui/Modal.js";
16
- import "../../TabSwitcher/ui/TabSwitcher.js";
17
- import "../../GroupedInput/ui/GroupedInputs.js";
18
- import "../../MetroTag/ui/MetroTag.js";
19
- import "../../Select/ui/Select.js";
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import { useState as M, useRef as W, useEffect as E } from "react";
3
+ import { c as L } from "../../../index-YnD2EP-S.js";
4
+ import { s as e, u as j } from "../../../useSortSelect-IeonkD5d.js";
20
5
  import { useClientWidth as w } from "../../../shared/useClientWidth.js";
21
- const c = B.bind(e), M = ({
22
- options: s,
23
- placeholder: f = "",
24
- error: h,
25
- disabled: S,
26
- additionalClass: v = "",
27
- onChange: O,
28
- onBlur: N
6
+ import { NewIcon as O } from "../../NewIcon/ui/NewIcon.js";
7
+ import { Modal as T } from "../../Modal/ui/Modal.js";
8
+ import { Text as z } from "../../Text/ui/Text.js";
9
+ const r = L.bind(e), A = ({
10
+ options: n,
11
+ selectedOption: h,
12
+ placeholder: v = "",
13
+ error: N,
14
+ disabled: b,
15
+ additionalClass: x = "",
16
+ onChange: c,
17
+ onBlur: y,
18
+ mini: k,
19
+ openOnTop: d = !1,
20
+ onClickItem: C,
21
+ onCLickSelect: m,
22
+ onOpenClick: p
29
23
  }) => {
30
- const [x, b] = d(s[0]), [o, i] = d(!1), m = y(null), { isMobile: l } = w(), { handleBlur: C, getInputValue: k, getOption: a, handleDocumentClick: p } = E({
31
- selectedOption: x,
32
- setSelectedOption: b,
24
+ const [o, i] = M(!1), u = W(null), { isMobile: l } = w(), { handleBlur: B, getInputValue: I, getOption: f, handleDocumentClick: S } = j({
25
+ selectedOption: h,
26
+ onClickOption: C,
27
+ setSelectedOption: c,
33
28
  setIsOpen: i,
34
- containerRef: m,
35
- isOpen: o,
29
+ containerRef: u,
36
30
  isMobile: l,
37
- placeholder: f,
38
- onChange: O,
39
- onBlur: N
31
+ placeholder: v,
32
+ onChange: c,
33
+ onBlur: y
40
34
  });
41
- return I(() => (document.addEventListener("click", p), () => {
42
- document.removeEventListener("click", p);
43
- }), []), /* @__PURE__ */ r(
35
+ return E(() => (document.addEventListener("click", S), () => {
36
+ document.removeEventListener("click", S);
37
+ }), []), /* @__PURE__ */ s(
44
38
  "div",
45
39
  {
46
- ref: m,
47
- className: c(e.sortSelectWrapper, { [e.sortSelectWrapperError]: h }, v),
40
+ ref: u,
41
+ className: r(
42
+ e.sortSelectWrapper,
43
+ { [e.sortSelectWrapperError]: N },
44
+ { [e.sortSelectWrapperTop]: d },
45
+ x
46
+ ),
48
47
  tabIndex: 0,
49
- onBlur: C,
48
+ onBlur: B,
49
+ onClick: () => {
50
+ m && m();
51
+ },
50
52
  children: [
51
- /* @__PURE__ */ r("div", { className: c(e.inputWrapper), children: [
53
+ /* @__PURE__ */ s("div", { className: r(e.inputWrapper), children: [
52
54
  /* @__PURE__ */ t(
53
55
  "input",
54
56
  {
55
57
  type: "text",
56
58
  readOnly: !0,
57
- value: k(),
58
- className: c(e.selectedOptions, { [e.selectOptionsDisabled]: S }),
59
- onClick: () => i(!o)
59
+ value: I(),
60
+ className: r(
61
+ e.selectedOptions,
62
+ { [e.selectOptionsDisabled]: b },
63
+ { [e.selectionOptionMini]: k }
64
+ ),
65
+ onClick: () => {
66
+ o || p && p(), i(!o);
67
+ }
60
68
  }
61
69
  ),
62
70
  /* @__PURE__ */ t(
63
- u,
71
+ O,
64
72
  {
65
73
  name: "twoArrows",
66
74
  size: "24",
@@ -68,33 +76,36 @@ const c = B.bind(e), M = ({
68
76
  }
69
77
  )
70
78
  ] }),
71
- o && l && /* @__PURE__ */ r(
72
- W,
79
+ o && l && /* @__PURE__ */ s(
80
+ T,
73
81
  {
74
82
  isOpen: o,
75
83
  emitIsOpen: i,
76
84
  additionalClassModalBody: e.modalAddBody,
85
+ additionalClass: e.selectModal,
86
+ createPortalObj: { domNode: document.querySelector("body") },
87
+ isTransparentBack: !0,
77
88
  children: [
78
- /* @__PURE__ */ r("div", { className: e.mobileSortHeader, children: [
79
- /* @__PURE__ */ t(L, { children: "Сортировка" }),
89
+ /* @__PURE__ */ s("div", { className: e.mobileSortHeader, children: [
90
+ /* @__PURE__ */ t(z, { children: "Сортировка" }),
80
91
  /* @__PURE__ */ t("div", { onClick: () => i(!1), children: /* @__PURE__ */ t(
81
- u,
92
+ O,
82
93
  {
83
94
  name: "close",
84
- size: "24"
95
+ size: "20"
85
96
  }
86
97
  ) })
87
98
  ] }),
88
- /* @__PURE__ */ t("div", { className: e.mobileOptionList, children: s.map((n) => a(n)) })
99
+ /* @__PURE__ */ t("div", { className: e.mobileOptionList, children: n?.map((a) => f(a)) })
89
100
  ]
90
101
  }
91
102
  ),
92
- o && !l && /* @__PURE__ */ t("div", { className: e.optionsList, children: s.map((n) => a(n)) })
103
+ o && !l && /* @__PURE__ */ t("div", { className: r(e.optionsList, { [e.optionListOnTop]: d }), children: n?.map((a) => f(a)) })
93
104
  ]
94
105
  }
95
106
  );
96
107
  };
97
- M.displayName = "SortSelect";
108
+ A.displayName = "SortSelect";
98
109
  export {
99
- M as SortSelect
110
+ A as SortSelect
100
111
  };
@@ -1,13 +1,20 @@
1
+ import { TOption } from '../../Select/ui/Select.types.ts';
1
2
  export interface Option {
2
3
  value: string | number;
3
4
  label: string;
4
5
  }
5
6
  export interface SortSelectProps {
6
- options: Option[];
7
+ options?: Option[];
8
+ selectedOption: Option | null;
7
9
  placeholder?: string;
8
10
  error?: boolean;
9
11
  disabled?: boolean;
10
- onChange?: (event: Option) => void;
12
+ onChange?: (event: Option | null) => void;
11
13
  onBlur?: (event: Option) => void;
12
14
  additionalClass?: string;
15
+ mini?: boolean;
16
+ openOnTop?: boolean;
17
+ onOpenClick?: () => void;
18
+ onClickItem?: (option: TOption | TOption[]) => void;
19
+ onCLickSelect?: () => void;
13
20
  }
@@ -0,0 +1 @@
1
+ export { SummarySelect } from './ui/SummarySelect.tsx';
@@ -0,0 +1,4 @@
1
+ import { SummarySelect as r } from "./ui/SummarySelect.js";
2
+ export {
3
+ r as SummarySelect
4
+ };
@@ -0,0 +1,15 @@
1
+ import { MultiSelectProps } from '../../Select/ui/Select.types';
2
+ interface ISummarySelectProps extends MultiSelectProps {
3
+ label?: string;
4
+ isShowReset?: boolean;
5
+ isLast?: boolean;
6
+ isShowCategoryDelete?: boolean;
7
+ labelSize?: 'medium' | 'large';
8
+ clearPosition?: 'top' | 'bottom';
9
+ chipVariant?: 'default' | 'secondary';
10
+ chipAdditionalClass?: string;
11
+ summaryCategoryClass?: string;
12
+ selectBetweenSize?: 'small' | 'medium';
13
+ }
14
+ export declare const SummarySelect: React.FC<ISummarySelectProps>;
15
+ export {};
@@ -0,0 +1,172 @@
1
+ import { jsxs as r, jsx as t, Fragment as b } from "react/jsx-runtime";
2
+ import { c as n } from "../../../index-YnD2EP-S.js";
3
+ import { Select as x } from "../../Select/ui/Select.js";
4
+ import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
5
+ const A = "_root_99sc2_1", $ = "_nameWrapper_99sc2_8", j = "_size_large_99sc2_18", U = "_clearBtnWrapper_99sc2_25", F = "_clearBtn_99sc2_25", I = "_summaryList_99sc2_54", q = "_summaryOption_99sc2_66", E = "_summaryOptionSecondary_99sc2_88", G = "_categoryOption_99sc2_93", H = "_categoryOptionSecondary_99sc2_102", J = "_summaryCategory_99sc2_106", K = "_headerCategory_99sc2_116", M = "_categoryTitle_99sc2_122", Q = "_categoryTitleSecondary_99sc2_130", R = "_categoryOptions_99sc2_134", e = {
6
+ root: A,
7
+ nameWrapper: $,
8
+ size_large: j,
9
+ clearBtnWrapper: U,
10
+ clearBtn: F,
11
+ "clearBtn-size_medium": "_clearBtn-size_medium_99sc2_40",
12
+ summaryList: I,
13
+ "summaryList-size_small": "_summaryList-size_small_99sc2_59",
14
+ "summaryList-size_medium": "_summaryList-size_medium_99sc2_62",
15
+ summaryOption: q,
16
+ summaryOptionSecondary: E,
17
+ categoryOption: G,
18
+ categoryOptionSecondary: H,
19
+ summaryCategory: J,
20
+ headerCategory: K,
21
+ categoryTitle: M,
22
+ categoryTitleSecondary: Q,
23
+ categoryOptions: R
24
+ }, D = ({
25
+ label: h = "",
26
+ isShowReset: y,
27
+ isShowCategoryDelete: v = !1,
28
+ labelSize: z = "medium",
29
+ isLoading: B = !1,
30
+ clearPosition: _ = "top",
31
+ chipVariant: m = "default",
32
+ chipAdditionalClass: O = "",
33
+ selectPaddingBottom: L,
34
+ selectBetweenSize: C = "small",
35
+ summaryCategoryClass: W = "",
36
+ ...c
37
+ }) => {
38
+ const f = y && _ === "bottom", d = (a) => {
39
+ c.onChange && c.onChange(a);
40
+ }, S = (a) => {
41
+ a.filter((s) => s.value !== "selectAll").length === 0 ? d([]) : d(a);
42
+ }, N = (a) => {
43
+ const l = c.selectedValues?.filter((s) => s.value !== a) || [];
44
+ S(l);
45
+ }, u = () => {
46
+ d([]);
47
+ }, T = (a) => {
48
+ const l = c.selectedValues?.filter((s) => s.value !== a.value).filter(
49
+ (s) => !a.options.some((i) => i.value === s.value)
50
+ ) ?? [];
51
+ S(l);
52
+ }, o = c.selectedValues?.filter((a) => a.value !== "selectAll"), k = o?.filter((a) => "options" in a);
53
+ return /* @__PURE__ */ r("div", { className: e.root, children: [
54
+ (y && _ === "top" || h) && /* @__PURE__ */ r("div", { className: n(e.nameWrapper, e[`size_${z}`]), children: [
55
+ /* @__PURE__ */ t("div", { children: h }),
56
+ y && _ === "top" && /* @__PURE__ */ t(
57
+ "div",
58
+ {
59
+ className: e.clearBtn,
60
+ onClick: u,
61
+ children: "Очистить"
62
+ }
63
+ )
64
+ ] }),
65
+ /* @__PURE__ */ t(
66
+ x,
67
+ {
68
+ ...c,
69
+ isLoading: B,
70
+ selectPaddingBottom: L,
71
+ onChange: d
72
+ }
73
+ ),
74
+ !v && c.mode === "options" && o && o.length > 0 && /* @__PURE__ */ r("div", { className: n(e.summaryList, e[`summaryList-size_${C}`]), children: [
75
+ f && /* @__PURE__ */ t("div", { className: e.clearBtnWrapper, children: /* @__PURE__ */ t(
76
+ "div",
77
+ {
78
+ className: e.clearBtn,
79
+ onClick: u,
80
+ children: "Очистить"
81
+ }
82
+ ) }),
83
+ o.map((a) => /* @__PURE__ */ r(
84
+ "div",
85
+ {
86
+ onClick: () => N(a.value.toString()),
87
+ className: n(e.summaryOption, {
88
+ [e.summaryOptionSecondary]: m === "secondary"
89
+ }, O),
90
+ children: [
91
+ a.label,
92
+ /* @__PURE__ */ t(
93
+ p,
94
+ {
95
+ name: "close",
96
+ size: m === "secondary" ? "20" : "16"
97
+ }
98
+ )
99
+ ]
100
+ },
101
+ a.value
102
+ ))
103
+ ] }),
104
+ !v && c.mode === "double" && /* @__PURE__ */ r(b, { children: [
105
+ f && o && o.length > 0 && /* @__PURE__ */ t(
106
+ "div",
107
+ {
108
+ className: n(e.clearBtn, e[`clearBtn-size_${C}`]),
109
+ onClick: u,
110
+ children: "Очистить"
111
+ }
112
+ ),
113
+ k?.map((a, l) => {
114
+ const s = a;
115
+ return /* @__PURE__ */ r(
116
+ "div",
117
+ {
118
+ className: n(e.summaryCategory, W),
119
+ children: [
120
+ /* @__PURE__ */ r("div", { className: e.headerCategory, children: [
121
+ /* @__PURE__ */ t("div", { className: n(e.categoryTitle, {
122
+ [e.categoryTitleSecondary]: m === "secondary"
123
+ }), children: s.label }),
124
+ /* @__PURE__ */ t(
125
+ "div",
126
+ {
127
+ onClick: () => T(a),
128
+ className: e.clearBtn,
129
+ children: /* @__PURE__ */ t(
130
+ p,
131
+ {
132
+ name: "close",
133
+ size: "16"
134
+ }
135
+ )
136
+ }
137
+ )
138
+ ] }),
139
+ /* @__PURE__ */ t("div", { className: e.categoryOptions, children: s.options.filter((i) => o?.some((g) => i.value === g.value)).map((i, g) => /* @__PURE__ */ r(
140
+ "div",
141
+ {
142
+ onClick: () => N(i.value.toString()),
143
+ className: n(
144
+ e.summaryOption,
145
+ e.categoryOption,
146
+ { [e.categoryOptionSecondary]: m === "secondary" },
147
+ O
148
+ ),
149
+ children: [
150
+ i.label,
151
+ /* @__PURE__ */ t(
152
+ p,
153
+ {
154
+ name: "close",
155
+ size: m === "secondary" ? "20" : "16"
156
+ }
157
+ )
158
+ ]
159
+ },
160
+ g
161
+ )) })
162
+ ]
163
+ },
164
+ l
165
+ );
166
+ })
167
+ ] })
168
+ ] });
169
+ };
170
+ export {
171
+ D as SummarySelect
172
+ };
@@ -1,3 +1,2 @@
1
1
  import { ISwitcherProps } from './Switcher.types';
2
-
3
- export declare const Switcher: ({ children, isActive, onClick }: ISwitcherProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Switcher: ({ children, isActive, onClick, isReverse, isBetween, dataTestId }: ISwitcherProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,35 +1,50 @@
1
- import { jsxs as w, jsx as s } from "react/jsx-runtime";
2
- import { useRef as n, useEffect as o } from "react";
3
- import { c as a } from "../../../index-DIxK0V-G.js";
4
- const _ = "_switcherWrapper_iju0r_29", u = "_swiper_iju0r_36", d = "_swiperActive_iju0r_50", v = "_swiperForward_iju0r_1", j = "_swiperInactive_iju0r_55", m = "_swiperBackward_iju0r_1", f = "_swiperPoint_iju0r_60", P = "_swiperPointActive_iju0r_72", r = {
5
- switcherWrapper: _,
6
- swiper: u,
7
- swiperActive: d,
8
- swiperForward: v,
9
- swiperInactive: j,
1
+ import { jsxs as o, jsx as p } from "react/jsx-runtime";
2
+ import { useRef as _, useEffect as d } from "react";
3
+ import { c as v } from "../../../index-YnD2EP-S.js";
4
+ const h = "_switcherWrapper_1b1pd_29", b = "_switcherWrapperReverse_1b1pd_40", W = "_switcherWrapperBetween_1b1pd_44", l = "_swiper_1b1pd_48", m = "_swiperBackward_1b1pd_1", f = "_swiperActive_1b1pd_63", u = "_swiperForward_1b1pd_1", I = "_swiperInactive_1b1pd_68", P = "_swiperInitialize_1b1pd_73", B = "_swiperPoint_1b1pd_77", A = "_swiperPointActive_1b1pd_89", e = {
5
+ switcherWrapper: h,
6
+ switcherWrapperReverse: b,
7
+ switcherWrapperBetween: W,
8
+ swiper: l,
10
9
  swiperBackward: m,
11
- swiperPoint: f,
12
- swiperPointActive: P
13
- }, t = a.bind(r), x = ({ children: c, isActive: i, onClick: p }) => {
14
- const e = n(!0);
15
- return o(() => {
16
- e.current && (e.current = !1);
17
- }, []), /* @__PURE__ */ w("div", { className: r.switcherWrapper, children: [
18
- c,
19
- /* @__PURE__ */ s(
20
- "div",
21
- {
22
- className: t(
23
- r.swiper,
24
- { [r.swiperActive]: i },
25
- { [r.swiperInactive]: !i && !e.current }
10
+ swiperActive: f,
11
+ swiperForward: u,
12
+ swiperInactive: I,
13
+ swiperInitialize: P,
14
+ swiperPoint: B,
15
+ swiperPointActive: A
16
+ }, s = v.bind(e), F = ({ children: t, isActive: i, onClick: c, isReverse: w, isBetween: n, dataTestId: a }) => {
17
+ const r = _(!0);
18
+ return d(() => {
19
+ r.current && (r.current = !1);
20
+ }, []), /* @__PURE__ */ o(
21
+ "div",
22
+ {
23
+ className: s(
24
+ e.switcherWrapper,
25
+ { [e.switcherWrapperReverse]: w },
26
+ { [e.switcherWrapperBetween]: n }
27
+ ),
28
+ children: [
29
+ /* @__PURE__ */ p(
30
+ "div",
31
+ {
32
+ className: s(
33
+ e.swiper,
34
+ { [e.swiperInitialize]: r.current },
35
+ { [e.swiperActive]: i },
36
+ { [e.swiperInactive]: !i && !r.current }
37
+ ),
38
+ onClick: c,
39
+ "data-testid": a,
40
+ children: /* @__PURE__ */ p("div", { className: s(e.swiperPoint, { [e.swiperPointActive]: i }) })
41
+ }
26
42
  ),
27
- onClick: p,
28
- children: /* @__PURE__ */ s("div", { className: t(r.swiperPoint, { [r.swiperPointActive]: i }) })
29
- }
30
- )
31
- ] });
43
+ t
44
+ ]
45
+ }
46
+ );
32
47
  };
33
48
  export {
34
- x as Switcher
49
+ F as Switcher
35
50
  };
@@ -1,6 +1,8 @@
1
- /// <reference types="react" />
2
1
  export interface ISwitcherProps extends React.HTMLAttributes<HTMLDivElement> {
3
2
  children?: React.ReactNode;
4
3
  isActive?: boolean;
5
4
  onClick?: () => void;
5
+ isReverse?: boolean;
6
+ isBetween?: boolean;
7
+ dataTestId?: string;
6
8
  }
@@ -0,0 +1 @@
1
+ export { TabSelect } from './ui/TabSelect';
@@ -0,0 +1,4 @@
1
+ import { TabSelect as r } from "./ui/TabSelect.js";
2
+ export {
3
+ r as TabSelect
4
+ };
@@ -0,0 +1,32 @@
1
+ type TBtn = {
2
+ isLong?: boolean;
3
+ additionalClassName?: string;
4
+ additionalLabelClass?: string;
5
+ withPadding?: boolean;
6
+ width?: string;
7
+ width_m?: string;
8
+ width_l?: string;
9
+ };
10
+ type BaseInputProps = React.JSX.IntrinsicElements['input'] & TBtn;
11
+ interface ITabSelect {
12
+ children?: React.ReactNode;
13
+ variant?: SwitcherVariant;
14
+ classname?: string;
15
+ isRound?: boolean;
16
+ }
17
+ export declare const TAB_SELECT_VARIANTS: {
18
+ readonly whiteFill: "whiteFill";
19
+ readonly whiteStroke: "whiteStroke";
20
+ readonly grayDesign: "grayDesign";
21
+ readonly fullWhite: "fullWhite";
22
+ };
23
+ export type SwitcherVariant = keyof typeof TAB_SELECT_VARIANTS;
24
+ declare const TabSelectNamespace: (({ variant, classname, children }: ITabSelect) => import("react/jsx-runtime").JSX.Element) & {
25
+ Item: {
26
+ (props: BaseInputProps & {
27
+ ref?: React.Ref<HTMLInputElement>;
28
+ }): import("react/jsx-runtime").JSX.Element;
29
+ displayName: string;
30
+ };
31
+ };
32
+ export { TabSelectNamespace as TabSelect };
@@ -0,0 +1,64 @@
1
+ import { jsx as e, jsxs as N } from "react/jsx-runtime";
2
+ import { c as T } from "../../../index-YnD2EP-S.js";
3
+ import { useClientWidth as k } from "../../../shared/useClientWidth.js";
4
+ import { Text as y } from "../../Text/ui/Text.js";
5
+ const z = "_root_pbslz_1", W = "_whiteFill_pbslz_29", D = "_text_pbslz_34", F = "_fullWhite_pbslz_48", P = "_whiteStroke_pbslz_67", C = "_withPadding_pbslz_105", I = "_grayDesign_pbslz_109", t = {
6
+ root: z,
7
+ whiteFill: W,
8
+ text: D,
9
+ fullWhite: F,
10
+ whiteStroke: P,
11
+ withPadding: C,
12
+ grayDesign: I
13
+ }, i = T.bind(t), B = {
14
+ whiteFill: "whiteFill",
15
+ whiteStroke: "whiteStroke",
16
+ grayDesign: "grayDesign",
17
+ fullWhite: "fullWhite"
18
+ }, L = ({
19
+ variant: s = "whiteFill",
20
+ classname: l,
21
+ children: a
22
+ }) => /* @__PURE__ */ e("div", { className: i(t.root, t[`${s}`], l), children: a }), c = (s) => {
23
+ const { isTablet: l, isDesktop: a } = k(), {
24
+ children: r,
25
+ className: h,
26
+ additionalClassName: d,
27
+ additionalLabelClass: _,
28
+ isLong: m,
29
+ checked: w,
30
+ withPadding: g = !1,
31
+ width: b,
32
+ width_m: o,
33
+ width_l: n,
34
+ ref: p,
35
+ ...f
36
+ } = s, u = (S, x) => S && o ? o : x && n ? n : b;
37
+ return /* @__PURE__ */ N("label", { className: i(t.item, _, { [t.withPadding]: g }), children: [
38
+ /* @__PURE__ */ e(
39
+ "input",
40
+ {
41
+ ref: p,
42
+ type: "checkbox",
43
+ checked: w,
44
+ ...f
45
+ }
46
+ ),
47
+ /* @__PURE__ */ e(
48
+ "div",
49
+ {
50
+ className: i(h, d, { [t.isLong]: m }),
51
+ style: { width: u(l, a) },
52
+ children: /* @__PURE__ */ e(y, { className: i(t.text), children: r })
53
+ }
54
+ )
55
+ ] });
56
+ };
57
+ c.displayName = "TabSelectItem";
58
+ const O = Object.assign(L, {
59
+ Item: c
60
+ });
61
+ export {
62
+ B as TAB_SELECT_VARIANTS,
63
+ O as TabSelect
64
+ };
@@ -1,6 +1,6 @@
1
+ import { FC } from 'react';
1
2
  import { ITabSwitcherItem, TabSwitcherProps } from './TabSwitcher.types';
2
-
3
- declare const SwitcherNamespace: (({ children, variant, addClassName, col, }: TabSwitcherProps) => import("react/jsx-runtime").JSX.Element | null) & {
4
- Item: import('react').ForwardRefExoticComponent<Omit<ITabSwitcherItem, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
3
+ declare const TabSwitcherNamespace: (({ children, variant, isApart, addClassName, col, }: TabSwitcherProps) => import("react/jsx-runtime").JSX.Element) & {
4
+ Item: FC<ITabSwitcherItem>;
5
5
  };
6
- export { SwitcherNamespace as TabSwitcher };
6
+ export { TabSwitcherNamespace as TabSwitcher };