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
@@ -0,0 +1,91 @@
1
+ import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
+ import { MetroLabel as e } from "../../../../components/MetroLabel/ui/MetroLabel.js";
3
+ const s = {
4
+ title: "shared/ui/MetroLabel",
5
+ component: e,
6
+ parameters: {
7
+ layout: "centered"
8
+ },
9
+ tags: ["autodocs"],
10
+ argTypes: {
11
+ width: {
12
+ control: {
13
+ type: "select",
14
+ options: ["full", "auto"]
15
+ }
16
+ },
17
+ justifyContent: {
18
+ control: {
19
+ type: "select",
20
+ options: ["flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly"]
21
+ }
22
+ },
23
+ colorIcon: {
24
+ control: "color"
25
+ }
26
+ }
27
+ }, n = {
28
+ args: {
29
+ metro: {
30
+ name: "Сокольники",
31
+ color: "#FF6B35",
32
+ routes: [
33
+ { timeTo: "5", iconName: "metro" },
34
+ { timeTo: "3", iconName: "bus" }
35
+ ]
36
+ }
37
+ }
38
+ }, c = {
39
+ args: {
40
+ metro: {
41
+ name: "Парк Культуры",
42
+ color: "#FF6B35",
43
+ routes: [
44
+ { timeTo: "2", iconName: "metro" },
45
+ { timeTo: "7", iconName: "bus" }
46
+ ]
47
+ }
48
+ }
49
+ }, i = {
50
+ args: {
51
+ metro: {
52
+ name: "Кропоткинская",
53
+ color: "#FF6B35"
54
+ }
55
+ }
56
+ }, l = {
57
+ args: {
58
+ metro: {
59
+ name: "Библиотека им. Ленина",
60
+ color: "#FF6B35",
61
+ routes: [
62
+ { timeTo: "1", iconName: "metro" },
63
+ { timeTo: "3", iconName: "bus" },
64
+ { timeTo: "5", iconName: "tram" }
65
+ ]
66
+ }
67
+ }
68
+ }, u = {
69
+ args: {
70
+ metro: {
71
+ name: "Охотный Ряд",
72
+ color: "#FF6B35",
73
+ routes: [
74
+ { timeTo: "2", iconName: "metro" }
75
+ ]
76
+ }
77
+ },
78
+ render: (t) => /* @__PURE__ */ r("div", { style: { display: "flex", gap: "8px", flexWrap: "wrap" }, children: [
79
+ /* @__PURE__ */ o(e, { ...t }),
80
+ /* @__PURE__ */ o(e, { metro: { name: "Театральная", color: "#00A651", routes: [{ timeTo: "3", iconName: "metro" }] } }),
81
+ /* @__PURE__ */ o(e, { metro: { name: "Площадь Революции", color: "#00A651", routes: [{ timeTo: "1", iconName: "metro" }] } })
82
+ ] })
83
+ };
84
+ export {
85
+ n as Default,
86
+ u as DifferentStations,
87
+ l as MultipleRoutes,
88
+ c as WithRoutes,
89
+ i as WithoutRoutes,
90
+ s as default
91
+ };
@@ -0,0 +1,96 @@
1
+ import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
+ import { MetroTag as t } from "../../../../components/MetroTag/ui/MetroTag.js";
3
+ const m = {
4
+ title: "shared/ui/MetroTag",
5
+ component: t,
6
+ parameters: {
7
+ layout: "centered"
8
+ },
9
+ tags: ["autodocs"],
10
+ argTypes: {
11
+ variant: {
12
+ control: {
13
+ type: "select",
14
+ options: ["default", "transparent", "mini"]
15
+ }
16
+ },
17
+ width: {
18
+ control: {
19
+ type: "select",
20
+ options: ["full", "auto"]
21
+ }
22
+ },
23
+ withBg: {
24
+ control: "boolean"
25
+ },
26
+ withWhiteBg: {
27
+ control: "boolean"
28
+ }
29
+ }
30
+ }, i = {
31
+ args: {
32
+ metro: {
33
+ name: "Сокольники",
34
+ station: "Сокольническая",
35
+ color: "#FF6B35",
36
+ timeTo: 5,
37
+ mode: "metro"
38
+ }
39
+ }
40
+ }, s = {
41
+ args: {
42
+ metro: {
43
+ name: "Парк Культуры",
44
+ station: "Сокольническая",
45
+ color: "#FF6B35",
46
+ timeTo: 3,
47
+ mode: "metro"
48
+ },
49
+ variant: "transparent"
50
+ }
51
+ }, l = {
52
+ args: {
53
+ metro: {
54
+ name: "Кропоткинская",
55
+ station: "Сокольническая",
56
+ color: "#FF6B35",
57
+ timeTo: 2,
58
+ mode: "metro"
59
+ },
60
+ variant: "mini"
61
+ }
62
+ }, c = {
63
+ args: {
64
+ metro: {
65
+ name: "Библиотека им. Ленина",
66
+ station: "Сокольническая",
67
+ color: "#FF6B35",
68
+ timeTo: 7,
69
+ mode: "metro"
70
+ },
71
+ withBg: !0
72
+ }
73
+ }, p = {
74
+ args: {
75
+ metro: {
76
+ name: "Охотный Ряд",
77
+ station: "Сокольническая",
78
+ color: "#FF6B35",
79
+ timeTo: 2,
80
+ mode: "metro"
81
+ }
82
+ },
83
+ render: (e) => /* @__PURE__ */ r("div", { style: { display: "flex", gap: "8px", flexWrap: "wrap" }, children: [
84
+ /* @__PURE__ */ o(t, { ...e }),
85
+ /* @__PURE__ */ o(t, { metro: { name: "Театральная", station: "Замоскворецкая", color: "#00A651", timeTo: 3, mode: "metro" } }),
86
+ /* @__PURE__ */ o(t, { metro: { name: "Площадь Революции", station: "Арбатско-Покровская", color: "#00A651", timeTo: 1, mode: "metro" } })
87
+ ] })
88
+ };
89
+ export {
90
+ i as Default,
91
+ l as Mini,
92
+ p as MultipleTags,
93
+ s as Transparent,
94
+ c as WithBackground,
95
+ m as default
96
+ };
@@ -0,0 +1,77 @@
1
+ import { l as t } from "../../../../index-BJwl9stn.js";
2
+ import { MobileButton as e } from "../../../../components/mobileButton/ui/MobileButton.js";
3
+ const r = {
4
+ title: "shared/ui/MobileButton",
5
+ component: e,
6
+ parameters: {
7
+ layout: "centered"
8
+ },
9
+ tags: ["autodocs"],
10
+ argTypes: {
11
+ variant: {
12
+ control: {
13
+ type: "select",
14
+ options: ["primary", "secondary", "outline"]
15
+ }
16
+ },
17
+ size: {
18
+ control: {
19
+ type: "select",
20
+ options: ["small", "medium", "large"]
21
+ }
22
+ }
23
+ },
24
+ args: {
25
+ onClick: t()
26
+ }
27
+ }, a = {
28
+ args: {
29
+ children: "Mobile Button"
30
+ }
31
+ }, i = {
32
+ args: {
33
+ children: "Primary Button",
34
+ variant: "primary"
35
+ }
36
+ }, l = {
37
+ args: {
38
+ children: "Secondary Button",
39
+ variant: "secondary"
40
+ }
41
+ }, s = {
42
+ args: {
43
+ children: "Outline Button",
44
+ variant: "outline"
45
+ }
46
+ }, c = {
47
+ args: {
48
+ children: "Small Button",
49
+ size: "small"
50
+ }
51
+ }, d = {
52
+ args: {
53
+ children: "Large Button",
54
+ size: "large"
55
+ }
56
+ }, u = {
57
+ args: {
58
+ children: "Disabled Button",
59
+ disabled: !0
60
+ }
61
+ }, m = {
62
+ args: {
63
+ children: "Button with Icon",
64
+ icon: "🔥"
65
+ }
66
+ };
67
+ export {
68
+ a as Default,
69
+ u as Disabled,
70
+ d as Large,
71
+ s as Outline,
72
+ i as Primary,
73
+ l as Secondary,
74
+ c as Small,
75
+ m as WithIcon,
76
+ r as default
77
+ };
@@ -0,0 +1,77 @@
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import { l as t } from "../../../../index-BJwl9stn.js";
3
+ import { Modal as i } from "../../../../components/Modal/ui/Modal.js";
4
+ const n = {
5
+ title: "shared/ui/Modal",
6
+ component: i,
7
+ parameters: {
8
+ layout: "centered"
9
+ },
10
+ tags: ["autodocs"],
11
+ argTypes: {
12
+ isOpen: {
13
+ control: "boolean"
14
+ },
15
+ size: {
16
+ control: {
17
+ type: "select",
18
+ options: ["small", "medium", "large", "fullscreen"]
19
+ }
20
+ }
21
+ },
22
+ args: {
23
+ isOpen: !0,
24
+ onClose: t()
25
+ }
26
+ }, r = {
27
+ args: {
28
+ isOpen: !0,
29
+ title: "Modal Title",
30
+ children: /* @__PURE__ */ e("div", { children: "Modal content goes here" })
31
+ }
32
+ }, d = {
33
+ args: {
34
+ isOpen: !0,
35
+ title: "Small Modal",
36
+ size: "small",
37
+ children: /* @__PURE__ */ e("div", { children: "This is a small modal" })
38
+ }
39
+ }, c = {
40
+ args: {
41
+ isOpen: !0,
42
+ title: "Medium Modal",
43
+ size: "medium",
44
+ children: /* @__PURE__ */ e("div", { children: "This is a medium modal with more content" })
45
+ }
46
+ }, m = {
47
+ args: {
48
+ isOpen: !0,
49
+ title: "Large Modal",
50
+ size: "large",
51
+ children: /* @__PURE__ */ l("div", { children: [
52
+ /* @__PURE__ */ e("p", { children: "This is a large modal with lots of content." }),
53
+ /* @__PURE__ */ e("p", { children: "It can contain multiple paragraphs and other elements." }),
54
+ /* @__PURE__ */ e("button", { children: "Action Button" })
55
+ ] })
56
+ }
57
+ }, h = {
58
+ args: {
59
+ isOpen: !0,
60
+ children: /* @__PURE__ */ e("div", { children: "Modal without title" })
61
+ }
62
+ }, p = {
63
+ args: {
64
+ isOpen: !1,
65
+ title: "Closed Modal",
66
+ children: /* @__PURE__ */ e("div", { children: "This modal is closed" })
67
+ }
68
+ };
69
+ export {
70
+ p as Closed,
71
+ r as Default,
72
+ m as Large,
73
+ c as Medium,
74
+ d as Small,
75
+ h as WithoutTitle,
76
+ n as default
77
+ };
@@ -0,0 +1,34 @@
1
+ import { l as s } from "../../../../index-BJwl9stn.js";
2
+ import { ModalSuccess as e } from "../../../../components/ModalSuccess/ModalSuccess.js";
3
+ const o = {
4
+ title: "shared/ui/ModalSuccess",
5
+ component: e,
6
+ parameters: {
7
+ layout: "centered"
8
+ },
9
+ tags: ["autodocs"],
10
+ argTypes: {
11
+ isSuccessOpen: {
12
+ control: "boolean"
13
+ }
14
+ },
15
+ args: {
16
+ isSuccessOpen: !0,
17
+ setIsSuccess: s()
18
+ }
19
+ }, a = {
20
+ args: {
21
+ isSuccessOpen: !0,
22
+ setIsSuccess: s()
23
+ }
24
+ }, r = {
25
+ args: {
26
+ isSuccessOpen: !1,
27
+ setIsSuccess: s()
28
+ }
29
+ };
30
+ export {
31
+ r as Closed,
32
+ a as Default,
33
+ o as default
34
+ };
@@ -0,0 +1,38 @@
1
+ import { jsx as o, jsxs as r } from "react/jsx-runtime";
2
+ import { NewIcon as t, iconTypes as l } from "../../../../components/NewIcon/ui/NewIcon.js";
3
+ const n = {
4
+ title: "shared/ui/NewIcon",
5
+ component: t,
6
+ parameters: {
7
+ layout: "centered"
8
+ },
9
+ tags: ["autodocs"],
10
+ argTypes: {
11
+ name: {
12
+ control: {
13
+ type: "select",
14
+ options: Object.keys(l)
15
+ }
16
+ },
17
+ size: {
18
+ control: "text"
19
+ },
20
+ color: {
21
+ control: "color"
22
+ }
23
+ }
24
+ }, a = {
25
+ args: {
26
+ name: "loader"
27
+ }
28
+ }, p = {
29
+ render: () => /* @__PURE__ */ o("div", { style: { display: "flex", flexWrap: "wrap", gap: "16px" }, children: Object.keys(l).map((e) => /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: "8px" }, children: [
30
+ /* @__PURE__ */ o(t, { name: e }),
31
+ /* @__PURE__ */ o("span", { children: e })
32
+ ] }, e)) })
33
+ };
34
+ export {
35
+ p as AllIcons,
36
+ a as Default,
37
+ n as default
38
+ };
@@ -0,0 +1,83 @@
1
+ import { l as r } from "../../../../index-BJwl9stn.js";
2
+ import { RoundButton as t } from "../../../../components/RoundButton/ui/RoundButton.js";
3
+ const n = {
4
+ title: "shared/ui/RoundButton",
5
+ component: t,
6
+ parameters: {
7
+ layout: "centered"
8
+ },
9
+ tags: ["autodocs"],
10
+ argTypes: {
11
+ variant: {
12
+ control: {
13
+ type: "select",
14
+ options: ["primary", "secondary", "outline", "ghost"]
15
+ }
16
+ },
17
+ size: {
18
+ control: {
19
+ type: "select",
20
+ options: ["small", "medium", "large"]
21
+ }
22
+ }
23
+ },
24
+ args: {
25
+ onClick: r()
26
+ }
27
+ }, s = {
28
+ args: {
29
+ children: "+"
30
+ }
31
+ }, o = {
32
+ args: {
33
+ children: "+",
34
+ variant: "primary"
35
+ }
36
+ }, i = {
37
+ args: {
38
+ children: "−",
39
+ variant: "secondary"
40
+ }
41
+ }, l = {
42
+ args: {
43
+ children: "×",
44
+ variant: "outline"
45
+ }
46
+ }, c = {
47
+ args: {
48
+ children: "?",
49
+ variant: "ghost"
50
+ }
51
+ }, d = {
52
+ args: {
53
+ children: "+",
54
+ size: "small"
55
+ }
56
+ }, g = {
57
+ args: {
58
+ children: "+",
59
+ size: "large"
60
+ }
61
+ }, m = {
62
+ args: {
63
+ children: "+",
64
+ disabled: !0
65
+ }
66
+ }, h = {
67
+ args: {
68
+ children: "🔥",
69
+ variant: "primary"
70
+ }
71
+ };
72
+ export {
73
+ s as Default,
74
+ m as Disabled,
75
+ c as Ghost,
76
+ g as Large,
77
+ l as Outline,
78
+ o as Primary,
79
+ i as Secondary,
80
+ d as Small,
81
+ h as WithIcon,
82
+ n as default
83
+ };
@@ -0,0 +1,81 @@
1
+ import { l as e } from "../../../../index-BJwl9stn.js";
2
+ import { Select as l } from "../../../../components/Select/ui/Select.js";
3
+ const t = [
4
+ { value: "1", label: "Option 1" },
5
+ { value: "2", label: "Option 2" },
6
+ { value: "3", label: "Option 3" },
7
+ { value: "4", label: "Option 4" }
8
+ ], r = {
9
+ title: "shared/ui/Select",
10
+ component: l,
11
+ parameters: {
12
+ layout: "centered"
13
+ },
14
+ tags: ["autodocs"],
15
+ argTypes: {
16
+ variant: {
17
+ control: {
18
+ type: "select",
19
+ options: ["light", "dark", "gray", "transparent"]
20
+ }
21
+ },
22
+ size: {
23
+ control: {
24
+ type: "select",
25
+ options: ["small", "medium", "large"]
26
+ }
27
+ }
28
+ },
29
+ args: {
30
+ options: t,
31
+ onChange: e(),
32
+ onBlur: e(),
33
+ onFocus: e()
34
+ }
35
+ }, i = {
36
+ args: {
37
+ placeholder: "Select an option",
38
+ label: "Select Field"
39
+ }
40
+ }, n = {
41
+ args: {
42
+ placeholder: "Select an option",
43
+ label: "Select Field",
44
+ value: "2"
45
+ }
46
+ }, s = {
47
+ args: {
48
+ placeholder: "Select an option",
49
+ label: "Select Field",
50
+ error: !0,
51
+ errorText: "This field is required"
52
+ }
53
+ }, c = {
54
+ args: {
55
+ placeholder: "Select an option",
56
+ label: "Select Field",
57
+ disabled: !0
58
+ }
59
+ }, p = {
60
+ args: {
61
+ placeholder: "Select multiple options",
62
+ label: "Multiple Select",
63
+ multiple: !0,
64
+ value: ["1", "3"]
65
+ }
66
+ }, u = {
67
+ args: {
68
+ placeholder: "Select an option",
69
+ label: "Select Field",
70
+ helperText: "Choose the best option for you"
71
+ }
72
+ };
73
+ export {
74
+ i as Default,
75
+ c as Disabled,
76
+ p as Multiple,
77
+ s as WithError,
78
+ u as WithHelperText,
79
+ n as WithValue,
80
+ r as default
81
+ };
@@ -0,0 +1,82 @@
1
+ import { l as t } from "../../../../index-BJwl9stn.js";
2
+ import { SliderNavigation as e } from "../../../../components/SliderNavigation/ui/SliderNavigation.js";
3
+ const a = {
4
+ title: "shared/ui/SliderNavigation",
5
+ component: e,
6
+ parameters: {
7
+ layout: "centered"
8
+ },
9
+ tags: ["autodocs"],
10
+ argTypes: {
11
+ variant: {
12
+ control: {
13
+ type: "select",
14
+ options: ["light", "dark"]
15
+ }
16
+ },
17
+ size: {
18
+ control: {
19
+ type: "select",
20
+ options: ["small", "medium", "large"]
21
+ }
22
+ }
23
+ },
24
+ args: {
25
+ onPrevious: t(),
26
+ onNext: t()
27
+ }
28
+ }, s = {
29
+ args: {
30
+ currentSlide: 1,
31
+ totalSlides: 5
32
+ }
33
+ }, i = {
34
+ args: {
35
+ currentSlide: 1,
36
+ totalSlides: 5
37
+ }
38
+ }, o = {
39
+ args: {
40
+ currentSlide: 3,
41
+ totalSlides: 5
42
+ }
43
+ }, d = {
44
+ args: {
45
+ currentSlide: 5,
46
+ totalSlides: 5
47
+ }
48
+ }, n = {
49
+ args: {
50
+ currentSlide: 2,
51
+ totalSlides: 4,
52
+ variant: "dark"
53
+ }
54
+ }, c = {
55
+ args: {
56
+ currentSlide: 2,
57
+ totalSlides: 6,
58
+ size: "small"
59
+ }
60
+ }, S = {
61
+ args: {
62
+ currentSlide: 3,
63
+ totalSlides: 8,
64
+ size: "large"
65
+ }
66
+ }, g = {
67
+ args: {
68
+ currentSlide: 1,
69
+ totalSlides: 1
70
+ }
71
+ };
72
+ export {
73
+ n as Dark,
74
+ s as Default,
75
+ i as FirstSlide,
76
+ S as Large,
77
+ d as LastSlide,
78
+ o as MiddleSlide,
79
+ g as SingleSlide,
80
+ c as Small,
81
+ a as default
82
+ };