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,87 @@
1
+ import { l as e } from "../../../../index-BJwl9stn.js";
2
+ import { SortSelect as a } from "../../../../components/SortSelect/ui/SortSelect.js";
3
+ const t = [
4
+ { value: "price-asc", label: "Price: Low to High" },
5
+ { value: "price-desc", label: "Price: High to Low" },
6
+ { value: "name-asc", label: "Name: A to Z" },
7
+ { value: "name-desc", label: "Name: Z to A" },
8
+ { value: "date-asc", label: "Date: Oldest First" },
9
+ { value: "date-desc", label: "Date: Newest First" }
10
+ ], o = {
11
+ title: "shared/ui/SortSelect",
12
+ component: a,
13
+ parameters: {
14
+ layout: "centered"
15
+ },
16
+ tags: ["autodocs"],
17
+ argTypes: {
18
+ variant: {
19
+ control: {
20
+ type: "select",
21
+ options: ["light", "dark", "gray", "transparent"]
22
+ }
23
+ },
24
+ size: {
25
+ control: {
26
+ type: "select",
27
+ options: ["small", "medium", "large"]
28
+ }
29
+ }
30
+ },
31
+ args: {
32
+ options: t,
33
+ onChange: e()
34
+ }
35
+ }, s = {
36
+ args: {
37
+ placeholder: "Sort by",
38
+ label: "Sort"
39
+ }
40
+ }, c = {
41
+ args: {
42
+ placeholder: "Sort by",
43
+ label: "Sort",
44
+ value: "price-asc"
45
+ }
46
+ }, i = {
47
+ args: {
48
+ placeholder: "Sort by",
49
+ label: "Sort",
50
+ error: !0,
51
+ errorText: "Please select a sort option"
52
+ }
53
+ }, n = {
54
+ args: {
55
+ placeholder: "Sort by",
56
+ label: "Sort",
57
+ disabled: !0
58
+ }
59
+ }, p = {
60
+ args: {
61
+ placeholder: "Sort by",
62
+ label: "Sort",
63
+ variant: "dark"
64
+ }
65
+ }, b = {
66
+ args: {
67
+ placeholder: "Sort by",
68
+ label: "Sort",
69
+ size: "small"
70
+ }
71
+ }, d = {
72
+ args: {
73
+ placeholder: "Sort by",
74
+ label: "Sort",
75
+ size: "large"
76
+ }
77
+ };
78
+ export {
79
+ p as Dark,
80
+ s as Default,
81
+ n as Disabled,
82
+ d as Large,
83
+ b as Small,
84
+ i as WithError,
85
+ c as WithValue,
86
+ o as default
87
+ };
@@ -0,0 +1,85 @@
1
+ import { l as e } from "../../../../index-BJwl9stn.js";
2
+ import { SummarySelect as a } from "../../../../components/SummarySelect/ui/SummarySelect.js";
3
+ const l = [
4
+ { value: "1", label: "Summary Option 1", count: 5 },
5
+ { value: "2", label: "Summary Option 2", count: 12 },
6
+ { value: "3", label: "Summary Option 3", count: 3 },
7
+ { value: "4", label: "Summary Option 4", count: 8 }
8
+ ], m = {
9
+ title: "shared/ui/SummarySelect",
10
+ component: a,
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: l,
31
+ onChange: e()
32
+ }
33
+ }, o = {
34
+ args: {
35
+ placeholder: "Select summary",
36
+ label: "Summary Select"
37
+ }
38
+ }, s = {
39
+ args: {
40
+ placeholder: "Select summary",
41
+ label: "Summary Select",
42
+ value: "2"
43
+ }
44
+ }, c = {
45
+ args: {
46
+ placeholder: "Select summary",
47
+ label: "Summary Select",
48
+ error: !0,
49
+ errorText: "Please select a summary option"
50
+ }
51
+ }, u = {
52
+ args: {
53
+ placeholder: "Select summary",
54
+ label: "Summary Select",
55
+ disabled: !0
56
+ }
57
+ }, n = {
58
+ args: {
59
+ placeholder: "Select summary",
60
+ label: "Summary Select",
61
+ variant: "dark"
62
+ }
63
+ }, S = {
64
+ args: {
65
+ placeholder: "Select summary",
66
+ label: "Summary Select",
67
+ size: "small"
68
+ }
69
+ }, y = {
70
+ args: {
71
+ placeholder: "Select summary",
72
+ label: "Summary Select",
73
+ size: "large"
74
+ }
75
+ };
76
+ export {
77
+ n as Dark,
78
+ o as Default,
79
+ u as Disabled,
80
+ y as Large,
81
+ S as Small,
82
+ c as WithError,
83
+ s as WithValue,
84
+ m as default
85
+ };
@@ -0,0 +1,77 @@
1
+ import { l as e } from "../../../../index-BJwl9stn.js";
2
+ import { Switcher as a } from "../../../../components/Switcher/ui/Switcher.js";
3
+ const l = {
4
+ title: "shared/ui/Switcher",
5
+ component: a,
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
+ onChange: e()
26
+ }
27
+ }, r = {
28
+ args: {
29
+ label: "Enable notifications"
30
+ }
31
+ }, c = {
32
+ args: {
33
+ label: "Enable notifications",
34
+ checked: !0
35
+ }
36
+ }, i = {
37
+ args: {
38
+ checked: !1
39
+ }
40
+ }, o = {
41
+ args: {
42
+ label: "Disabled switcher",
43
+ disabled: !0
44
+ }
45
+ }, n = {
46
+ args: {
47
+ label: "Disabled checked switcher",
48
+ checked: !0,
49
+ disabled: !0
50
+ }
51
+ }, d = {
52
+ args: {
53
+ label: "Dark theme switcher",
54
+ variant: "dark"
55
+ }
56
+ }, h = {
57
+ args: {
58
+ label: "Small switcher",
59
+ size: "small"
60
+ }
61
+ }, b = {
62
+ args: {
63
+ label: "Large switcher",
64
+ size: "large"
65
+ }
66
+ };
67
+ export {
68
+ c as Checked,
69
+ d as Dark,
70
+ r as Default,
71
+ o as Disabled,
72
+ n as DisabledChecked,
73
+ b as Large,
74
+ h as Small,
75
+ i as WithoutLabel,
76
+ l as default
77
+ };
@@ -0,0 +1,76 @@
1
+ import { l as a } from "../../../../index-BJwl9stn.js";
2
+ import { TabSelect as e } from "../../../../components/TabSelect/ui/TabSelect.js";
3
+ const t = [
4
+ { value: "tab1", label: "Tab 1" },
5
+ { value: "tab2", label: "Tab 2" },
6
+ { value: "tab3", label: "Tab 3" },
7
+ { value: "tab4", label: "Tab 4" }
8
+ ], r = {
9
+ title: "shared/ui/TabSelect",
10
+ component: e,
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: a()
32
+ }
33
+ }, o = {
34
+ args: {
35
+ value: "tab1"
36
+ }
37
+ }, b = {
38
+ args: {
39
+ value: "tab2"
40
+ }
41
+ }, n = {
42
+ args: {
43
+ value: "tab1",
44
+ variant: "dark"
45
+ }
46
+ }, c = {
47
+ args: {
48
+ value: "tab1",
49
+ size: "small"
50
+ }
51
+ }, u = {
52
+ args: {
53
+ value: "tab1",
54
+ size: "large"
55
+ }
56
+ }, i = {
57
+ args: {
58
+ value: "tab1",
59
+ disabled: !0
60
+ }
61
+ }, g = {
62
+ args: {
63
+ value: "tab1",
64
+ error: !0
65
+ }
66
+ };
67
+ export {
68
+ n as Dark,
69
+ o as Default,
70
+ i as Disabled,
71
+ u as Large,
72
+ b as SecondTab,
73
+ c as Small,
74
+ g as WithError,
75
+ r as default
76
+ };
@@ -0,0 +1,76 @@
1
+ import { l as a } from "../../../../index-BJwl9stn.js";
2
+ import { TabSwitcher as e } from "../../../../components/TabSwitcher/ui/TabSwitcher.js";
3
+ const t = [
4
+ { value: "tab1", label: "Overview" },
5
+ { value: "tab2", label: "Details" },
6
+ { value: "tab3", label: "Reviews" },
7
+ { value: "tab4", label: "Settings" }
8
+ ], l = {
9
+ title: "shared/ui/TabSwitcher",
10
+ component: e,
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: a()
32
+ }
33
+ }, o = {
34
+ args: {
35
+ value: "tab1"
36
+ }
37
+ }, n = {
38
+ args: {
39
+ value: "tab2"
40
+ }
41
+ }, i = {
42
+ args: {
43
+ value: "tab1",
44
+ variant: "dark"
45
+ }
46
+ }, b = {
47
+ args: {
48
+ value: "tab1",
49
+ size: "small"
50
+ }
51
+ }, c = {
52
+ args: {
53
+ value: "tab1",
54
+ size: "large"
55
+ }
56
+ }, u = {
57
+ args: {
58
+ value: "tab1",
59
+ disabled: !0
60
+ }
61
+ }, g = {
62
+ args: {
63
+ value: "tab1",
64
+ error: !0
65
+ }
66
+ };
67
+ export {
68
+ i as Dark,
69
+ o as Default,
70
+ u as Disabled,
71
+ c as Large,
72
+ n as SecondTab,
73
+ b as Small,
74
+ g as WithError,
75
+ l as default
76
+ };
@@ -0,0 +1,51 @@
1
+ import { TAG_VARIANTS as t } from "../../../../components/Tag/ui/Tag.types.js";
2
+ import { Tag as e } from "../../../../components/Tag/ui/Tag.js";
3
+ const o = {
4
+ title: "shared/ui/Tag",
5
+ component: e,
6
+ parameters: {
7
+ layout: "centered"
8
+ },
9
+ tags: ["autodocs"],
10
+ argTypes: {
11
+ variant: {
12
+ control: {
13
+ type: "select",
14
+ options: Object.keys(t)
15
+ }
16
+ },
17
+ size: {
18
+ control: {
19
+ type: "select",
20
+ options: ["medium", "tiny", "large", "small", "preLarge", "mini", "mini-12px", "tiny-7px", "tiny-10px", "tiny-12px", "small-10px", "small-13px", "small-font-14", "extra-small"]
21
+ }
22
+ },
23
+ fontWeight: {
24
+ control: {
25
+ type: "select",
26
+ options: ["medium", "tiny", "large"]
27
+ }
28
+ }
29
+ },
30
+ args: {
31
+ children: "Tag"
32
+ }
33
+ }, i = {
34
+ args: {
35
+ variant: "red"
36
+ }
37
+ }, n = {
38
+ args: {
39
+ variant: "gray"
40
+ }
41
+ }, s = {
42
+ args: {
43
+ variant: "white"
44
+ }
45
+ };
46
+ export {
47
+ n as Gray,
48
+ i as Red,
49
+ s as White,
50
+ o as default
51
+ };
@@ -0,0 +1,22 @@
1
+ import { Text as t } from "../../../../components/Text/ui/Text.js";
2
+ const o = {
3
+ title: "shared/ui/Text",
4
+ component: t,
5
+ parameters: {
6
+ layout: "centered"
7
+ },
8
+ tags: ["autodocs"]
9
+ }, a = {
10
+ args: {
11
+ children: "Some text"
12
+ }
13
+ }, r = {
14
+ args: {
15
+ html: "<b>Some bold text</b>"
16
+ }
17
+ };
18
+ export {
19
+ a as Default,
20
+ r as WithHtml,
21
+ o as default
22
+ };
@@ -0,0 +1,37 @@
1
+ import { TextArea as e } from "../../../../components/TextArea/TextArea.js";
2
+ const r = {
3
+ title: "shared/ui/TextArea",
4
+ component: e,
5
+ parameters: {
6
+ layout: "centered"
7
+ },
8
+ tags: ["autodocs"],
9
+ argTypes: {
10
+ width: {
11
+ control: {
12
+ type: "select",
13
+ options: ["auto", "full"]
14
+ }
15
+ }
16
+ }
17
+ }, o = {
18
+ args: {
19
+ placeholder: "Placeholder"
20
+ }
21
+ }, l = {
22
+ args: {
23
+ placeholder: "Placeholder",
24
+ error: !0
25
+ }
26
+ }, a = {
27
+ args: {
28
+ placeholder: "Placeholder",
29
+ width: "full"
30
+ }
31
+ };
32
+ export {
33
+ o as Default,
34
+ a as FullWidth,
35
+ l as WithError,
36
+ r as default
37
+ };
@@ -0,0 +1,91 @@
1
+ import { l as o } from "../../../../index-BJwl9stn.js";
2
+ import { ZoomControls as m } from "../../../../components/ZoomControls/ui/ZoomControls.js";
3
+ const a = {
4
+ title: "shared/ui/ZoomControls",
5
+ component: m,
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
+ onZoomIn: o(),
26
+ onZoomOut: o(),
27
+ onReset: o()
28
+ }
29
+ }, n = {
30
+ args: {
31
+ currentZoom: 100,
32
+ minZoom: 25,
33
+ maxZoom: 400
34
+ }
35
+ }, e = {
36
+ args: {
37
+ currentZoom: 150,
38
+ minZoom: 25,
39
+ maxZoom: 400
40
+ }
41
+ }, s = {
42
+ args: {
43
+ currentZoom: 50,
44
+ minZoom: 25,
45
+ maxZoom: 400
46
+ }
47
+ }, Z = {
48
+ args: {
49
+ currentZoom: 25,
50
+ minZoom: 25,
51
+ maxZoom: 400
52
+ }
53
+ }, c = {
54
+ args: {
55
+ currentZoom: 400,
56
+ minZoom: 25,
57
+ maxZoom: 400
58
+ }
59
+ }, i = {
60
+ args: {
61
+ currentZoom: 100,
62
+ minZoom: 25,
63
+ maxZoom: 400,
64
+ variant: "dark"
65
+ }
66
+ }, l = {
67
+ args: {
68
+ currentZoom: 100,
69
+ minZoom: 25,
70
+ maxZoom: 400,
71
+ size: "small"
72
+ }
73
+ }, u = {
74
+ args: {
75
+ currentZoom: 100,
76
+ minZoom: 25,
77
+ maxZoom: 400,
78
+ size: "large"
79
+ }
80
+ };
81
+ export {
82
+ c as AtMaxZoom,
83
+ Z as AtMinZoom,
84
+ i as Dark,
85
+ n as Default,
86
+ u as Large,
87
+ l as Small,
88
+ e as ZoomedIn,
89
+ s as ZoomedOut,
90
+ a as default
91
+ };
@@ -0,0 +1,62 @@
1
+ import { default as o } from "./Button/Button.stories.js";
2
+ import { default as r } from "./Input/Input.stories.js";
3
+ import { default as l } from "./CheckBox/CheckBox.stories.js";
4
+ import { default as d } from "./CheckBox/CheckBoxNew.stories.js";
5
+ import { default as m } from "./Text/Text.stories.js";
6
+ import { default as s } from "./Tag/Tag.stories.js";
7
+ import { default as n } from "./Logo/Logo.stories.js";
8
+ import { default as i } from "./NewIcon/NewIcon.stories.js";
9
+ import { default as b } from "./TextArea/TextArea.stories.js";
10
+ import { default as M } from "./CheckboxSelect/CheckboxSelect.stories.js";
11
+ import { default as g } from "./DestinationTab/DestinationTab.stories.js";
12
+ import { default as C } from "./FieldInput/FieldInput.stories.js";
13
+ import { default as I } from "./FilterWithSave/FilterWithSave.stories.js";
14
+ import { default as N } from "./Flex/Flex.stories.js";
15
+ import { default as L } from "./FormModal/FormModal.stories.js";
16
+ import { default as A } from "./GroupedInput/GroupedInput.stories.js";
17
+ import { default as G } from "./MetroLabel/MetroLabel.stories.js";
18
+ import { default as W } from "./MetroTag/MetroTag.stories.js";
19
+ import { default as j } from "./MobileButton/MobileButton.stories.js";
20
+ import { default as z } from "./Modal/Modal.stories.js";
21
+ import { default as H } from "./ModalSuccess/ModalSuccess.stories.js";
22
+ import { default as K } from "./RoundButton/RoundButton.stories.js";
23
+ import { default as P } from "./Select/Select.stories.js";
24
+ import { default as U } from "./SliderNavigation/SliderNavigation.stories.js";
25
+ import { default as X } from "./SortSelect/SortSelect.stories.js";
26
+ import { default as _ } from "./SummarySelect/SummarySelect.stories.js";
27
+ import { default as ee } from "./Switcher/Switcher.stories.js";
28
+ import { default as oe } from "./TabSelect/TabSelect.stories.js";
29
+ import { default as re } from "./TabSwitcher/TabSwitcher.stories.js";
30
+ import { default as le } from "./ZoomControls/ZoomControls.stories.js";
31
+ export {
32
+ o as Button,
33
+ l as CheckBox,
34
+ d as CheckBoxNew,
35
+ M as CheckboxSelect,
36
+ g as DestinationTab,
37
+ C as FieldInput,
38
+ I as FilterWithSave,
39
+ N as Flex,
40
+ L as FormModal,
41
+ A as GroupedInput,
42
+ r as Input,
43
+ n as Logo,
44
+ G as MetroLabel,
45
+ W as MetroTag,
46
+ j as MobileButton,
47
+ z as Modal,
48
+ H as ModalSuccess,
49
+ i as NewIcon,
50
+ K as RoundButton,
51
+ P as Select,
52
+ U as SliderNavigation,
53
+ X as SortSelect,
54
+ _ as SummarySelect,
55
+ ee as Switcher,
56
+ oe as TabSelect,
57
+ re as TabSwitcher,
58
+ s as Tag,
59
+ m as Text,
60
+ b as TextArea,
61
+ le as ZoomControls
62
+ };