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,43 +1,123 @@
1
- import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as _, Children as j, isValidElement as w, cloneElement as f } from "react";
3
- import { Text as p } from "../../Text/ui/Text.js";
4
- import { c as I } from "../../../index-DIxK0V-G.js";
5
- const b = "_root_j8jt6_1", h = "_item_j8jt6_17", x = "_firstItem_j8jt6_29", N = "_lastItem_j8jt6_34", d = "_text_j8jt6_38", u = "_rootCol_j8jt6_46", C = "_whiteRow_j8jt6_71", t = {
6
- root: b,
7
- item: h,
8
- firstItem: x,
9
- lastItem: N,
10
- text: d,
11
- rootCol: u,
12
- whiteRow: C
13
- }, c = I.bind(t), R = ({
14
- children: e,
15
- variant: a = "whiteRow",
16
- addClassName: m = "",
17
- col: i = !1
18
- }) => !e || !Array.isArray(e) ? null : /* @__PURE__ */ r("div", { className: c(t.root, t[a], m, { [t.rootCol]: i }), children: j.map(e, (s, o) => w(s) && e ? f(s, {
19
- className: c(
20
- t.item,
21
- { [t.firstItem]: o === 0 },
22
- { [t.lastItem]: o === e.length - 1 },
23
- { [t.isDisabled]: s.props.disabled }
24
- )
25
- }) : s) }), l = _((e, a) => {
26
- const { children: m, className: i, addItemClassName: s, ...o } = e;
27
- return console.log(s), /* @__PURE__ */ n("label", { children: [
28
- /* @__PURE__ */ r(
1
+ import { jsx as s, jsxs as S } from "react/jsx-runtime";
2
+ import { c as W } from "../../../index-YnD2EP-S.js";
3
+ import { useClientWidth as $ } from "../../../shared/useClientWidth.js";
4
+ import { Text as D } from "../../Text/ui/Text.js";
5
+ const M = "_root_1qhai_1", j = "_text_1qhai_18", G = "_textMini_1qhai_26", k = "_rootCol_1qhai_32", v = "_item_1qhai_38", O = "_whiteRow_1qhai_57", A = "_firstItem_1qhai_68", B = "_lastItem_1qhai_72", E = "_whiteRowGrayLabel_1qhai_103", F = "_labelItem_1qhai_118", H = "_outlined_1qhai_147", J = "_apart_1qhai_204", K = "_isLong_1qhai_204", P = "_autoWidth_1qhai_219", Q = "_mini_1qhai_233", U = "_isDisabled_1qhai_241", V = "_grayRow_1qhai_265", e = {
6
+ root: M,
7
+ text: j,
8
+ textMini: G,
9
+ rootCol: k,
10
+ item: v,
11
+ whiteRow: O,
12
+ firstItem: A,
13
+ lastItem: B,
14
+ whiteRowGrayLabel: E,
15
+ labelItem: F,
16
+ outlined: H,
17
+ apart: J,
18
+ isLong: K,
19
+ autoWidth: P,
20
+ mini: Q,
21
+ isDisabled: U,
22
+ grayRow: V,
23
+ "tiny-size": "_tiny-size_1qhai_293",
24
+ "small-size": "_small-size_1qhai_298",
25
+ "medium-size": "_medium-size_1qhai_303",
26
+ "large-size": "_large-size_1qhai_308",
27
+ "text-tiny-size": "_text-tiny-size_1qhai_313",
28
+ "text-small-size": "_text-small-size_1qhai_319",
29
+ "text-medium-size": "_text-medium-size_1qhai_324",
30
+ "text-large-size": "_text-large-size_1qhai_329",
31
+ "small-size_m": "_small-size_m_1qhai_335",
32
+ "medium-size_m": "_medium-size_m_1qhai_339",
33
+ "large-size_m": "_large-size_m_1qhai_343",
34
+ "text-small-size_m": "_text-small-size_m_1qhai_347",
35
+ "text-medium-size_m": "_text-medium-size_m_1qhai_351",
36
+ "text-large-size_m": "_text-large-size_m_1qhai_355",
37
+ "small-size_l": "_small-size_l_1qhai_370",
38
+ "medium-size_l": "_medium-size_l_1qhai_374",
39
+ "large-size_l": "_large-size_l_1qhai_378",
40
+ "text-small-size_l": "_text-small-size_l_1qhai_382",
41
+ "text-medium-size_l": "_text-medium-size_l_1qhai_386",
42
+ "text-large-size_l": "_text-large-size_l_1qhai_390"
43
+ }, _ = W.bind(e), X = ({
44
+ children: a,
45
+ variant: l = "whiteRow",
46
+ isApart: m = !1,
47
+ addClassName: i = "",
48
+ col: t = !1
49
+ }) => /* @__PURE__ */ s("div", { className: _(e.root, e[l], { [e.rootCol]: t, [e.apart]: m }, i), children: a }), g = (a) => {
50
+ const { isTablet: l, isDesktop: m } = $(), {
51
+ index: i,
52
+ children: t,
53
+ addItemClassName: u,
54
+ addLabelClassname: w,
55
+ addTextClass: b,
56
+ size_s: h = "large",
57
+ size_m: r,
58
+ size_l: d,
59
+ disabled: z = !1,
60
+ itemsLength: I = 0,
61
+ isLongOn: f = !0,
62
+ width: c,
63
+ width_m: o,
64
+ width_l: n,
65
+ mini: x = !1,
66
+ dataTestId: p,
67
+ ref: y,
68
+ ...L
69
+ } = a, q = (t?.toString().length ? t?.toString().length > 2 : !1) && f, R = (C, N) => C && o ? o : N && n ? n : c, T = !c && !o && !n && q;
70
+ return /* @__PURE__ */ S("label", { className: _(e.labelItem, { [e.isLong]: q }, w), children: [
71
+ /* @__PURE__ */ s(
29
72
  "input",
30
73
  {
31
- ref: a,
74
+ ref: y,
32
75
  type: "checkbox",
33
- ...o
76
+ ...L,
77
+ disabled: z
34
78
  }
35
79
  ),
36
- /* @__PURE__ */ r("div", { className: c(i, s), children: /* @__PURE__ */ r(p, { className: t.text, children: m }) })
80
+ /* @__PURE__ */ s(
81
+ "div",
82
+ {
83
+ style: { width: R(l, m) },
84
+ "data-testid": p,
85
+ className: _(
86
+ e.item,
87
+ {
88
+ [e.firstItem]: i === 0,
89
+ [e.lastItem]: i === I - 1,
90
+ [e.isDisabled]: z,
91
+ [e.autoWidth]: T,
92
+ [e.mini]: x
93
+ },
94
+ e[`${h}-size`],
95
+ e[`${r}-size_m`],
96
+ e[`${d}-size_l`],
97
+ u
98
+ ),
99
+ children: /* @__PURE__ */ s(
100
+ D,
101
+ {
102
+ className: _(
103
+ e.text,
104
+ e[`text-${h}-size`],
105
+ e[`text-${r}-size_m`],
106
+ e[`text-${d}-size_l`],
107
+ { [e.textMini]: x },
108
+ b
109
+ ),
110
+ children: t
111
+ }
112
+ )
113
+ }
114
+ )
37
115
  ] });
116
+ };
117
+ g.displayName = "TabSwitcherItem";
118
+ const ie = Object.assign(X, {
119
+ Item: g
38
120
  });
39
- l.displayName = "TabSwitcherItem";
40
- const v = Object.assign(R, { Item: l });
41
121
  export {
42
- v as TabSwitcher
122
+ ie as TabSwitcher
43
123
  };
@@ -1,16 +1,35 @@
1
- /// <reference types="react" />
1
+ import { ReactNode } from 'react';
2
2
  declare const TAB_SWITCHER_VARIANTS: {
3
3
  whiteRow: string;
4
+ grayRow: string;
5
+ whiteRowGrayLabel: string;
6
+ outlined: string;
4
7
  };
5
- type BaseInputProps = JSX.IntrinsicElements['input'];
6
- export interface ITabSwitcherItem extends BaseInputProps {
8
+ type TabSizes = 'medium' | 'small' | 'large' | 'tiny';
9
+ export interface ITabSwitcherItem extends React.ComponentPropsWithRef<'input'> {
7
10
  addItemClassName?: string;
11
+ addTextClass?: string;
12
+ addLabelClassname?: string;
13
+ index: number;
14
+ isDisabled?: boolean;
15
+ itemsLength: number;
16
+ width?: string;
17
+ width_m?: string;
18
+ mini?: boolean;
19
+ width_l?: string;
20
+ dataTestId?: string;
21
+ children?: ReactNode;
22
+ isLongOn?: boolean;
23
+ size_s?: TabSizes;
24
+ size_m?: TabSizes;
25
+ size_l?: TabSizes;
8
26
  }
9
27
  export interface TabSwitcherProps {
10
- children?: React.ReactElement<HTMLButtonElement> | React.ReactElement<HTMLButtonElement>[];
11
28
  variant?: TABS_VARIANTS;
12
29
  addClassName?: string;
30
+ isApart?: boolean;
13
31
  col?: boolean;
32
+ children: React.ReactElement[];
14
33
  }
15
34
  export type TABS_VARIANTS = keyof typeof TAB_SWITCHER_VARIANTS;
16
35
  export {};
@@ -1,4 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { ComponentProps } from './Tag.types';
3
-
4
- export declare const Tag: ({ size, size_m, size_l, children, variant, width, additionalClass, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Tag: ({ size, size_m, size_l, children, variant, width, additionalClass, fontWeight, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1,55 +1,107 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { c as f } from "../../../index-DIxK0V-G.js";
3
- const o = "_tagCommon_16jzf_1", n = "_red_16jzf_64", j = "_gray_16jzf_70", c = "_shade_16jzf_76", g = "_blackGrey_16jzf_82", d = "_chineseBlack_16jzf_88", h = "_white_16jzf_94", u = "_preLarge_size_m_16jzf_123", _ = {
1
+ import { jsx as z } from "react/jsx-runtime";
2
+ import { c as h } from "../../../index-YnD2EP-S.js";
3
+ const o = "_tagCommon_18las_1", y = "_red_18las_149", p = "_gray_18las_155", g = "_shade_18las_161", x = "_blackGrey_18las_167", c = "_blackWhite_18las_173", d = "_gray5_18las_179", u = "_gray8_18las_185", k = "_chineseBlack_18las_191", G = "_white_18las_198", f = "_fullWhite_18las_205", W = "_shadeWhite_18las_212", w = "_transparent_18las_222", b = "_transWhite_18las_229", L = "_neutralGray6_18las_239", T = "_whiteGrayStroke_18las_245", B = "_whiteGray_18las_245", S = "_lightGray_18las_259", $ = "_black_18las_167", C = "_blackStroke_18las_271", N = "_darkGray_18las_278", j = "_lightBlue_18las_283", v = "_lightGrayTrans_18las_289", q = "_whiteGrayTrans_18las_295", A = "_preLarge_size_m_18las_342", _ = {
4
4
  tagCommon: o,
5
- "auto-width": "_auto-width_16jzf_16",
6
- "full-width": "_full-width_16jzf_20",
7
- "medium-size": "_medium-size_16jzf_24",
8
- "tiny-size": "_tiny-size_16jzf_32",
9
- "small-size": "_small-size_16jzf_40",
10
- "preLarge-size": "_preLarge-size_16jzf_48",
11
- "large-size": "_large-size_16jzf_56",
12
- red: n,
13
- gray: j,
14
- shade: c,
15
- blackGrey: g,
16
- chineseBlack: d,
17
- white: h,
18
- "tiny-size_m": "_tiny-size_m_16jzf_102",
19
- "medium-size_m": "_medium-size_m_16jzf_109",
20
- "small-size_m": "_small-size_m_16jzf_116",
21
- preLarge_size_m: u,
22
- "large-size_m": "_large-size_m_16jzf_130",
23
- "tiny-size_l": "_tiny-size_l_16jzf_139",
24
- "medium-size_l": "_medium-size_l_16jzf_146",
25
- "small-size_l": "_small-size_l_16jzf_153",
26
- "preLarge-size_l": "_preLarge-size_l_16jzf_160",
27
- "large-size_l": "_large-size_l_16jzf_167"
28
- }, y = f.bind(_), L = ({
29
- size: e = "medium",
30
- size_m: s,
31
- size_l: i,
32
- children: z = "",
33
- variant: m = "gray",
34
- width: a = "auto",
35
- additionalClass: l = "",
5
+ "auto-width": "_auto-width_18las_21",
6
+ "full-width": "_full-width_18las_25",
7
+ "medium-size": "_medium-size_18las_29",
8
+ "mini-size": "_mini-size_18las_37",
9
+ "mini-12px-size": "_mini-12px-size_18las_45",
10
+ "tiny-size": "_tiny-size_18las_53",
11
+ "small-size": "_small-size_18las_61",
12
+ "preLarge-size": "_preLarge-size_18las_69",
13
+ "large-size": "_large-size_18las_77",
14
+ "tiny-7px-size": "_tiny-7px-size_18las_85",
15
+ "tiny-10px-size": "_tiny-10px-size_18las_93",
16
+ "tiny-12px-size": "_tiny-12px-size_18las_101",
17
+ "small-10px-size": "_small-10px-size_18las_109",
18
+ "small-13px-size": "_small-13px-size_18las_117",
19
+ "small-font-14-size": "_small-font-14-size_18las_125",
20
+ "extra-small-size": "_extra-small-size_18las_133",
21
+ "small-height-28px-size": "_small-height-28px-size_18las_141",
22
+ red: y,
23
+ gray: p,
24
+ shade: g,
25
+ blackGrey: x,
26
+ blackWhite: c,
27
+ gray5: d,
28
+ gray8: u,
29
+ chineseBlack: k,
30
+ white: G,
31
+ fullWhite: f,
32
+ shadeWhite: W,
33
+ transparent: w,
34
+ transWhite: b,
35
+ neutralGray6: L,
36
+ whiteGrayStroke: T,
37
+ whiteGray: B,
38
+ lightGray: S,
39
+ black: $,
40
+ blackStroke: C,
41
+ darkGray: N,
42
+ lightBlue: j,
43
+ lightGrayTrans: v,
44
+ whiteGrayTrans: q,
45
+ "tiny-fontWeight": "_tiny-fontWeight_18las_301",
46
+ "medium-fontWeight": "_medium-fontWeight_18las_305",
47
+ "large-fontWeight": "_large-fontWeight_18las_309",
48
+ "mini-size_m": "_mini-size_m_18las_314",
49
+ "tiny-size_m": "_tiny-size_m_18las_321",
50
+ "medium-size_m": "_medium-size_m_18las_328",
51
+ "small-size_m": "_small-size_m_18las_335",
52
+ preLarge_size_m: A,
53
+ "large-size_m": "_large-size_m_18las_349",
54
+ "tiny-7px-size_m": "_tiny-7px-size_m_18las_356",
55
+ "tiny-10px-size_m": "_tiny-10px-size_m_18las_363",
56
+ "tiny-12px-size_m": "_tiny-12px-size_m_18las_370",
57
+ "small-10px-size_m": "_small-10px-size_m_18las_377",
58
+ "small-13px-size_m": "_small-13px-size_m_18las_384",
59
+ "small-font-14-size_m": "_small-font-14-size_m_18las_391",
60
+ "mini-12px-size_m": "_mini-12px-size_m_18las_398",
61
+ "extra-small-size_m": "_extra-small-size_m_18las_405",
62
+ "small-height-28px-size_m": "_small-height-28px-size_m_18las_412",
63
+ "mini-size_l": "_mini-size_l_18las_421",
64
+ "tiny-size_l": "_tiny-size_l_18las_428",
65
+ "medium-size_l": "_medium-size_l_18las_435",
66
+ "small-size_l": "_small-size_l_18las_442",
67
+ "preLarge-size_l": "_preLarge-size_l_18las_449",
68
+ "large-size_l": "_large-size_l_18las_456",
69
+ "tiny-7px-size_l": "_tiny-7px-size_l_18las_463",
70
+ "tiny-10px-size_l": "_tiny-10px-size_l_18las_470",
71
+ "tiny-12px-size_l": "_tiny-12px-size_l_18las_477",
72
+ "small-10px-size_l": "_small-10px-size_l_18las_484",
73
+ "small-13px-size_l": "_small-13px-size_l_18las_491",
74
+ "small-font-14-size_l": "_small-font-14-size_l_18las_498",
75
+ "mini-12px-size_l": "_mini-12px-size_l_18las_505",
76
+ "extra-small-size_l": "_extra-small-size_l_18las_512",
77
+ "small-height-28px-size_l": "_small-height-28px-size_l_18las_519"
78
+ }, D = h.bind(_), H = ({
79
+ size: s = "medium",
80
+ size_m: l,
81
+ size_l: a,
82
+ children: i = "",
83
+ variant: e = "gray",
84
+ width: t = "auto",
85
+ additionalClass: m = "",
86
+ fontWeight: n = "medium",
36
87
  ...r
37
- }) => /* @__PURE__ */ t(
88
+ }) => /* @__PURE__ */ z(
38
89
  "div",
39
90
  {
40
- className: y(
91
+ className: D(
41
92
  _.tagCommon,
42
- _[`${e}-size`],
43
- _[`${s}-size_m`],
44
- _[`${i}-size_l`],
45
- _[`${m}`],
46
- _[`${a}-width`],
47
- l
93
+ _[`${s}-size`],
94
+ _[`${l}-size_m`],
95
+ _[`${a}-size_l`],
96
+ _[`${e}`],
97
+ _[`${t}-width`],
98
+ _[`${n}-fontWeight`],
99
+ m
48
100
  ),
49
101
  ...r,
50
- children: z
102
+ children: i
51
103
  }
52
104
  );
53
105
  export {
54
- L as Tag
106
+ H as Tag
55
107
  };
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  type tagWidth = 'auto' | 'full';
4
3
  export declare const TAG_VARIANTS: {
5
4
  red: string;
@@ -8,9 +7,26 @@ export declare const TAG_VARIANTS: {
8
7
  shade: string;
9
8
  blackGrey: string;
10
9
  chineseBlack: string;
10
+ fullWhite: string;
11
+ transparent: string;
12
+ shadeWhite: string;
13
+ transWhite: string;
14
+ whiteGrayStroke: string;
15
+ blackStroke: string;
16
+ lightBlue: string;
17
+ lightGray: string;
18
+ whiteGray: string;
19
+ darkGray: string;
20
+ lightGrayTrans: string;
21
+ whiteGrayTrans: string;
22
+ neutralGray6: string;
23
+ gray5: string;
24
+ gray8: string;
25
+ black: string;
26
+ blackWhite: string;
11
27
  };
12
28
  export type tagVariant = keyof typeof TAG_VARIANTS;
13
- type tagSizes = 'medium' | 'tiny' | 'large' | 'small' | 'preLarge';
29
+ type tagSizes = 'medium' | 'tiny' | 'large' | 'small' | 'preLarge' | 'mini' | 'mini-12px' | 'tiny-7px' | 'tiny-10px' | 'tiny-12px' | 'small-10px' | 'small-13px' | 'small-font-14' | 'extra-small' | 'small-height-28px';
14
30
  interface TagProps {
15
31
  size?: tagSizes;
16
32
  size_m?: tagSizes;
@@ -19,6 +35,10 @@ interface TagProps {
19
35
  variant?: tagVariant;
20
36
  width?: tagWidth;
21
37
  additionalClass?: string;
38
+ /**
39
+ * tiny = 300, medium = 400, large = 500
40
+ */
41
+ fontWeight?: 'medium' | 'tiny' | 'large';
22
42
  }
23
43
  export type ComponentProps = TagProps & React.HTMLAttributes<HTMLDivElement>;
24
44
  export {};
@@ -1,11 +1,28 @@
1
- const e = {
1
+ const a = {
2
2
  red: "red",
3
3
  gray: "gray",
4
4
  white: "white",
5
5
  shade: "shade",
6
6
  blackGrey: "blackGrey",
7
- chineseBlack: "chineseBlack"
7
+ chineseBlack: "chineseBlack",
8
+ fullWhite: "fullWhite",
9
+ transparent: "transparent",
10
+ shadeWhite: "shadeWhite",
11
+ transWhite: "transWhite",
12
+ whiteGrayStroke: "whiteGrayStroke",
13
+ blackStroke: "blackStroke",
14
+ lightBlue: "lightBlue",
15
+ lightGray: "lightGray",
16
+ whiteGray: "whiteGray",
17
+ darkGray: "darkGray",
18
+ lightGrayTrans: "lightGrayTrans",
19
+ whiteGrayTrans: "whiteGrayTrans",
20
+ neutralGray6: "neutralGray6",
21
+ gray5: "gray5",
22
+ gray8: "gray8",
23
+ black: "black",
24
+ blackWhite: "blackWhite"
8
25
  };
9
26
  export {
10
- e as TAG_VARIANTS
27
+ a as TAG_VARIANTS
11
28
  };
@@ -1,3 +1,2 @@
1
1
  import { ITextProps } from './Text.types';
2
-
3
- export declare const Text: ({ children, className, additionalClass, html, html_l, html_m, html_s, ...rest }: ITextProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Text: ({ children, className, additionalClass, html, ...rest }: ITextProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,29 +1,22 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { c as d } from "../../../index-DIxK0V-G.js";
3
- import { useClientWidth as k } from "../../../shared/useClientWidth.js";
4
- const T = "_root_wkh0k_1", r = {
5
- root: T
6
- }, f = d.bind(r), H = ({ children: m, className: o, additionalClass: t = "", html: e, html_l: n, html_m: s, html_s: i, ...c }) => {
7
- const { isMobile: p, isTablet: a, isDesktop: x } = k();
8
- if (!e)
9
- return /* @__PURE__ */ u(
10
- "div",
11
- {
12
- className: f(r.root, o, t),
13
- ...c,
14
- children: m
15
- }
16
- );
17
- const b = () => p && i ? i : a && s ? s : x && n ? n : e;
18
- return /* @__PURE__ */ u(
19
- "div",
20
- {
21
- className: f(r.root, o, t),
22
- ...c,
23
- dangerouslySetInnerHTML: { __html: b() }
24
- }
25
- );
26
- };
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { c as _ } from "../../../index-YnD2EP-S.js";
3
+ const i = "_root_wkh0k_1", o = {
4
+ root: i
5
+ }, e = _.bind(o), f = ({ children: m, className: r, additionalClass: t = "", html: s, ...n }) => s ? /* @__PURE__ */ c(
6
+ "div",
7
+ {
8
+ className: e(o.root, r, t),
9
+ ...n,
10
+ dangerouslySetInnerHTML: { __html: s }
11
+ }
12
+ ) : /* @__PURE__ */ c(
13
+ "div",
14
+ {
15
+ className: e(o.root, r, t),
16
+ ...n,
17
+ children: m
18
+ }
19
+ );
27
20
  export {
28
- H as Text
21
+ f as Text
29
22
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface ITextProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
3
2
  children?: React.ReactNode | 'string';
4
3
  className?: string;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ type textAreaWidth = 'auto' | 'full';
3
+ interface ITextArea extends React.ComponentPropsWithRef<'textarea'> {
4
+ width?: textAreaWidth;
5
+ additionalClass?: string;
6
+ }
7
+ export declare const TextArea: ({ width, additionalClass, children, ref, ...props }: ITextArea) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,25 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { c as _ } from "../../index-YnD2EP-S.js";
3
+ const c = "_root_v6f19_12", t = {
4
+ "auto-width": "_auto-width_v6f19_1",
5
+ "full-width": "_full-width_v6f19_6",
6
+ root: c
7
+ }, n = _.bind(t), d = ({
8
+ width: o = "auto",
9
+ additionalClass: r = "",
10
+ children: s = "",
11
+ ref: e,
12
+ ...a
13
+ }) => /* @__PURE__ */ i(
14
+ "textarea",
15
+ {
16
+ className: n(t.root, t[`${o}-width`], r),
17
+ ref: e,
18
+ style: { resize: "none" },
19
+ ...a,
20
+ children: s
21
+ }
22
+ );
23
+ export {
24
+ d as TextArea
25
+ };
@@ -0,0 +1 @@
1
+ export { ZoomControls } from './ui/ZoomControls';
@@ -0,0 +1,4 @@
1
+ import { ZoomControls as m } from "./ui/ZoomControls.js";
2
+ export {
3
+ m as ZoomControls
4
+ };
@@ -0,0 +1,2 @@
1
+ import { IZoomControls } from './ZoomControls.types';
2
+ export declare const ZoomControls: ({ size, zoomIn, zoomOut }: IZoomControls) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
+ import { RoundButton as s } from "../../RoundButton/ui/RoundButton.js";
3
+ const r = "_root_1gn8f_1", u = "_plusBtn_1gn8f_6", a = "_minusBtn_1gn8f_11", o = {
4
+ root: r,
5
+ plusBtn: u,
6
+ minusBtn: a
7
+ }, B = ({ size: n = "medium", zoomIn: i, zoomOut: m }) => /* @__PURE__ */ l("div", { className: o.root, children: [
8
+ /* @__PURE__ */ t(
9
+ s,
10
+ {
11
+ iconName: "plus",
12
+ size: n,
13
+ color: "#141416",
14
+ additionalClass: o.plusBtn,
15
+ onClick: i,
16
+ "data-testid": "zoom-in"
17
+ }
18
+ ),
19
+ /* @__PURE__ */ t(
20
+ s,
21
+ {
22
+ iconName: "minus",
23
+ size: n,
24
+ color: "#141416",
25
+ additionalClass: o.minusBtn,
26
+ onClick: m,
27
+ "data-testid": "zoom-out"
28
+ }
29
+ )
30
+ ] });
31
+ export {
32
+ B as ZoomControls
33
+ };
@@ -0,0 +1,6 @@
1
+ import { btnSizes } from '../../RoundButton/ui/RoundButton.types.ts';
2
+ export interface IZoomControls {
3
+ size?: btnSizes;
4
+ zoomIn: () => void;
5
+ zoomOut: () => void;
6
+ }
@@ -1,4 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { ComponentProps } from './MobileButton.types';
3
-
4
3
  export declare const MobileButton: ({ size, pre, children, post, variant, width, additionalClass, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;