@vkontakte/vkui 4.37.0 → 4.37.2

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 (308) hide show
  1. package/.cache/.eslintcache +1 -1
  2. package/.cache/.stylelintcache +1 -1
  3. package/.cache/.tsbuildinfo +6 -6
  4. package/dist/cjs/appearance/constants.d.ts +1 -0
  5. package/dist/cjs/components/ActionSheet/ActionSheet.d.ts +29 -0
  6. package/dist/cjs/components/ActionSheet/ActionSheetContext.d.ts +8 -0
  7. package/dist/cjs/components/ActionSheet/ActionSheetDefaultIosCloseItem.d.ts +3 -0
  8. package/dist/cjs/components/ActionSheet/ActionSheetDropdown.d.ts +4 -0
  9. package/dist/cjs/components/ActionSheet/ActionSheetDropdownDesktop.d.ts +4 -0
  10. package/dist/cjs/components/ActionSheet/types.d.ts +9 -0
  11. package/dist/cjs/components/ActionSheetItem/ActionSheetItem.d.ts +27 -0
  12. package/dist/cjs/components/AdaptivityProvider/AdaptivityContext.d.ts +46 -0
  13. package/dist/cjs/components/AdaptivityProvider/AdaptivityProvider.d.ts +15 -0
  14. package/dist/cjs/components/Alert/Alert.d.ts +25 -0
  15. package/dist/cjs/components/AppRoot/AppRoot.d.ts +23 -0
  16. package/dist/cjs/components/AppRoot/AppRootContext.d.ts +10 -0
  17. package/dist/cjs/components/AppRoot/AppRootPortal.d.ts +7 -0
  18. package/dist/cjs/components/AppRoot/ScrollContext.d.ts +27 -0
  19. package/dist/cjs/components/AppRoot/ScrollContext.js +9 -1
  20. package/dist/cjs/components/AppRoot/ScrollContext.js.map +1 -1
  21. package/dist/cjs/components/AppearanceProvider/AppearanceProvider.d.ts +11 -0
  22. package/dist/cjs/components/AppearanceProvider/AppearanceProviderContext.d.ts +3 -0
  23. package/dist/cjs/components/Avatar/Avatar.d.ts +24 -0
  24. package/dist/cjs/components/Badge/Badge.d.ts +9 -0
  25. package/dist/cjs/components/Banner/Banner.d.ts +67 -0
  26. package/dist/cjs/components/BaseGallery/BaseGallery.d.ts +4 -0
  27. package/dist/cjs/components/BaseGallery/helpers.d.ts +12 -0
  28. package/dist/cjs/components/BaseGallery/types.d.ts +43 -0
  29. package/dist/cjs/components/Button/Button.d.ts +22 -0
  30. package/dist/cjs/components/ButtonGroup/ButtonGroup.d.ts +27 -0
  31. package/dist/cjs/components/Calendar/Calendar.d.ts +34 -0
  32. package/dist/cjs/components/CalendarDay/CalendarDay.d.ts +24 -0
  33. package/dist/cjs/components/CalendarDays/CalendarDays.d.ts +24 -0
  34. package/dist/cjs/components/CalendarHeader/CalendarHeader.d.ts +29 -0
  35. package/dist/cjs/components/CalendarRange/CalendarRange.d.ts +19 -0
  36. package/dist/cjs/components/CalendarTime/CalendarTime.d.ts +11 -0
  37. package/dist/cjs/components/Card/Card.d.ts +10 -0
  38. package/dist/cjs/components/CardGrid/CardGrid.d.ts +14 -0
  39. package/dist/cjs/components/CardScroll/CardScroll.d.ts +15 -0
  40. package/dist/cjs/components/Cell/Cell.d.ts +50 -0
  41. package/dist/cjs/components/Cell/CellCheckbox/CellCheckbox.d.ts +5 -0
  42. package/dist/cjs/components/Cell/CellDragger/CellDragger.d.ts +6 -0
  43. package/dist/cjs/components/Cell/useDraggable.d.ts +15 -0
  44. package/dist/cjs/components/CellButton/CellButton.d.ts +11 -0
  45. package/dist/cjs/components/Checkbox/Checkbox.d.ts +15 -0
  46. package/dist/cjs/components/Chip/Chip.d.ts +26 -0
  47. package/dist/cjs/components/ChipsInput/ChipsInput.d.ts +11 -0
  48. package/dist/cjs/components/ChipsInputBase/ChipsInputBase.d.ts +17 -0
  49. package/dist/cjs/components/ChipsSelect/ChipsSelect.d.ts +45 -0
  50. package/dist/cjs/components/ConfigProvider/ConfigProvider.d.ts +19 -0
  51. package/dist/cjs/components/ConfigProvider/ConfigProviderContext.d.ts +37 -0
  52. package/dist/cjs/components/ContentCard/ContentCard.d.ts +36 -0
  53. package/dist/cjs/components/Counter/Counter.d.ts +13 -0
  54. package/dist/cjs/components/CustomScrollView/CustomScrollView.d.ts +11 -0
  55. package/dist/cjs/components/CustomScrollView/useTrackerVisibility.d.ts +43 -0
  56. package/dist/cjs/components/CustomSelect/CustomSelect.d.ts +62 -0
  57. package/dist/cjs/components/CustomSelectDropdown/CustomSelectDropdown.d.ts +17 -0
  58. package/dist/cjs/components/CustomSelectOption/CustomSelectOption.d.ts +47 -0
  59. package/dist/cjs/components/DateInput/DateInput.d.ts +17 -0
  60. package/dist/cjs/components/DatePicker/DatePicker.d.ts +23 -0
  61. package/dist/cjs/components/DateRangeInput/DateRangeInput.d.ts +23 -0
  62. package/dist/cjs/components/Div/Div.d.ts +9 -0
  63. package/dist/cjs/components/Dropdown/Dropdown.d.ts +52 -0
  64. package/dist/cjs/components/DropdownIcon/DropdownIcon.d.ts +5 -0
  65. package/dist/cjs/components/Epic/Epic.d.ts +11 -0
  66. package/dist/cjs/components/Epic/ScrollSaver.d.ts +10 -0
  67. package/dist/cjs/components/File/File.d.ts +13 -0
  68. package/dist/cjs/components/FixedLayout/FixedLayout.d.ts +21 -0
  69. package/dist/cjs/components/FixedLayout/FixedLayout.js +1 -1
  70. package/dist/cjs/components/FixedLayout/FixedLayout.js.map +1 -1
  71. package/dist/cjs/components/FocusTrap/FocusTrap.d.ts +11 -0
  72. package/dist/cjs/components/FocusVisible/FocusVisible.d.ts +10 -0
  73. package/dist/cjs/components/Footer/Footer.d.ts +8 -0
  74. package/dist/cjs/components/FormField/FormField.d.ts +37 -0
  75. package/dist/cjs/components/FormItem/FormItem.d.ts +17 -0
  76. package/dist/cjs/components/FormLayout/FormLayout.d.ts +8 -0
  77. package/dist/cjs/components/FormLayoutGroup/FormLayoutGroup.d.ts +19 -0
  78. package/dist/cjs/components/FormStatus/FormStatus.d.ts +11 -0
  79. package/dist/cjs/components/Gallery/Gallery.d.ts +10 -0
  80. package/dist/cjs/components/Gradient/Gradient.d.ts +16 -0
  81. package/dist/cjs/components/GridAvatar/GridAvatar.d.ts +15 -0
  82. package/dist/cjs/components/Group/Group.d.ts +30 -0
  83. package/dist/cjs/components/Header/Header.d.ts +20 -0
  84. package/dist/cjs/components/HorizontalCell/HorizontalCell.d.ts +13 -0
  85. package/dist/cjs/components/HorizontalScroll/HorizontalScroll.d.ts +22 -0
  86. package/dist/cjs/components/HorizontalScroll/HorizontalScrollArrow.d.ts +8 -0
  87. package/dist/cjs/components/HoverPopper/HoverPopper.d.ts +29 -0
  88. package/dist/cjs/components/IconButton/IconButton.d.ts +14 -0
  89. package/dist/cjs/components/InfoRow/InfoRow.d.ts +9 -0
  90. package/dist/cjs/components/InitialsAvatar/InitialsAvatar.d.ts +35 -0
  91. package/dist/cjs/components/Input/Input.d.ts +11 -0
  92. package/dist/cjs/components/InputLike/InputLike.d.ts +13 -0
  93. package/dist/cjs/components/InputLike/InputLikeDivider.d.ts +3 -0
  94. package/dist/cjs/components/Link/Link.d.ts +13 -0
  95. package/dist/cjs/components/List/List.d.ts +7 -0
  96. package/dist/cjs/components/List/ListContext.d.ts +4 -0
  97. package/dist/cjs/components/LocaleProviderContext/LocaleProviderContext.d.ts +2 -0
  98. package/dist/cjs/components/MiniInfoCell/MiniInfoCell.d.ts +42 -0
  99. package/dist/cjs/components/ModalCard/ModalCard.d.ts +12 -0
  100. package/dist/cjs/components/ModalCardBase/ModalCardBase.d.ts +39 -0
  101. package/dist/cjs/components/ModalDismissButton/ModalDismissButton.d.ts +7 -0
  102. package/dist/cjs/components/ModalPage/ModalPage.d.ts +51 -0
  103. package/dist/cjs/components/ModalPageHeader/ModalPageHeader.d.ts +10 -0
  104. package/dist/cjs/components/ModalRoot/ModalRoot.d.ts +29 -0
  105. package/dist/cjs/components/ModalRoot/ModalRoot.js +1 -1
  106. package/dist/cjs/components/ModalRoot/ModalRoot.js.map +1 -1
  107. package/dist/cjs/components/ModalRoot/ModalRootAdaptive.d.ts +26 -0
  108. package/dist/cjs/components/ModalRoot/ModalRootContext.d.ts +20 -0
  109. package/dist/cjs/components/ModalRoot/ModalRootDesktop.d.ts +29 -0
  110. package/dist/cjs/components/ModalRoot/constants.d.ts +3 -0
  111. package/dist/cjs/components/ModalRoot/types.d.ts +60 -0
  112. package/dist/cjs/components/ModalRoot/useModalManager.d.ts +39 -0
  113. package/dist/cjs/components/ModalRoot/withModalRootContext.d.ts +5 -0
  114. package/dist/cjs/components/NativeSelect/NativeSelect.d.ts +20 -0
  115. package/dist/cjs/components/NavTransitionContext/NavTransitionContext.d.ts +6 -0
  116. package/dist/cjs/components/Pagination/Pagination.d.ts +45 -0
  117. package/dist/cjs/components/Panel/Panel.d.ts +12 -0
  118. package/dist/cjs/components/PanelHeader/PanelHeader.d.ts +31 -0
  119. package/dist/cjs/components/PanelHeaderBack/PanelHeaderBack.d.ts +12 -0
  120. package/dist/cjs/components/PanelHeaderButton/PanelHeaderButton.d.ts +11 -0
  121. package/dist/cjs/components/PanelHeaderClose/PanelHeaderClose.d.ts +6 -0
  122. package/dist/cjs/components/PanelHeaderContent/PanelHeaderContent.d.ts +11 -0
  123. package/dist/cjs/components/PanelHeaderContext/PanelHeaderContext.d.ts +10 -0
  124. package/dist/cjs/components/PanelHeaderEdit/PanelHeaderEdit.d.ts +20 -0
  125. package/dist/cjs/components/PanelHeaderSubmit/PanelHeaderSubmit.d.ts +6 -0
  126. package/dist/cjs/components/PanelSpinner/PanelSpinner.d.ts +9 -0
  127. package/dist/cjs/components/Placeholder/Placeholder.d.ts +25 -0
  128. package/dist/cjs/components/PopoutRoot/PopoutRoot.d.ts +13 -0
  129. package/dist/cjs/components/PopoutWrapper/PopoutWrapper.d.ts +13 -0
  130. package/dist/cjs/components/Popper/Popper.d.ts +57 -0
  131. package/dist/cjs/components/PopperArrow/PopperArrow.d.ts +8 -0
  132. package/dist/cjs/components/Progress/Progress.d.ts +10 -0
  133. package/dist/cjs/components/PromoBanner/PromoBanner.d.ts +43 -0
  134. package/dist/cjs/components/PullToRefresh/PullToRefresh.d.ts +22 -0
  135. package/dist/cjs/components/PullToRefresh/PullToRefreshSpinner.d.ts +10 -0
  136. package/dist/cjs/components/Radio/Radio.d.ts +11 -0
  137. package/dist/cjs/components/RadioGroup/RadioGroup.d.ts +9 -0
  138. package/dist/cjs/components/RangeSlider/RangeSlider.d.ts +8 -0
  139. package/dist/cjs/components/RangeSlider/UniversalSlider.d.ts +16 -0
  140. package/dist/cjs/components/Removable/Removable.d.ts +24 -0
  141. package/dist/cjs/components/RichCell/RichCell.d.ts +56 -0
  142. package/dist/cjs/components/RichTooltip/RichTooltip.d.ts +13 -0
  143. package/dist/cjs/components/Root/Root.d.ts +33 -0
  144. package/dist/cjs/components/ScreenSpinner/Icon48CancelCircle.d.ts +3 -0
  145. package/dist/cjs/components/ScreenSpinner/Icon48DoneOutline.d.ts +3 -0
  146. package/dist/cjs/components/ScreenSpinner/ScreenSpinner.d.ts +10 -0
  147. package/dist/cjs/components/Search/Search.d.ts +16 -0
  148. package/dist/cjs/components/SegmentedControl/SegmentedControl.d.ts +20 -0
  149. package/dist/cjs/components/SegmentedControl/SegmentedControlOption/SegmentedControlOption.d.ts +7 -0
  150. package/dist/cjs/components/Select/Select.d.ts +18 -0
  151. package/dist/cjs/components/SelectMimicry/SelectMimicry.d.ts +15 -0
  152. package/dist/cjs/components/Separator/Separator.d.ts +16 -0
  153. package/dist/cjs/components/SimpleCell/SimpleCell.d.ts +74 -0
  154. package/dist/cjs/components/SimpleCheckbox/SimpleCheckbox.d.ts +12 -0
  155. package/dist/cjs/components/Slider/Slider.d.ts +7 -0
  156. package/dist/cjs/components/SliderSwitch/SliderSwitch.d.ts +48 -0
  157. package/dist/cjs/components/SliderSwitch/SliderSwitchButton.d.ts +11 -0
  158. package/dist/cjs/components/Snackbar/Snackbar.d.ts +42 -0
  159. package/dist/cjs/components/Spacing/Spacing.d.ts +23 -0
  160. package/dist/cjs/components/Spinner/Spinner.d.ts +9 -0
  161. package/dist/cjs/components/SplitCol/SplitCol.d.ts +26 -0
  162. package/dist/cjs/components/SplitLayout/SplitLayout.d.ts +18 -0
  163. package/dist/cjs/components/SubnavigationBar/SubnavigationBar.d.ts +10 -0
  164. package/dist/cjs/components/SubnavigationButton/SubnavigationButton.d.ts +25 -0
  165. package/dist/cjs/components/Switch/Switch.d.ts +10 -0
  166. package/dist/cjs/components/Tabbar/Tabbar.d.ts +20 -0
  167. package/dist/cjs/components/TabbarItem/TabbarItem.d.ts +23 -0
  168. package/dist/cjs/components/Tabs/Tabs.d.ts +23 -0
  169. package/dist/cjs/components/TabsItem/TabsItem.d.ts +31 -0
  170. package/dist/cjs/components/Tappable/Tappable.d.ts +46 -0
  171. package/dist/cjs/components/TextTooltip/TextTooltip.d.ts +21 -0
  172. package/dist/cjs/components/Textarea/Textarea.d.ts +14 -0
  173. package/dist/cjs/components/Tooltip/Tooltip.d.ts +75 -0
  174. package/dist/cjs/components/Tooltip/TooltipContainer.d.ts +5 -0
  175. package/dist/cjs/components/Touch/Touch.d.ts +52 -0
  176. package/dist/cjs/components/Touch/TouchContext.d.ts +7 -0
  177. package/dist/cjs/components/Typography/Caption/Caption.d.ts +17 -0
  178. package/dist/cjs/components/Typography/Footnote/Footnote.d.ts +14 -0
  179. package/dist/cjs/components/Typography/Headline/Headline.d.ts +16 -0
  180. package/dist/cjs/components/Typography/Paragraph/Paragraph.d.ts +13 -0
  181. package/dist/cjs/components/Typography/Subhead/Subhead.d.ts +15 -0
  182. package/dist/cjs/components/Typography/Text/Text.d.ts +15 -0
  183. package/dist/cjs/components/Typography/Title/Title.d.ts +16 -0
  184. package/dist/cjs/components/UsersStack/UsersStack.d.ts +31 -0
  185. package/dist/cjs/components/View/View.d.ts +67 -0
  186. package/dist/cjs/components/View/View.js +2 -0
  187. package/dist/cjs/components/View/View.js.map +1 -1
  188. package/dist/cjs/components/View/ViewInfinite.d.ts +66 -0
  189. package/dist/cjs/components/View/utils.d.ts +2 -0
  190. package/dist/cjs/components/VisuallyHiddenInput/VisuallyHiddenInput.d.ts +12 -0
  191. package/dist/cjs/components/WriteBar/WriteBar.d.ts +30 -0
  192. package/dist/cjs/components/WriteBar/WriteBar.js +2 -5
  193. package/dist/cjs/components/WriteBar/WriteBar.js.map +1 -1
  194. package/dist/cjs/components/WriteBarIcon/WriteBarIcon.d.ts +21 -0
  195. package/dist/cjs/components/WriteBarIcon/WriteBarIcon.js +15 -3
  196. package/dist/cjs/components/WriteBarIcon/WriteBarIcon.js.map +1 -1
  197. package/dist/cjs/helpers/avatar.d.ts +5 -0
  198. package/dist/cjs/helpers/getClassName.d.ts +2 -0
  199. package/dist/cjs/helpers/getScheme.d.ts +8 -0
  200. package/dist/cjs/helpers/math.d.ts +5 -0
  201. package/dist/cjs/helpers/scheme.d.ts +34 -0
  202. package/dist/cjs/hoc/withAdaptivity.d.ts +13 -0
  203. package/dist/cjs/hoc/withContext.d.ts +2 -0
  204. package/dist/cjs/hoc/withInsets.d.ts +3 -0
  205. package/dist/cjs/hoc/withPlatform.d.ts +3 -0
  206. package/dist/cjs/hooks/useAdaptivity.d.ts +4 -0
  207. package/dist/cjs/hooks/useAppearance.d.ts +1 -0
  208. package/dist/cjs/hooks/useBooleanState.d.ts +6 -0
  209. package/dist/cjs/hooks/useBridgeAdaptivity.d.ts +6 -0
  210. package/dist/cjs/hooks/useBrowserInfo.d.ts +2 -0
  211. package/dist/cjs/hooks/useCalendar.d.ts +19 -0
  212. package/dist/cjs/hooks/useChipsInput.d.ts +15 -0
  213. package/dist/cjs/hooks/useChipsSelect.d.ts +22 -0
  214. package/dist/cjs/hooks/useDateInput.d.ts +30 -0
  215. package/dist/cjs/hooks/useEffectDev.d.ts +2 -0
  216. package/dist/cjs/hooks/useEnsuredControl.d.ts +7 -0
  217. package/dist/cjs/hooks/useEventListener.d.ts +7 -0
  218. package/dist/cjs/hooks/useExternRef.d.ts +2 -0
  219. package/dist/cjs/hooks/useFocusVisible.d.ts +6 -0
  220. package/dist/cjs/hooks/useGlobalEventListener.d.ts +2 -0
  221. package/dist/cjs/hooks/useInsets.d.ts +8 -0
  222. package/dist/cjs/hooks/useKeyboard.d.ts +10 -0
  223. package/dist/cjs/hooks/useKeyboardInputTracker.d.ts +3 -0
  224. package/dist/cjs/hooks/useObjectMemo.d.ts +2 -0
  225. package/dist/cjs/hooks/useOrientationChange.d.ts +7 -0
  226. package/dist/cjs/hooks/usePagination.d.ts +34 -0
  227. package/dist/cjs/hooks/usePatchChildrenRef.d.ts +6 -0
  228. package/dist/cjs/hooks/usePlatform.d.ts +2 -0
  229. package/dist/cjs/hooks/usePrevious.d.ts +1 -0
  230. package/dist/cjs/hooks/useTimeout.d.ts +4 -0
  231. package/dist/cjs/hooks/useWaitTransitionFinish.d.ts +3 -0
  232. package/dist/cjs/index.d.ts +310 -0
  233. package/dist/cjs/lib/SSR.d.ts +18 -0
  234. package/dist/cjs/lib/accessibility.d.ts +10 -0
  235. package/dist/cjs/lib/animate.d.ts +15 -0
  236. package/dist/cjs/lib/browser.d.ts +11 -0
  237. package/dist/cjs/lib/calendar.d.ts +14 -0
  238. package/dist/cjs/lib/callMultiple.d.ts +1 -0
  239. package/dist/cjs/lib/classNames.d.ts +6 -0
  240. package/dist/cjs/lib/classScopingMode.d.ts +8 -0
  241. package/dist/cjs/lib/date.d.ts +29 -0
  242. package/dist/cjs/lib/dom.d.ts +21 -0
  243. package/dist/cjs/lib/fx.d.ts +5 -0
  244. package/dist/cjs/lib/getNavId.d.ts +7 -0
  245. package/dist/cjs/lib/is.d.ts +1 -0
  246. package/dist/cjs/lib/isRefObject.d.ts +2 -0
  247. package/dist/cjs/lib/jsxRuntime.d.ts +8 -0
  248. package/dist/cjs/lib/offset.d.ts +7 -0
  249. package/dist/cjs/lib/platform.d.ts +19 -0
  250. package/dist/cjs/lib/polyfills.d.ts +6 -0
  251. package/dist/cjs/lib/prefixClass.d.ts +1 -0
  252. package/dist/cjs/lib/removeObjectKeys.d.ts +1 -0
  253. package/dist/cjs/lib/select.d.ts +9 -0
  254. package/dist/cjs/lib/styles.d.ts +1 -0
  255. package/dist/cjs/lib/supportEvents.d.ts +9 -0
  256. package/dist/cjs/lib/taptic.d.ts +2 -0
  257. package/dist/cjs/lib/testing.d.ts +1 -0
  258. package/dist/cjs/lib/touch.d.ts +9 -0
  259. package/dist/cjs/lib/useIsomorphicLayoutEffect.d.ts +2 -0
  260. package/dist/cjs/lib/utils.d.ts +16 -0
  261. package/dist/cjs/lib/warnOnce.d.ts +2 -0
  262. package/dist/cjs/tokenized/index.d.ts +238 -0
  263. package/dist/cjs/types.d.ts +37 -0
  264. package/dist/cjs/unstable/index.d.ts +17 -0
  265. package/dist/components/AppRoot/ScrollContext.js +9 -1
  266. package/dist/components/AppRoot/ScrollContext.js.map +1 -1
  267. package/dist/components/FixedLayout/FixedLayout.js +1 -1
  268. package/dist/components/FixedLayout/FixedLayout.js.map +1 -1
  269. package/dist/components/ModalRoot/ModalRoot.js +1 -1
  270. package/dist/components/ModalRoot/ModalRoot.js.map +1 -1
  271. package/dist/components/View/View.js +2 -0
  272. package/dist/components/View/View.js.map +1 -1
  273. package/dist/components/WriteBar/WriteBar.js +2 -5
  274. package/dist/components/WriteBar/WriteBar.js.map +1 -1
  275. package/dist/components/WriteBarIcon/WriteBarIcon.js +15 -3
  276. package/dist/components/WriteBarIcon/WriteBarIcon.js.map +1 -1
  277. package/dist/components.css +1 -1
  278. package/dist/components.css.map +1 -1
  279. package/dist/cssm/components/AppRoot/ScrollContext.js +9 -1
  280. package/dist/cssm/components/AppRoot/ScrollContext.js.map +1 -1
  281. package/dist/cssm/components/FixedLayout/FixedLayout.js +1 -1
  282. package/dist/cssm/components/FixedLayout/FixedLayout.js.map +1 -1
  283. package/dist/cssm/components/ModalRoot/ModalRoot.js +1 -1
  284. package/dist/cssm/components/ModalRoot/ModalRoot.js.map +1 -1
  285. package/dist/cssm/components/PanelHeader/PanelHeader.css +1 -1
  286. package/dist/cssm/components/View/View.js +2 -0
  287. package/dist/cssm/components/View/View.js.map +1 -1
  288. package/dist/cssm/components/WriteBar/WriteBar.js +2 -5
  289. package/dist/cssm/components/WriteBar/WriteBar.js.map +1 -1
  290. package/dist/cssm/components/WriteBarIcon/WriteBarIcon.js +15 -3
  291. package/dist/cssm/components/WriteBarIcon/WriteBarIcon.js.map +1 -1
  292. package/dist/cssm/styles/components.css +1 -1
  293. package/dist/cssm/styles/themes.css +1 -1
  294. package/dist/cssm/styles/vkcom_dark.css +1 -1
  295. package/dist/cssm/styles/vkcom_light.css +1 -1
  296. package/dist/vkui.css +2 -2
  297. package/dist/vkui.css.map +1 -1
  298. package/package.json +3 -3
  299. package/src/components/AppRoot/ScrollContext.tsx +13 -1
  300. package/src/components/FixedLayout/FixedLayout.tsx +1 -1
  301. package/src/components/ModalRoot/ModalRoot.tsx +1 -1
  302. package/src/components/PanelHeader/PanelHeader.css +3 -1
  303. package/src/components/View/View.tsx +2 -0
  304. package/src/components/WriteBar/Readme.md +14 -14
  305. package/src/components/WriteBar/WriteBar.tsx +2 -2
  306. package/src/components/WriteBarIcon/WriteBarIcon.tsx +13 -4
  307. package/src/styles/vkcom_dark.css +16 -16
  308. package/src/styles/vkcom_light.css +29 -29
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import { TouchEvent } from "../Touch/Touch";
3
+ import { HasRootRef } from "../../types";
4
+ import { AdaptivityProps } from "../../hoc/withAdaptivity";
5
+ import "../Slider/Slider.css";
6
+ export declare type UniversalValue = [number | null, number];
7
+ export interface UniversalSliderProps<Value> extends HasRootRef<HTMLDivElement>, Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "defaultValue" | "onChange">, AdaptivityProps {
8
+ min?: number;
9
+ max?: number;
10
+ step?: number;
11
+ value?: Value;
12
+ defaultValue?: Value;
13
+ disabled?: boolean;
14
+ onChange?(value: Value, e: TouchEvent): void;
15
+ }
16
+ export declare const UniversalSlider: React.FC<Pick<UniversalSliderProps<UniversalValue>, "max" | "disabled" | "hidden" | "dir" | "slot" | "style" | "title" | "color" | "translate" | "prefix" | "children" | "className" | "id" | "lang" | "min" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "value" | "step" | "getRootRef"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ import { HasRootRef } from "../../types";
3
+ import "./Removable.css";
4
+ export interface RemovableProps {
5
+ /**
6
+ * iOS only. Текст в выезжающей кнопке для удаления ячейки.
7
+ */
8
+ removePlaceholder?: React.ReactNode;
9
+ /**
10
+ * Коллбэк срабатывает при клике на контрол удаления.
11
+ */
12
+ onRemove?: (e: React.MouseEvent, rootEl?: HTMLElement | null) => void;
13
+ }
14
+ interface RemovableOwnProps extends React.AllHTMLAttributes<HTMLElement>, RemovableProps, HasRootRef<HTMLDivElement> {
15
+ /**
16
+ * Расположение кнопки удаления.
17
+ */
18
+ align?: "start" | "center";
19
+ }
20
+ /**
21
+ * @see https://vkcom.github.io/VKUI/#/Removable
22
+ */
23
+ export declare const Removable: ({ getRootRef, children, onRemove, removePlaceholder, align, ...restProps }: RemovableOwnProps) => JSX.Element;
24
+ export {};
@@ -0,0 +1,56 @@
1
+ import * as React from "react";
2
+ import { TappableProps } from "../Tappable/Tappable";
3
+ import "./RichCell.css";
4
+ export interface RichCellProps extends TappableProps {
5
+ /**
6
+ * Контейнер для текста над `children`.
7
+ */
8
+ subhead?: React.ReactNode;
9
+ /**
10
+ * Контейнер для текста под `children`.
11
+ */
12
+ text?: React.ReactNode;
13
+ /**
14
+ * Контейнер для текста под `text`.
15
+ */
16
+ caption?: React.ReactNode;
17
+ /**
18
+ * Контейнер для контента под `caption`. Например `<UsersStack size="s" />`.
19
+ */
20
+ bottom?: React.ReactNode;
21
+ /**
22
+ * Кнопки-действия. Принимает [`Button`](https://vkcom.github.io/VKUI/#/Button) с параметрами:
23
+ *
24
+ * - `mode="primary" size="s"`
25
+ * - `mode="secondary" size="s"`
26
+ *
27
+ * Для набора кнопок используйте [`ButtonGroup`](https://vkcom.github.io/VKUI/#/ButtonGroup) с параметрами:
28
+ *
29
+ * - `mode="horizontal" gap="s" stretched`
30
+ */
31
+ actions?: React.ReactNode;
32
+ /**
33
+ * `<Avatar size={40|48|72} />`.
34
+ */
35
+ before?: React.ReactNode;
36
+ /**
37
+ * Иконка 24 или текст.
38
+ */
39
+ after?: React.ReactNode;
40
+ /**
41
+ * Текст под `after`.
42
+ */
43
+ afterCaption?: React.ReactNode;
44
+ /**
45
+ * Убирает анимацию нажатия.
46
+ */
47
+ disabled?: boolean;
48
+ /**
49
+ * Включает многострочный режим для `subhead`, `children`, `text` и `caption`.
50
+ */
51
+ multiline?: boolean;
52
+ }
53
+ /**
54
+ * @see https://vkcom.github.io/VKUI/#/RichCell
55
+ */
56
+ export declare const RichCell: React.FC<Pick<RichCellProps, "max" | "required" | "high" | "low" | "disabled" | "default" | "start" | "open" | "bottom" | "media" | "hidden" | "caption" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "async" | "defer" | "manifest" | "color" | "content" | "size" | "wrap" | "after" | "multiple" | "height" | "translate" | "width" | "prefix" | "src" | "children" | "className" | "id" | "lang" | "method" | "min" | "name" | "target" | "type" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "srcLang" | "value" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "step" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "poster" | "challenge" | "keyType" | "keyParams" | "onStart" | "onMove" | "onLeave" | "onEnter" | "onEnd" | "Component" | "getRootRef" | "stopPropagation" | "activeEffectDelay" | "hasHover" | "hoverMode" | "hasActive" | "activeMode" | "focusVisibleMode" | "before" | "actions" | "multiline" | "subhead" | "afterCaption"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { HoverPopperProps } from "../HoverPopper/HoverPopper";
3
+ import "./RichTooltip.css";
4
+ export interface RichTooltipProps extends Omit<HoverPopperProps, "arrowClassName"> {
5
+ /**
6
+ * Стиль отображения подсказки
7
+ */
8
+ appearance?: "accent" | "neutral" | "white" | "black" | "inversion";
9
+ }
10
+ /**
11
+ * @see https://vkcom.github.io/VKUI/#/RichTooltip
12
+ */
13
+ export declare const RichTooltip: ({ children, arrow, appearance, ...popperProps }: RichTooltipProps) => JSX.Element;
@@ -0,0 +1,33 @@
1
+ import * as React from "react";
2
+ import { NavIdProps } from "../../lib/getNavId";
3
+ import "./Root.css";
4
+ export interface RootProps extends React.HTMLAttributes<HTMLDivElement>, NavIdProps {
5
+ activeView: string;
6
+ onTransition?(params: {
7
+ isBack: boolean;
8
+ from: string;
9
+ to: string;
10
+ }): void;
11
+ /**
12
+ * @deprecated будет удалено в 5.0.0. Используйте одноименное свойство у `SplitLayout`.
13
+ *
14
+ * Свойство для отрисовки `Alert`, `ActionSheet` и `ScreenSpinner`.
15
+ */
16
+ popout?: React.ReactNode;
17
+ /**
18
+ * @deprecated будет удалено в 5.0.0. Используйте одноименное свойство у `SplitLayout`.
19
+ *
20
+ * Свойство для отрисовки `ModalRoot`.
21
+ */
22
+ modal?: React.ReactNode;
23
+ }
24
+ export interface RootState {
25
+ activeView: string;
26
+ transition: boolean;
27
+ isBack?: boolean;
28
+ prevView?: string;
29
+ }
30
+ /**
31
+ * @see https://vkcom.github.io/VKUI/#/Root
32
+ */
33
+ export declare const Root: ({ popout, modal, children, activeView: _activeView, onTransition, nav, ...restProps }: RootProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../../../types/global.d.ts" />
2
+ /// <reference types="react" />
3
+ export declare const Icon48CancelCircle: (props: import("react").SVGProps<SVGSVGElement>) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../../../types/global.d.ts" />
2
+ /// <reference types="react" />
3
+ export declare const Icon48DoneOutline: (props: import("react").SVGProps<SVGSVGElement>) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { SpinnerProps } from "../Spinner/Spinner";
3
+ import "./ScreenSpinner.css";
4
+ export interface ScreenSpinnerProps extends SpinnerProps {
5
+ state?: "loading" | "cancelable" | "done" | "error";
6
+ }
7
+ /**
8
+ * @see https://vkcom.github.io/VKUI/#/ScreenSpinner
9
+ */
10
+ export declare const ScreenSpinner: ({ style, className, state, size, "aria-label": ariaLabel, onClick, ...restProps }: ScreenSpinnerProps) => JSX.Element;
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import { HasPlatform, HasRef } from "../../types";
3
+ import { VKUITouchEvent } from "../../lib/touch";
4
+ import "./Search.css";
5
+ export declare type InputRef = (element: HTMLInputElement) => void;
6
+ export interface SearchProps extends React.InputHTMLAttributes<HTMLInputElement>, HasRef<HTMLInputElement>, HasPlatform {
7
+ /**
8
+ * iOS only. Текст кнопки "отмена", которая чистит текстовое поле и убирает фокус.
9
+ */
10
+ after?: React.ReactNode;
11
+ before?: React.ReactNode;
12
+ icon?: React.ReactNode;
13
+ onIconClick?: (e: VKUITouchEvent) => void;
14
+ defaultValue?: string;
15
+ }
16
+ export declare const Search: React.FC<Pick<SearchProps, "max" | "required" | "disabled" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "pattern" | "color" | "size" | "icon" | "after" | "multiple" | "height" | "translate" | "width" | "prefix" | "src" | "children" | "className" | "id" | "lang" | "min" | "name" | "type" | "role" | "tabIndex" | "crossOrigin" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "value" | "alt" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "autoComplete" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "step" | "getRef" | "before" | "onIconClick">>;
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { HasRootRef } from "../../types";
3
+ import "./SegmentedControl.css";
4
+ export declare type SegmentedControlValue = string | number | undefined;
5
+ export interface SegmentedControlOptionInterface extends Omit<React.HTMLAttributes<HTMLElement>, "label"> {
6
+ label: React.ReactChild;
7
+ value: SegmentedControlValue;
8
+ }
9
+ export interface SegmentedControlProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">, HasRootRef<HTMLDivElement> {
10
+ options: SegmentedControlOptionInterface[];
11
+ size?: "m" | "l";
12
+ name?: string;
13
+ onChange?: (value: SegmentedControlValue) => void;
14
+ value?: SegmentedControlValue;
15
+ defaultValue?: SegmentedControlValue;
16
+ }
17
+ /**
18
+ * @see https://vkcom.github.io/VKUI/#/SegmentedControl
19
+ */
20
+ export declare const SegmentedControl: ({ size, name, options, getRootRef, onChange, value: valueProp, defaultValue, children, ...restProps }: SegmentedControlProps) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { VisuallyHiddenInputProps } from "../../VisuallyHiddenInput/VisuallyHiddenInput";
3
+ import "./SegmentedControlOption.css";
4
+ /**
5
+ * @see https://vkcom.github.io/VKUI/#/SegmentedControl
6
+ */
7
+ export declare const SegmentedControlOption: ({ className, style, children, ...restProps }: VisuallyHiddenInputProps) => JSX.Element;
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ import { CustomSelectProps } from "../CustomSelect/CustomSelect";
3
+ import { AdaptivityContextInterface, AdaptivityProps } from "../AdaptivityProvider/AdaptivityContext";
4
+ export declare const SelectType: {
5
+ readonly default: "default";
6
+ readonly plain: "plain";
7
+ readonly accent: "accent";
8
+ };
9
+ /**
10
+ * @see https://vkcom.github.io/VKUI/#/SelectTypography
11
+ */
12
+ export declare const SelectTypography: ({ selectType, children, ...restProps }: React.PropsWithChildren<Pick<CustomSelectProps, "selectType">>) => JSX.Element;
13
+ export interface SelectProps extends CustomSelectProps, AdaptivityProps {
14
+ }
15
+ /**
16
+ * @see https://vkcom.github.io/VKUI/#/Select
17
+ */
18
+ export declare const Select: React.FC<Pick<SelectProps & AdaptivityContextInterface, "platform" | "required" | "disabled" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "color" | "size" | "icon" | "after" | "multiple" | "translate" | "prefix" | "children" | "className" | "id" | "lang" | "name" | "role" | "tabIndex" | "mode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "status" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "value" | "autoFocus" | "autoComplete" | "align" | "getRootRef" | "getRef" | "onOpen" | "onClose" | "before" | "options" | "popupDirection" | "multiline" | "onInputChange" | "selectType" | "searchable" | "emptyText" | "filterFn" | "renderOption" | "renderDropdown" | "fetching" | "dropdownOffsetDistance" | "fixDropdownWidth" | "forceDropdownPortal" | "autoHideScrollbar" | "autoHideScrollbarDelay"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import { FormFieldProps } from "../FormField/FormField";
3
+ import { HasAlign, HasRootRef } from "../../types";
4
+ import { AdaptivityProps } from "../../hoc/withAdaptivity";
5
+ import { SelectType } from "../Select/Select";
6
+ import "../Select/Select.css";
7
+ export interface SelectMimicryProps extends React.HTMLAttributes<HTMLElement>, HasAlign, HasRootRef<HTMLElement>, AdaptivityProps, Pick<FormFieldProps, "before" | "after" | "status"> {
8
+ multiline?: boolean;
9
+ disabled?: boolean;
10
+ selectType?: keyof typeof SelectType;
11
+ }
12
+ /**
13
+ * @see https://vkcom.github.io/VKUI/#/SelectMimicry
14
+ */
15
+ export declare const SelectMimicry: React.FC<Pick<SelectMimicryProps, "disabled" | "hidden" | "dir" | "slot" | "style" | "title" | "color" | "after" | "translate" | "prefix" | "children" | "className" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "status" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "getRootRef" | "before" | "multiline" | "selectType"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import "./Separator.css";
3
+ export interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * С этим свойством компонент не будет иметь отступы слева и справа
6
+ */
7
+ wide?: boolean;
8
+ /**
9
+ * @deprecated Это свойство устарело и будет удалено в 5.0.0. Используйте [`Spacing`](https://vkcom.github.io/VKUI/#/Spacing).
10
+ */
11
+ expanded?: boolean;
12
+ }
13
+ /**
14
+ * @see https://vkcom.github.io/VKUI/#/Separator
15
+ */
16
+ export declare const Separator: ({ wide, expanded, ...restProps }: SeparatorProps) => JSX.Element;
@@ -0,0 +1,74 @@
1
+ import * as React from "react";
2
+ import { HasComponent } from "../../types";
3
+ import { TappableProps } from "../Tappable/Tappable";
4
+ import "./SimpleCell.css";
5
+ export interface SimpleCellOwnProps extends HasComponent {
6
+ /**
7
+ * Иконка 28 или `<Avatar size={28|32|40|48|72} />`
8
+ */
9
+ before?: React.ReactNode;
10
+ /**
11
+ * @deprecated будет удалено в v5.0.0, используйте свойство rightBadge
12
+ * Иконка 12 или `<Badge />`. Добавится справа от текста `children`.
13
+ */
14
+ badge?: React.ReactNode;
15
+ /**
16
+ * Иконка 12 или `<Badge />`. Добавится слева от текста `children`.
17
+ */
18
+ badgeBeforeTitle?: React.ReactNode;
19
+ /**
20
+ * Иконка 12 или `<Badge />`. Добавится справа от текста `children`.
21
+ */
22
+ badgeAfterTitle?: React.ReactNode;
23
+ /**
24
+ * Иконка 12. Добавится слева от текста `subtitle`.
25
+ */
26
+ badgeBeforeSubtitle?: React.ReactNode;
27
+ /**
28
+ * Иконка 12. Добавится справа от текста `subtitle`.
29
+ */
30
+ badgeAfterSubtitle?: React.ReactNode;
31
+ /**
32
+ * Контейнер для текста справа от `children`.
33
+ */
34
+ indicator?: React.ReactNode;
35
+ /**
36
+ * Дополнительная строка текста над `children`.
37
+ */
38
+ subhead?: React.ReactNode;
39
+ /**
40
+ * Дополнительная строка текста под `children`.
41
+ */
42
+ subtitle?: React.ReactNode;
43
+ /**
44
+ * Дополнительная строка текста под `children` и `subtitle`.
45
+ */
46
+ extraSubtitle?: React.ReactNode;
47
+ /**
48
+ * Иконка 24|28 или `<Switch />`. Располагается справа от `indicator`.
49
+ */
50
+ after?: React.ReactNode;
51
+ /**
52
+ * @deprecated будет удалено в v5.0.0, используйте свойство subtitle
53
+ * Контейнер для текста под `children`.
54
+ */
55
+ description?: React.ReactNode;
56
+ /**
57
+ * Убирает анимацию нажатия
58
+ */
59
+ disabled?: boolean;
60
+ /**
61
+ * В iOS добавляет chevron справа. Передавать `true`, если предполагается переход при клике по ячейке.
62
+ */
63
+ expandable?: boolean;
64
+ /**
65
+ * Включает многострочный режим для отображения текста
66
+ */
67
+ multiline?: boolean;
68
+ }
69
+ export interface SimpleCellProps extends SimpleCellOwnProps, TappableProps {
70
+ }
71
+ /**
72
+ * @see https://vkcom.github.io/VKUI/#/SimpleCell
73
+ */
74
+ export declare const SimpleCell: React.FC<Pick<SimpleCellProps, "max" | "required" | "high" | "low" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "size" | "wrap" | "after" | "multiple" | "height" | "translate" | "width" | "prefix" | "src" | "children" | "className" | "id" | "lang" | "method" | "min" | "name" | "target" | "type" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "srcLang" | "value" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "step" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "poster" | "challenge" | "keyType" | "keyParams" | "onStart" | "onMove" | "onLeave" | "onEnter" | "onEnd" | "Component" | "getRootRef" | "stopPropagation" | "activeEffectDelay" | "hasHover" | "hoverMode" | "hasActive" | "activeMode" | "focusVisibleMode" | "expandable" | "before" | "indicator" | "subtitle" | "multiline" | "badge" | "badgeBeforeTitle" | "badgeAfterTitle" | "badgeBeforeSubtitle" | "badgeAfterSubtitle" | "description" | "subhead" | "extraSubtitle"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import { HasRef, HasRootRef } from "../../types";
3
+ import "./SimpleCheckbox.css";
4
+ export interface SimpleCheckboxProps extends React.InputHTMLAttributes<HTMLInputElement>, HasRootRef<HTMLLabelElement>, HasRef<HTMLInputElement> {
5
+ indeterminate?: boolean;
6
+ defaultIndeterminate?: boolean;
7
+ }
8
+ /**
9
+ * @deprecated Этот компонент устарел и будет удален в 5.0.0. Используйте [`Checkbox`](https://vkcom.github.io/VKUI/#/Checkbox).
10
+ * @see https://vkcom.github.io/VKUI/#/SimpleCheckbox
11
+ */
12
+ export declare const SimpleCheckbox: ({ className, style, getRootRef, getRef, indeterminate, defaultIndeterminate, onChange, ...restProps }: SimpleCheckboxProps) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { UniversalSliderProps } from "../RangeSlider/UniversalSlider";
3
+ export declare type SliderProps = UniversalSliderProps<number>;
4
+ /**
5
+ * @see https://vkcom.github.io/VKUI/#/Slider
6
+ */
7
+ export declare const Slider: ({ onChange, defaultValue, min, max, value, ...props }: SliderProps) => JSX.Element;
@@ -0,0 +1,48 @@
1
+ import * as React from "react";
2
+ import { HasPlatform } from "../../types";
3
+ import "./SliderSwitch.css";
4
+ export interface SliderSwitchOptionInterface {
5
+ name: string;
6
+ value: string | number;
7
+ }
8
+ export interface SliderSwitchProps extends React.HTMLAttributes<HTMLDivElement>, HasPlatform {
9
+ options: Array<{
10
+ name: string;
11
+ value: string | number;
12
+ }>;
13
+ activeValue?: SliderSwitchOptionInterface["value"];
14
+ name?: string;
15
+ onSwitch?: (value: SliderSwitchOptionInterface["value"]) => void;
16
+ }
17
+ interface SliderSwitchState {
18
+ activeValue: SliderSwitchOptionInterface["value"];
19
+ hoveredOptionId: number;
20
+ }
21
+ /**
22
+ * @deprecated Этот компонент устарел и будет удален в 5.0.0. Используйте [`SegmentedControl`](https://vkcom.github.io/VKUI/#/SegmentedControl).
23
+ * @see https://vkcom.github.io/VKUI/#/SliderSwitch
24
+ */
25
+ declare class SliderSwitch extends React.Component<SliderSwitchProps, SliderSwitchState> {
26
+ constructor(props: SliderSwitchProps);
27
+ static defaultProps: {
28
+ options: {
29
+ name: string;
30
+ value: string;
31
+ }[];
32
+ };
33
+ firstButton: React.RefObject<HTMLDivElement>;
34
+ secondButton: React.RefObject<HTMLDivElement>;
35
+ onSwitch: (value: string | number) => void;
36
+ handleFirstClick: () => void;
37
+ handleSecondClick: () => void;
38
+ handleFirstHover: () => void;
39
+ handleSecondHover: () => void;
40
+ resetFocusedOption: () => void;
41
+ switchByKey: (event: React.KeyboardEvent<Element>) => void;
42
+ static getDerivedStateFromProps(nextProps: SliderSwitchProps, prevState: SliderSwitchState): {
43
+ activeValue: string | number;
44
+ } | null;
45
+ componentDidMount(): void;
46
+ render(): JSX.Element;
47
+ }
48
+ export { SliderSwitch };
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import { HasRootRef } from "../../types";
3
+ import "./SliderSwitch.css";
4
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLElement>, HasRootRef<HTMLElement> {
5
+ active?: boolean;
6
+ hovered?: boolean;
7
+ }
8
+ /**
9
+ * @deprecated Этот компонент устарел и будет удален в 5.0.0.
10
+ */
11
+ export declare const SliderSwitchButton: ({ active, hovered, children, getRootRef, ...restProps }: ButtonProps) => JSX.Element;
@@ -0,0 +1,42 @@
1
+ import * as React from "react";
2
+ import { HasPlatform } from "../../types";
3
+ import { AdaptivityContextInterface, AdaptivityProps } from "../AdaptivityProvider/AdaptivityContext";
4
+ import "./Snackbar.css";
5
+ export interface SnackbarProps extends React.HTMLAttributes<HTMLElement>, HasPlatform, AdaptivityProps {
6
+ /**
7
+ * Название кнопки действия в уведомлении
8
+ */
9
+ action?: React.ReactNode;
10
+ /**
11
+ * Будет вызвано при клике на кнопку действия
12
+ */
13
+ onActionClick?: (e: React.MouseEvent) => void;
14
+ /**
15
+ * Цветная иконка 24x24 пикселя
16
+ */
17
+ before?: React.ReactNode;
18
+ /**
19
+ * Контент в правой части, может быть `<Avatar size={32} />`
20
+ */
21
+ after?: React.ReactNode;
22
+ /**
23
+ * Варианты расположения кнопки
24
+ */
25
+ layout?: "vertical" | "horizontal";
26
+ /**
27
+ * Время в миллисекундах, через которое плашка скроется
28
+ */
29
+ duration?: number;
30
+ /**
31
+ * Обработчик закрытия уведомления
32
+ */
33
+ onClose: () => void;
34
+ /**
35
+ * Задает стиль снекбара
36
+ */
37
+ mode?: "default" | "dark";
38
+ }
39
+ /**
40
+ * @see https://vkcom.github.io/VKUI/#/Snackbar
41
+ */
42
+ export declare const Snackbar: React.FC<Pick<SnackbarProps & AdaptivityContextInterface, "platform" | "hidden" | "dir" | "slot" | "style" | "title" | "color" | "layout" | "after" | "translate" | "prefix" | "children" | "className" | "id" | "lang" | "role" | "tabIndex" | "mode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "action" | "duration" | "onClose" | "before" | "onActionClick"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
@@ -0,0 +1,23 @@
1
+ import * as React from "react";
2
+ import "./Spacing.css";
3
+ export interface SpacingProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * Высота спэйсинга
6
+ */
7
+ size?: number;
8
+ /**
9
+ * @deprecated Это свойство устарело и будет удалено в 5.0.0. Используйте [`Separator`](https://vkcom.github.io/VKUI/#/Separator) вместе с Spacing.
10
+ * Настройка положения сепаратора:
11
+ *
12
+ * - separator=false (default) - без сепаратора
13
+ * - separator=true | separator='center' - сепаратор располагается по середине
14
+ * - separator='top'
15
+ * - separator='bottom'
16
+ */
17
+ separator?: boolean | "top" | "bottom" | "center";
18
+ children?: React.ReactNode;
19
+ }
20
+ /**
21
+ * @see https://vkcom.github.io/VKUI/#/Spacing
22
+ */
23
+ export declare const Spacing: ({ size, separator, style, ...restProps }: SpacingProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import "./Spinner.css";
3
+ export interface SpinnerProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ size?: "small" | "regular" | "medium" | "large";
5
+ }
6
+ /**
7
+ * @see https://vkcom.github.io/VKUI/#/Spinner
8
+ */
9
+ export declare const Spinner: React.MemoExoticComponent<({ size, "aria-label": ariaLabel, ...restProps }: SpinnerProps) => JSX.Element>;