@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.
- package/.cache/.eslintcache +1 -1
- package/.cache/.stylelintcache +1 -1
- package/.cache/.tsbuildinfo +6 -6
- package/dist/cjs/appearance/constants.d.ts +1 -0
- package/dist/cjs/components/ActionSheet/ActionSheet.d.ts +29 -0
- package/dist/cjs/components/ActionSheet/ActionSheetContext.d.ts +8 -0
- package/dist/cjs/components/ActionSheet/ActionSheetDefaultIosCloseItem.d.ts +3 -0
- package/dist/cjs/components/ActionSheet/ActionSheetDropdown.d.ts +4 -0
- package/dist/cjs/components/ActionSheet/ActionSheetDropdownDesktop.d.ts +4 -0
- package/dist/cjs/components/ActionSheet/types.d.ts +9 -0
- package/dist/cjs/components/ActionSheetItem/ActionSheetItem.d.ts +27 -0
- package/dist/cjs/components/AdaptivityProvider/AdaptivityContext.d.ts +46 -0
- package/dist/cjs/components/AdaptivityProvider/AdaptivityProvider.d.ts +15 -0
- package/dist/cjs/components/Alert/Alert.d.ts +25 -0
- package/dist/cjs/components/AppRoot/AppRoot.d.ts +23 -0
- package/dist/cjs/components/AppRoot/AppRootContext.d.ts +10 -0
- package/dist/cjs/components/AppRoot/AppRootPortal.d.ts +7 -0
- package/dist/cjs/components/AppRoot/ScrollContext.d.ts +27 -0
- package/dist/cjs/components/AppRoot/ScrollContext.js +9 -1
- package/dist/cjs/components/AppRoot/ScrollContext.js.map +1 -1
- package/dist/cjs/components/AppearanceProvider/AppearanceProvider.d.ts +11 -0
- package/dist/cjs/components/AppearanceProvider/AppearanceProviderContext.d.ts +3 -0
- package/dist/cjs/components/Avatar/Avatar.d.ts +24 -0
- package/dist/cjs/components/Badge/Badge.d.ts +9 -0
- package/dist/cjs/components/Banner/Banner.d.ts +67 -0
- package/dist/cjs/components/BaseGallery/BaseGallery.d.ts +4 -0
- package/dist/cjs/components/BaseGallery/helpers.d.ts +12 -0
- package/dist/cjs/components/BaseGallery/types.d.ts +43 -0
- package/dist/cjs/components/Button/Button.d.ts +22 -0
- package/dist/cjs/components/ButtonGroup/ButtonGroup.d.ts +27 -0
- package/dist/cjs/components/Calendar/Calendar.d.ts +34 -0
- package/dist/cjs/components/CalendarDay/CalendarDay.d.ts +24 -0
- package/dist/cjs/components/CalendarDays/CalendarDays.d.ts +24 -0
- package/dist/cjs/components/CalendarHeader/CalendarHeader.d.ts +29 -0
- package/dist/cjs/components/CalendarRange/CalendarRange.d.ts +19 -0
- package/dist/cjs/components/CalendarTime/CalendarTime.d.ts +11 -0
- package/dist/cjs/components/Card/Card.d.ts +10 -0
- package/dist/cjs/components/CardGrid/CardGrid.d.ts +14 -0
- package/dist/cjs/components/CardScroll/CardScroll.d.ts +15 -0
- package/dist/cjs/components/Cell/Cell.d.ts +50 -0
- package/dist/cjs/components/Cell/CellCheckbox/CellCheckbox.d.ts +5 -0
- package/dist/cjs/components/Cell/CellDragger/CellDragger.d.ts +6 -0
- package/dist/cjs/components/Cell/useDraggable.d.ts +15 -0
- package/dist/cjs/components/CellButton/CellButton.d.ts +11 -0
- package/dist/cjs/components/Checkbox/Checkbox.d.ts +15 -0
- package/dist/cjs/components/Chip/Chip.d.ts +26 -0
- package/dist/cjs/components/ChipsInput/ChipsInput.d.ts +11 -0
- package/dist/cjs/components/ChipsInputBase/ChipsInputBase.d.ts +17 -0
- package/dist/cjs/components/ChipsSelect/ChipsSelect.d.ts +45 -0
- package/dist/cjs/components/ConfigProvider/ConfigProvider.d.ts +19 -0
- package/dist/cjs/components/ConfigProvider/ConfigProviderContext.d.ts +37 -0
- package/dist/cjs/components/ContentCard/ContentCard.d.ts +36 -0
- package/dist/cjs/components/Counter/Counter.d.ts +13 -0
- package/dist/cjs/components/CustomScrollView/CustomScrollView.d.ts +11 -0
- package/dist/cjs/components/CustomScrollView/useTrackerVisibility.d.ts +43 -0
- package/dist/cjs/components/CustomSelect/CustomSelect.d.ts +62 -0
- package/dist/cjs/components/CustomSelectDropdown/CustomSelectDropdown.d.ts +17 -0
- package/dist/cjs/components/CustomSelectOption/CustomSelectOption.d.ts +47 -0
- package/dist/cjs/components/DateInput/DateInput.d.ts +17 -0
- package/dist/cjs/components/DatePicker/DatePicker.d.ts +23 -0
- package/dist/cjs/components/DateRangeInput/DateRangeInput.d.ts +23 -0
- package/dist/cjs/components/Div/Div.d.ts +9 -0
- package/dist/cjs/components/Dropdown/Dropdown.d.ts +52 -0
- package/dist/cjs/components/DropdownIcon/DropdownIcon.d.ts +5 -0
- package/dist/cjs/components/Epic/Epic.d.ts +11 -0
- package/dist/cjs/components/Epic/ScrollSaver.d.ts +10 -0
- package/dist/cjs/components/File/File.d.ts +13 -0
- package/dist/cjs/components/FixedLayout/FixedLayout.d.ts +21 -0
- package/dist/cjs/components/FixedLayout/FixedLayout.js +1 -1
- package/dist/cjs/components/FixedLayout/FixedLayout.js.map +1 -1
- package/dist/cjs/components/FocusTrap/FocusTrap.d.ts +11 -0
- package/dist/cjs/components/FocusVisible/FocusVisible.d.ts +10 -0
- package/dist/cjs/components/Footer/Footer.d.ts +8 -0
- package/dist/cjs/components/FormField/FormField.d.ts +37 -0
- package/dist/cjs/components/FormItem/FormItem.d.ts +17 -0
- package/dist/cjs/components/FormLayout/FormLayout.d.ts +8 -0
- package/dist/cjs/components/FormLayoutGroup/FormLayoutGroup.d.ts +19 -0
- package/dist/cjs/components/FormStatus/FormStatus.d.ts +11 -0
- package/dist/cjs/components/Gallery/Gallery.d.ts +10 -0
- package/dist/cjs/components/Gradient/Gradient.d.ts +16 -0
- package/dist/cjs/components/GridAvatar/GridAvatar.d.ts +15 -0
- package/dist/cjs/components/Group/Group.d.ts +30 -0
- package/dist/cjs/components/Header/Header.d.ts +20 -0
- package/dist/cjs/components/HorizontalCell/HorizontalCell.d.ts +13 -0
- package/dist/cjs/components/HorizontalScroll/HorizontalScroll.d.ts +22 -0
- package/dist/cjs/components/HorizontalScroll/HorizontalScrollArrow.d.ts +8 -0
- package/dist/cjs/components/HoverPopper/HoverPopper.d.ts +29 -0
- package/dist/cjs/components/IconButton/IconButton.d.ts +14 -0
- package/dist/cjs/components/InfoRow/InfoRow.d.ts +9 -0
- package/dist/cjs/components/InitialsAvatar/InitialsAvatar.d.ts +35 -0
- package/dist/cjs/components/Input/Input.d.ts +11 -0
- package/dist/cjs/components/InputLike/InputLike.d.ts +13 -0
- package/dist/cjs/components/InputLike/InputLikeDivider.d.ts +3 -0
- package/dist/cjs/components/Link/Link.d.ts +13 -0
- package/dist/cjs/components/List/List.d.ts +7 -0
- package/dist/cjs/components/List/ListContext.d.ts +4 -0
- package/dist/cjs/components/LocaleProviderContext/LocaleProviderContext.d.ts +2 -0
- package/dist/cjs/components/MiniInfoCell/MiniInfoCell.d.ts +42 -0
- package/dist/cjs/components/ModalCard/ModalCard.d.ts +12 -0
- package/dist/cjs/components/ModalCardBase/ModalCardBase.d.ts +39 -0
- package/dist/cjs/components/ModalDismissButton/ModalDismissButton.d.ts +7 -0
- package/dist/cjs/components/ModalPage/ModalPage.d.ts +51 -0
- package/dist/cjs/components/ModalPageHeader/ModalPageHeader.d.ts +10 -0
- package/dist/cjs/components/ModalRoot/ModalRoot.d.ts +29 -0
- package/dist/cjs/components/ModalRoot/ModalRoot.js +1 -1
- package/dist/cjs/components/ModalRoot/ModalRoot.js.map +1 -1
- package/dist/cjs/components/ModalRoot/ModalRootAdaptive.d.ts +26 -0
- package/dist/cjs/components/ModalRoot/ModalRootContext.d.ts +20 -0
- package/dist/cjs/components/ModalRoot/ModalRootDesktop.d.ts +29 -0
- package/dist/cjs/components/ModalRoot/constants.d.ts +3 -0
- package/dist/cjs/components/ModalRoot/types.d.ts +60 -0
- package/dist/cjs/components/ModalRoot/useModalManager.d.ts +39 -0
- package/dist/cjs/components/ModalRoot/withModalRootContext.d.ts +5 -0
- package/dist/cjs/components/NativeSelect/NativeSelect.d.ts +20 -0
- package/dist/cjs/components/NavTransitionContext/NavTransitionContext.d.ts +6 -0
- package/dist/cjs/components/Pagination/Pagination.d.ts +45 -0
- package/dist/cjs/components/Panel/Panel.d.ts +12 -0
- package/dist/cjs/components/PanelHeader/PanelHeader.d.ts +31 -0
- package/dist/cjs/components/PanelHeaderBack/PanelHeaderBack.d.ts +12 -0
- package/dist/cjs/components/PanelHeaderButton/PanelHeaderButton.d.ts +11 -0
- package/dist/cjs/components/PanelHeaderClose/PanelHeaderClose.d.ts +6 -0
- package/dist/cjs/components/PanelHeaderContent/PanelHeaderContent.d.ts +11 -0
- package/dist/cjs/components/PanelHeaderContext/PanelHeaderContext.d.ts +10 -0
- package/dist/cjs/components/PanelHeaderEdit/PanelHeaderEdit.d.ts +20 -0
- package/dist/cjs/components/PanelHeaderSubmit/PanelHeaderSubmit.d.ts +6 -0
- package/dist/cjs/components/PanelSpinner/PanelSpinner.d.ts +9 -0
- package/dist/cjs/components/Placeholder/Placeholder.d.ts +25 -0
- package/dist/cjs/components/PopoutRoot/PopoutRoot.d.ts +13 -0
- package/dist/cjs/components/PopoutWrapper/PopoutWrapper.d.ts +13 -0
- package/dist/cjs/components/Popper/Popper.d.ts +57 -0
- package/dist/cjs/components/PopperArrow/PopperArrow.d.ts +8 -0
- package/dist/cjs/components/Progress/Progress.d.ts +10 -0
- package/dist/cjs/components/PromoBanner/PromoBanner.d.ts +43 -0
- package/dist/cjs/components/PullToRefresh/PullToRefresh.d.ts +22 -0
- package/dist/cjs/components/PullToRefresh/PullToRefreshSpinner.d.ts +10 -0
- package/dist/cjs/components/Radio/Radio.d.ts +11 -0
- package/dist/cjs/components/RadioGroup/RadioGroup.d.ts +9 -0
- package/dist/cjs/components/RangeSlider/RangeSlider.d.ts +8 -0
- package/dist/cjs/components/RangeSlider/UniversalSlider.d.ts +16 -0
- package/dist/cjs/components/Removable/Removable.d.ts +24 -0
- package/dist/cjs/components/RichCell/RichCell.d.ts +56 -0
- package/dist/cjs/components/RichTooltip/RichTooltip.d.ts +13 -0
- package/dist/cjs/components/Root/Root.d.ts +33 -0
- package/dist/cjs/components/ScreenSpinner/Icon48CancelCircle.d.ts +3 -0
- package/dist/cjs/components/ScreenSpinner/Icon48DoneOutline.d.ts +3 -0
- package/dist/cjs/components/ScreenSpinner/ScreenSpinner.d.ts +10 -0
- package/dist/cjs/components/Search/Search.d.ts +16 -0
- package/dist/cjs/components/SegmentedControl/SegmentedControl.d.ts +20 -0
- package/dist/cjs/components/SegmentedControl/SegmentedControlOption/SegmentedControlOption.d.ts +7 -0
- package/dist/cjs/components/Select/Select.d.ts +18 -0
- package/dist/cjs/components/SelectMimicry/SelectMimicry.d.ts +15 -0
- package/dist/cjs/components/Separator/Separator.d.ts +16 -0
- package/dist/cjs/components/SimpleCell/SimpleCell.d.ts +74 -0
- package/dist/cjs/components/SimpleCheckbox/SimpleCheckbox.d.ts +12 -0
- package/dist/cjs/components/Slider/Slider.d.ts +7 -0
- package/dist/cjs/components/SliderSwitch/SliderSwitch.d.ts +48 -0
- package/dist/cjs/components/SliderSwitch/SliderSwitchButton.d.ts +11 -0
- package/dist/cjs/components/Snackbar/Snackbar.d.ts +42 -0
- package/dist/cjs/components/Spacing/Spacing.d.ts +23 -0
- package/dist/cjs/components/Spinner/Spinner.d.ts +9 -0
- package/dist/cjs/components/SplitCol/SplitCol.d.ts +26 -0
- package/dist/cjs/components/SplitLayout/SplitLayout.d.ts +18 -0
- package/dist/cjs/components/SubnavigationBar/SubnavigationBar.d.ts +10 -0
- package/dist/cjs/components/SubnavigationButton/SubnavigationButton.d.ts +25 -0
- package/dist/cjs/components/Switch/Switch.d.ts +10 -0
- package/dist/cjs/components/Tabbar/Tabbar.d.ts +20 -0
- package/dist/cjs/components/TabbarItem/TabbarItem.d.ts +23 -0
- package/dist/cjs/components/Tabs/Tabs.d.ts +23 -0
- package/dist/cjs/components/TabsItem/TabsItem.d.ts +31 -0
- package/dist/cjs/components/Tappable/Tappable.d.ts +46 -0
- package/dist/cjs/components/TextTooltip/TextTooltip.d.ts +21 -0
- package/dist/cjs/components/Textarea/Textarea.d.ts +14 -0
- package/dist/cjs/components/Tooltip/Tooltip.d.ts +75 -0
- package/dist/cjs/components/Tooltip/TooltipContainer.d.ts +5 -0
- package/dist/cjs/components/Touch/Touch.d.ts +52 -0
- package/dist/cjs/components/Touch/TouchContext.d.ts +7 -0
- package/dist/cjs/components/Typography/Caption/Caption.d.ts +17 -0
- package/dist/cjs/components/Typography/Footnote/Footnote.d.ts +14 -0
- package/dist/cjs/components/Typography/Headline/Headline.d.ts +16 -0
- package/dist/cjs/components/Typography/Paragraph/Paragraph.d.ts +13 -0
- package/dist/cjs/components/Typography/Subhead/Subhead.d.ts +15 -0
- package/dist/cjs/components/Typography/Text/Text.d.ts +15 -0
- package/dist/cjs/components/Typography/Title/Title.d.ts +16 -0
- package/dist/cjs/components/UsersStack/UsersStack.d.ts +31 -0
- package/dist/cjs/components/View/View.d.ts +67 -0
- package/dist/cjs/components/View/View.js +2 -0
- package/dist/cjs/components/View/View.js.map +1 -1
- package/dist/cjs/components/View/ViewInfinite.d.ts +66 -0
- package/dist/cjs/components/View/utils.d.ts +2 -0
- package/dist/cjs/components/VisuallyHiddenInput/VisuallyHiddenInput.d.ts +12 -0
- package/dist/cjs/components/WriteBar/WriteBar.d.ts +30 -0
- package/dist/cjs/components/WriteBar/WriteBar.js +2 -5
- package/dist/cjs/components/WriteBar/WriteBar.js.map +1 -1
- package/dist/cjs/components/WriteBarIcon/WriteBarIcon.d.ts +21 -0
- package/dist/cjs/components/WriteBarIcon/WriteBarIcon.js +15 -3
- package/dist/cjs/components/WriteBarIcon/WriteBarIcon.js.map +1 -1
- package/dist/cjs/helpers/avatar.d.ts +5 -0
- package/dist/cjs/helpers/getClassName.d.ts +2 -0
- package/dist/cjs/helpers/getScheme.d.ts +8 -0
- package/dist/cjs/helpers/math.d.ts +5 -0
- package/dist/cjs/helpers/scheme.d.ts +34 -0
- package/dist/cjs/hoc/withAdaptivity.d.ts +13 -0
- package/dist/cjs/hoc/withContext.d.ts +2 -0
- package/dist/cjs/hoc/withInsets.d.ts +3 -0
- package/dist/cjs/hoc/withPlatform.d.ts +3 -0
- package/dist/cjs/hooks/useAdaptivity.d.ts +4 -0
- package/dist/cjs/hooks/useAppearance.d.ts +1 -0
- package/dist/cjs/hooks/useBooleanState.d.ts +6 -0
- package/dist/cjs/hooks/useBridgeAdaptivity.d.ts +6 -0
- package/dist/cjs/hooks/useBrowserInfo.d.ts +2 -0
- package/dist/cjs/hooks/useCalendar.d.ts +19 -0
- package/dist/cjs/hooks/useChipsInput.d.ts +15 -0
- package/dist/cjs/hooks/useChipsSelect.d.ts +22 -0
- package/dist/cjs/hooks/useDateInput.d.ts +30 -0
- package/dist/cjs/hooks/useEffectDev.d.ts +2 -0
- package/dist/cjs/hooks/useEnsuredControl.d.ts +7 -0
- package/dist/cjs/hooks/useEventListener.d.ts +7 -0
- package/dist/cjs/hooks/useExternRef.d.ts +2 -0
- package/dist/cjs/hooks/useFocusVisible.d.ts +6 -0
- package/dist/cjs/hooks/useGlobalEventListener.d.ts +2 -0
- package/dist/cjs/hooks/useInsets.d.ts +8 -0
- package/dist/cjs/hooks/useKeyboard.d.ts +10 -0
- package/dist/cjs/hooks/useKeyboardInputTracker.d.ts +3 -0
- package/dist/cjs/hooks/useObjectMemo.d.ts +2 -0
- package/dist/cjs/hooks/useOrientationChange.d.ts +7 -0
- package/dist/cjs/hooks/usePagination.d.ts +34 -0
- package/dist/cjs/hooks/usePatchChildrenRef.d.ts +6 -0
- package/dist/cjs/hooks/usePlatform.d.ts +2 -0
- package/dist/cjs/hooks/usePrevious.d.ts +1 -0
- package/dist/cjs/hooks/useTimeout.d.ts +4 -0
- package/dist/cjs/hooks/useWaitTransitionFinish.d.ts +3 -0
- package/dist/cjs/index.d.ts +310 -0
- package/dist/cjs/lib/SSR.d.ts +18 -0
- package/dist/cjs/lib/accessibility.d.ts +10 -0
- package/dist/cjs/lib/animate.d.ts +15 -0
- package/dist/cjs/lib/browser.d.ts +11 -0
- package/dist/cjs/lib/calendar.d.ts +14 -0
- package/dist/cjs/lib/callMultiple.d.ts +1 -0
- package/dist/cjs/lib/classNames.d.ts +6 -0
- package/dist/cjs/lib/classScopingMode.d.ts +8 -0
- package/dist/cjs/lib/date.d.ts +29 -0
- package/dist/cjs/lib/dom.d.ts +21 -0
- package/dist/cjs/lib/fx.d.ts +5 -0
- package/dist/cjs/lib/getNavId.d.ts +7 -0
- package/dist/cjs/lib/is.d.ts +1 -0
- package/dist/cjs/lib/isRefObject.d.ts +2 -0
- package/dist/cjs/lib/jsxRuntime.d.ts +8 -0
- package/dist/cjs/lib/offset.d.ts +7 -0
- package/dist/cjs/lib/platform.d.ts +19 -0
- package/dist/cjs/lib/polyfills.d.ts +6 -0
- package/dist/cjs/lib/prefixClass.d.ts +1 -0
- package/dist/cjs/lib/removeObjectKeys.d.ts +1 -0
- package/dist/cjs/lib/select.d.ts +9 -0
- package/dist/cjs/lib/styles.d.ts +1 -0
- package/dist/cjs/lib/supportEvents.d.ts +9 -0
- package/dist/cjs/lib/taptic.d.ts +2 -0
- package/dist/cjs/lib/testing.d.ts +1 -0
- package/dist/cjs/lib/touch.d.ts +9 -0
- package/dist/cjs/lib/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/cjs/lib/utils.d.ts +16 -0
- package/dist/cjs/lib/warnOnce.d.ts +2 -0
- package/dist/cjs/tokenized/index.d.ts +238 -0
- package/dist/cjs/types.d.ts +37 -0
- package/dist/cjs/unstable/index.d.ts +17 -0
- package/dist/components/AppRoot/ScrollContext.js +9 -1
- package/dist/components/AppRoot/ScrollContext.js.map +1 -1
- package/dist/components/FixedLayout/FixedLayout.js +1 -1
- package/dist/components/FixedLayout/FixedLayout.js.map +1 -1
- package/dist/components/ModalRoot/ModalRoot.js +1 -1
- package/dist/components/ModalRoot/ModalRoot.js.map +1 -1
- package/dist/components/View/View.js +2 -0
- package/dist/components/View/View.js.map +1 -1
- package/dist/components/WriteBar/WriteBar.js +2 -5
- package/dist/components/WriteBar/WriteBar.js.map +1 -1
- package/dist/components/WriteBarIcon/WriteBarIcon.js +15 -3
- package/dist/components/WriteBarIcon/WriteBarIcon.js.map +1 -1
- package/dist/components.css +1 -1
- package/dist/components.css.map +1 -1
- package/dist/cssm/components/AppRoot/ScrollContext.js +9 -1
- package/dist/cssm/components/AppRoot/ScrollContext.js.map +1 -1
- package/dist/cssm/components/FixedLayout/FixedLayout.js +1 -1
- package/dist/cssm/components/FixedLayout/FixedLayout.js.map +1 -1
- package/dist/cssm/components/ModalRoot/ModalRoot.js +1 -1
- package/dist/cssm/components/ModalRoot/ModalRoot.js.map +1 -1
- package/dist/cssm/components/PanelHeader/PanelHeader.css +1 -1
- package/dist/cssm/components/View/View.js +2 -0
- package/dist/cssm/components/View/View.js.map +1 -1
- package/dist/cssm/components/WriteBar/WriteBar.js +2 -5
- package/dist/cssm/components/WriteBar/WriteBar.js.map +1 -1
- package/dist/cssm/components/WriteBarIcon/WriteBarIcon.js +15 -3
- package/dist/cssm/components/WriteBarIcon/WriteBarIcon.js.map +1 -1
- package/dist/cssm/styles/components.css +1 -1
- package/dist/cssm/styles/themes.css +1 -1
- package/dist/cssm/styles/vkcom_dark.css +1 -1
- package/dist/cssm/styles/vkcom_light.css +1 -1
- package/dist/vkui.css +2 -2
- package/dist/vkui.css.map +1 -1
- package/package.json +3 -3
- package/src/components/AppRoot/ScrollContext.tsx +13 -1
- package/src/components/FixedLayout/FixedLayout.tsx +1 -1
- package/src/components/ModalRoot/ModalRoot.tsx +1 -1
- package/src/components/PanelHeader/PanelHeader.css +3 -1
- package/src/components/View/View.tsx +2 -0
- package/src/components/WriteBar/Readme.md +14 -14
- package/src/components/WriteBar/WriteBar.tsx +2 -2
- package/src/components/WriteBarIcon/WriteBarIcon.tsx +13 -4
- package/src/styles/vkcom_dark.css +16 -16
- package/src/styles/vkcom_light.css +29 -29
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ModalsStateEntry } from "./types";
|
|
3
|
+
interface ModalTransitionState {
|
|
4
|
+
activeModal?: string | null;
|
|
5
|
+
enteringModal?: string | null;
|
|
6
|
+
exitingModal?: string | null;
|
|
7
|
+
history?: string[];
|
|
8
|
+
isBack?: boolean | null;
|
|
9
|
+
}
|
|
10
|
+
export interface ModalTransitionProps extends ModalTransitionState {
|
|
11
|
+
onEnter: VoidFunction;
|
|
12
|
+
onEntered: (id: string | null) => void;
|
|
13
|
+
onExit: VoidFunction;
|
|
14
|
+
onExited: (id: string | null) => void;
|
|
15
|
+
getModalState: (id: string) => ModalsStateEntry;
|
|
16
|
+
delayEnter: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function modalTransitionReducer(state: ModalTransitionState, action: {
|
|
19
|
+
type: "setActive" | "entered" | "exited" | "inited";
|
|
20
|
+
id: string | null;
|
|
21
|
+
}): ModalTransitionState;
|
|
22
|
+
/**
|
|
23
|
+
* Реализует переход модалок. При смене activeModal m1 -> m2:
|
|
24
|
+
* 1. activeModal: m1, exitingModal: null, enteringModal: null, триггер перехода
|
|
25
|
+
* 2. activeModal: m2, exitingModal: m1, enteringModal: null, рендерим m2 чтобы прошел init, начинаем анимацию выхода
|
|
26
|
+
* одновременный переход между ModalPage:
|
|
27
|
+
* 3a. activeModal: m2, exitingModal: m1, enteringModal: m2
|
|
28
|
+
* 4a. exitingModal и enteringModal переходят в null в порядке завершения анимации
|
|
29
|
+
* ИЛИ дожидаемся скрытия ModalCard
|
|
30
|
+
* 3b. activeModal: m2, exitingModal: null, enteringModal: m2
|
|
31
|
+
* 4b. enteringModal переходит в null после завершения анимации
|
|
32
|
+
* 5. activeModal: m2, exitingModal: null, enteringModal: null, переход закончен
|
|
33
|
+
*/
|
|
34
|
+
export declare function useModalManager(activeModal: string | null | undefined, children: React.ReactNode | React.ReactNode[], onOpen?: (id: string) => void, onOpened?: (id: string) => void, onClose?: (id: string) => void, onClosed?: (id: string) => void, initModal?: (state: ModalsStateEntry) => void): ModalTransitionProps;
|
|
35
|
+
export declare function withModalManager(initModal?: (a: ModalsStateEntry) => void): <Props extends ModalTransitionProps>(Wrapped: React.ComponentType<Props>) => React.ComponentType<Pick<Props, Exclude<keyof Props, "isBack" | "onEnter" | "history" | "onEntered" | "onExit" | "onExited" | "getModalState" | "delayEnter" | "activeModal" | "enteringModal" | "exitingModal">> & {
|
|
36
|
+
activeModal?: string | null | undefined;
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
}>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ModalRootContextInterface } from "./ModalRootContext";
|
|
3
|
+
declare type PickedProps = Pick<ModalRootContextInterface, "updateModalHeight">;
|
|
4
|
+
export declare function withModalRootContext<P extends PickedProps>(Component: React.ComponentType<P>): React.ComponentType<Omit<P, keyof PickedProps>>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { FormFieldProps } from "../FormField/FormField";
|
|
3
|
+
import { HasAlign, HasRef, HasRootRef } from "../../types";
|
|
4
|
+
import { SelectType } from "../Select/Select";
|
|
5
|
+
import { AdaptivityContextInterface, AdaptivityProps } from "../AdaptivityProvider/AdaptivityContext";
|
|
6
|
+
import "../Select/Select.css";
|
|
7
|
+
export interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement>, HasRef<HTMLSelectElement>, HasRootRef<HTMLLabelElement>, HasAlign, AdaptivityProps, Pick<FormFieldProps, "status"> {
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
multiline?: boolean;
|
|
10
|
+
selectType?: keyof typeof SelectType;
|
|
11
|
+
}
|
|
12
|
+
export interface SelectState {
|
|
13
|
+
value?: React.SelectHTMLAttributes<HTMLSelectElement>["value"];
|
|
14
|
+
title?: string;
|
|
15
|
+
notSelected?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @see https://vkcom.github.io/VKUI/#/NativeSelect
|
|
19
|
+
*/
|
|
20
|
+
export declare const NativeSelect: React.FC<Pick<NativeSelectProps & AdaptivityContextInterface, "required" | "disabled" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "color" | "size" | "multiple" | "translate" | "prefix" | "children" | "className" | "id" | "lang" | "name" | "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" | "value" | "autoFocus" | "autoComplete" | "align" | "getRootRef" | "getRef" | "multiline" | "selectType"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface TransitionContextProps {
|
|
3
|
+
entering: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const useNavTransition: () => TransitionContextProps;
|
|
6
|
+
export declare const NavTransitionProvider: ({ children, entering, }: React.PropsWithChildren<TransitionContextProps>) => JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { HasRootRef } from "../../types";
|
|
3
|
+
import "./Pagination.css";
|
|
4
|
+
export interface PaginationProps extends Omit<React.HTMLAttributes<HTMLElement>, "onChange">, HasRootRef<HTMLElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Текущая страница.
|
|
7
|
+
*/
|
|
8
|
+
currentPage?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Кол-во всегда видимых страниц по краям текущей страницы.
|
|
11
|
+
*/
|
|
12
|
+
siblingCount?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Кол-во всегда видимых страниц в начале и в конце.
|
|
15
|
+
*/
|
|
16
|
+
boundaryCount?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Общее кол-во страниц.
|
|
19
|
+
*/
|
|
20
|
+
totalPages?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Блокировка всех кнопок.
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Переопределение `aria-label` для кнопки навигации назад.
|
|
27
|
+
* По умолчанию используется текст на "ru_RU".
|
|
28
|
+
*/
|
|
29
|
+
prevButtonAriaLabel?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Переопределение `aria-label` для кнопки навигации вперёд.
|
|
32
|
+
* По умолчанию используется текст на "ru_RU".
|
|
33
|
+
*/
|
|
34
|
+
nextButtonAriaLabel?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Функция для переопределения и/или локализации `aria-label` атрибута.
|
|
37
|
+
* По умолчанию используется текст на "ru_RU".
|
|
38
|
+
*/
|
|
39
|
+
getPageAriaLabel?(page: number, isCurrent: boolean): string;
|
|
40
|
+
onChange?(page: number): void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @see https://vkcom.github.io/VKUI/#/Pagination
|
|
44
|
+
*/
|
|
45
|
+
export declare const Pagination: ({ currentPage, siblingCount, boundaryCount, totalPages, disabled, getPageAriaLabel, prevButtonAriaLabel, nextButtonAriaLabel, getRootRef, onChange, ...resetProps }: PaginationProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasRootRef } from "../../types";
|
|
3
|
+
import { NavIdProps } from "../../lib/getNavId";
|
|
4
|
+
import { AdaptivityContextInterface, AdaptivityProps } from "../AdaptivityProvider/AdaptivityContext";
|
|
5
|
+
import "./Panel.css";
|
|
6
|
+
export interface PanelProps extends React.HTMLAttributes<HTMLDivElement>, HasRootRef<HTMLDivElement>, AdaptivityProps, NavIdProps {
|
|
7
|
+
centered?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @see https://vkcom.github.io/VKUI/#/Panel
|
|
11
|
+
*/
|
|
12
|
+
export declare const Panel: React.FC<Pick<PanelProps & AdaptivityContextInterface, "hidden" | "dir" | "nav" | "slot" | "style" | "title" | "color" | "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" | "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" | "getRootRef" | "centered"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasRef, HasRootRef } from "../../types";
|
|
3
|
+
import { AdaptivityProps } from "../../hoc/withAdaptivity";
|
|
4
|
+
import "./PanelHeader.css";
|
|
5
|
+
export interface PanelHeaderProps extends React.HTMLAttributes<HTMLDivElement>, HasRef<HTMLDivElement>, HasRootRef<HTMLDivElement>, AdaptivityProps {
|
|
6
|
+
before?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Будет удалено в 5.0.0. Используйте `before`
|
|
9
|
+
*/
|
|
10
|
+
left?: React.ReactNode;
|
|
11
|
+
after?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Будет удалено в 5.0.0. Используйте `after`
|
|
14
|
+
*/
|
|
15
|
+
right?: React.ReactNode;
|
|
16
|
+
separator?: boolean;
|
|
17
|
+
transparent?: boolean;
|
|
18
|
+
shadow?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Если `false`, то шапка будет нулевой высоты и контент панели "залезет" под неё
|
|
21
|
+
*/
|
|
22
|
+
visor?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Если `false`, то шапка будет в потоке. По умолчанию `true`, но если платформа vkcom, то по умолчанию `false`.
|
|
25
|
+
*/
|
|
26
|
+
fixed?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @see https://vkcom.github.io/VKUI/#/PanelHeader
|
|
30
|
+
*/
|
|
31
|
+
export declare const PanelHeader: React.FC<Pick<PanelHeaderProps, "fixed" | "transparent" | "left" | "right" | "hidden" | "dir" | "slot" | "style" | "title" | "color" | "separator" | "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" | "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" | "getRootRef" | "getRef" | "before" | "visor" | "shadow"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PanelHeaderButtonProps } from "../PanelHeaderButton/PanelHeaderButton";
|
|
3
|
+
import { AdaptivityProps } from "../../hoc/withAdaptivity";
|
|
4
|
+
import "./PanelHeaderBack.css";
|
|
5
|
+
export declare type PanelHeaderBackProps = PanelHeaderButtonProps & AdaptivityProps & {
|
|
6
|
+
"aria-label"?: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @see https://vkcom.github.io/VKUI/#/PanelHeaderBack
|
|
10
|
+
*/
|
|
11
|
+
export declare const PanelHeaderBackComponent: ({ label, sizeX, "aria-label": ariaLabel, ...restProps }: PanelHeaderButtonProps & AdaptivityProps) => JSX.Element;
|
|
12
|
+
export declare const PanelHeaderBack: React.NamedExoticComponent<Pick<PanelHeaderButtonProps & AdaptivityProps, "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" | "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" | "primary"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { TappableProps } from "../Tappable/Tappable";
|
|
3
|
+
import "./PanelHeaderButton.css";
|
|
4
|
+
export interface PanelHeaderButtonProps extends Omit<TappableProps, "label"> {
|
|
5
|
+
primary?: boolean;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @see https://vkcom.github.io/VKUI/#/PanelHeaderButton
|
|
10
|
+
*/
|
|
11
|
+
export declare const PanelHeaderButton: ({ children, primary, label, ...restProps }: PanelHeaderButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PanelHeaderButtonProps } from "../PanelHeaderButton/PanelHeaderButton";
|
|
3
|
+
/**
|
|
4
|
+
* @see https://vkcom.github.io/VKUI/#/PanelHeaderClose
|
|
5
|
+
*/
|
|
6
|
+
export declare const PanelHeaderClose: ({ children, ...restProps }: PanelHeaderButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./PanelHeaderContent.css";
|
|
3
|
+
export interface PanelHeaderContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
aside?: React.ReactNode;
|
|
5
|
+
before?: React.ReactNode;
|
|
6
|
+
status?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @see https://vkcom.github.io/VKUI/#/PanelHeaderContent
|
|
10
|
+
*/
|
|
11
|
+
export declare const PanelHeaderContent: ({ className, style, aside, status, before, children, onClick, ...restProps }: PanelHeaderContentProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./PanelHeaderContext.css";
|
|
3
|
+
export interface PanelHeaderContextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
opened: boolean;
|
|
5
|
+
onClose: VoidFunction;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @see https://vkcom.github.io/VKUI/#/PanelHeaderContext
|
|
9
|
+
*/
|
|
10
|
+
export declare const PanelHeaderContext: ({ children, onClose, opened, ...restProps }: PanelHeaderContextProps) => JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PanelHeaderButtonProps } from "../PanelHeaderButton/PanelHeaderButton";
|
|
3
|
+
export interface PanelHeaderEditProps extends PanelHeaderButtonProps {
|
|
4
|
+
/**
|
|
5
|
+
* Включен ли режим редактирования
|
|
6
|
+
*/
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* iOS only. Текст кнопки, когда режим редактирования не активен
|
|
10
|
+
*/
|
|
11
|
+
editLabel?: string;
|
|
12
|
+
/**
|
|
13
|
+
* iOS only. Текст кнопки при активном режиме редактирования для выхода из него
|
|
14
|
+
*/
|
|
15
|
+
doneLabel?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @see https://vkcom.github.io/VKUI/#/PanelHeaderEdit
|
|
19
|
+
*/
|
|
20
|
+
export declare const PanelHeaderEdit: ({ isActive, editLabel, doneLabel, ...restProps }: PanelHeaderEditProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PanelHeaderButtonProps } from "../PanelHeaderButton/PanelHeaderButton";
|
|
3
|
+
/**
|
|
4
|
+
* @see https://vkcom.github.io/VKUI/#/PanelHeaderSubmit
|
|
5
|
+
*/
|
|
6
|
+
export declare const PanelHeaderSubmit: ({ children, ...restProps }: PanelHeaderButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { SpinnerProps } from "../Spinner/Spinner";
|
|
3
|
+
export interface PanelSpinnerProps extends SpinnerProps {
|
|
4
|
+
height?: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @see https://vkcom.github.io/VKUI/#/PanelSpinner
|
|
8
|
+
*/
|
|
9
|
+
export declare const PanelSpinner: React.MemoExoticComponent<({ height, style, ...restProps }: PanelSpinnerProps) => JSX.Element>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasRootRef } from "../../types";
|
|
3
|
+
import "./Placeholder.css";
|
|
4
|
+
export interface PlaceholderProps extends React.HTMLAttributes<HTMLDivElement>, HasRootRef<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Иконка
|
|
7
|
+
*/
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Заголовок плейсхолдера
|
|
11
|
+
*/
|
|
12
|
+
header?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Кнопка действия
|
|
15
|
+
*/
|
|
16
|
+
action?: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Растягивает плейсхолдер на весь экран, но в таком случае на экране должен быть только плейсхолдер
|
|
19
|
+
*/
|
|
20
|
+
stretched?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @see https://vkcom.github.io/VKUI/#/Placeholder
|
|
24
|
+
*/
|
|
25
|
+
export declare const Placeholder: ({ icon, header, action, children, stretched, getRootRef, ...restProps }: PlaceholderProps) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasRootRef } from "../../types";
|
|
3
|
+
import { AdaptivityContextInterface, AdaptivityProps } from "../AdaptivityProvider/AdaptivityContext";
|
|
4
|
+
import "./PopoutRoot.css";
|
|
5
|
+
export interface PopoutRootProps extends React.HTMLAttributes<HTMLDivElement>, AdaptivityProps, HasRootRef<HTMLDivElement> {
|
|
6
|
+
popout?: React.ReactNode;
|
|
7
|
+
modal?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const PopoutRootComponent: {
|
|
10
|
+
({ popout, modal, viewWidth, viewHeight, hasMouse, children, getRootRef, ...restProps }: PopoutRootProps & AdaptivityContextInterface): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const PopoutRoot: React.FC<Pick<PopoutRootProps & AdaptivityContextInterface, "hidden" | "dir" | "slot" | "style" | "title" | "color" | "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" | "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" | "popout" | "modal" | "getRootRef"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./PopoutWrapper.css";
|
|
3
|
+
export interface PopoutWrapperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
hasMask?: boolean;
|
|
5
|
+
fixed?: boolean;
|
|
6
|
+
alignY?: "top" | "center" | "bottom";
|
|
7
|
+
alignX?: "left" | "center" | "right";
|
|
8
|
+
closing?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @see https://vkcom.github.io/VKUI/#/PopoutWrapper
|
|
12
|
+
*/
|
|
13
|
+
export declare const PopoutWrapper: ({ alignY, alignX, closing, hasMask, fixed, children, onClick, ...restProps }: PopoutWrapperProps) => JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Modifier } from "react-popper";
|
|
3
|
+
import { HasRef } from "../../types";
|
|
4
|
+
import "./Popper.css";
|
|
5
|
+
export declare type Placement = "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | "top" | "bottom" | "left" | "right";
|
|
6
|
+
export interface PopperRenderContentProps {
|
|
7
|
+
className: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PopperCommonProps extends React.HTMLAttributes<HTMLDivElement>, HasRef<HTMLDivElement> {
|
|
10
|
+
/**
|
|
11
|
+
* По умолчанию компонент выберет наилучшее расположение сам. Но его можно задать извне с помощью этого свойства
|
|
12
|
+
*/
|
|
13
|
+
placement?: Placement;
|
|
14
|
+
/**
|
|
15
|
+
* Отступ по вспомогательной оси
|
|
16
|
+
*/
|
|
17
|
+
offsetSkidding?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Отступ по главной оси
|
|
20
|
+
*/
|
|
21
|
+
offsetDistance?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Отображать ли стрелку, указывающую на якорный элемент
|
|
24
|
+
*/
|
|
25
|
+
arrow?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Стиль стрелки
|
|
28
|
+
*/
|
|
29
|
+
arrowClassName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Выставлять ширину равной target элементу
|
|
32
|
+
*/
|
|
33
|
+
sameWidth?: boolean;
|
|
34
|
+
forcePortal?: boolean;
|
|
35
|
+
onPlacementChange?: (data: {
|
|
36
|
+
placement?: Placement;
|
|
37
|
+
}) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Массив кастомных модификаторов для Popper (необходимо мемоизировать)
|
|
40
|
+
*/
|
|
41
|
+
customModifiers?: Array<Modifier<string>>;
|
|
42
|
+
/**
|
|
43
|
+
* При передаче содержимого в `children`, он будет обёрнут во внутренний контейнер.
|
|
44
|
+
*
|
|
45
|
+
* Если хочется управлять этим контейнером, то используйте данную функцию.
|
|
46
|
+
*
|
|
47
|
+
* > ⚠️ Параметр `children` будет проигнорирован.
|
|
48
|
+
*/
|
|
49
|
+
renderContent?(props: PopperRenderContentProps): React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
export interface PopperProps extends PopperCommonProps {
|
|
52
|
+
targetRef: React.RefObject<HTMLElement>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @see https://vkcom.github.io/VKUI/#/Popper
|
|
56
|
+
*/
|
|
57
|
+
export declare const Popper: ({ targetRef, children, getRef, placement, onPlacementChange, arrow, arrowClassName, sameWidth, offsetDistance, offsetSkidding, forcePortal, style: compStyles, customModifiers, renderContent, ...restProps }: PopperProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./PopperArrow.css";
|
|
3
|
+
export interface PopperArrowProps {
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
attributes?: React.HTMLAttributes<HTMLDivElement> | null;
|
|
6
|
+
arrowClassName?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const PopperArrow: ({ style, attributes, arrowClassName, }: PopperArrowProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasRootRef } from "../../types";
|
|
3
|
+
import "./Progress.css";
|
|
4
|
+
export interface ProgressProps extends React.HTMLAttributes<HTMLDivElement>, HasRootRef<HTMLDivElement> {
|
|
5
|
+
value?: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @see https://vkcom.github.io/VKUI/#/Progress
|
|
9
|
+
*/
|
|
10
|
+
export declare const Progress: ({ value, getRootRef, ...restProps }: ProgressProps) => JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./PromoBanner.css";
|
|
3
|
+
declare type StatsType = "playbackStarted" | "click";
|
|
4
|
+
declare type BannerData = {
|
|
5
|
+
title?: string;
|
|
6
|
+
url_types?: string;
|
|
7
|
+
bannerID?: string;
|
|
8
|
+
imageWidth?: number;
|
|
9
|
+
imageHeight?: number;
|
|
10
|
+
imageLink?: string;
|
|
11
|
+
trackingLink?: string;
|
|
12
|
+
type?: string;
|
|
13
|
+
iconWidth?: number;
|
|
14
|
+
domain?: string;
|
|
15
|
+
ctaText?: string;
|
|
16
|
+
advertisingLabel?: string;
|
|
17
|
+
iconLink?: string;
|
|
18
|
+
statistics?: Array<{
|
|
19
|
+
type: StatsType;
|
|
20
|
+
url: string;
|
|
21
|
+
}>;
|
|
22
|
+
openInBrowser?: boolean;
|
|
23
|
+
iconHeight?: number;
|
|
24
|
+
directLink?: boolean;
|
|
25
|
+
navigationType?: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
ageRestrictions?: string;
|
|
28
|
+
/** @deprecated */
|
|
29
|
+
ageRestriction?: number;
|
|
30
|
+
};
|
|
31
|
+
export interface PromoBannerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
/** Данные рекламного баннера, полученные из VKWebAppGetAds */
|
|
33
|
+
bannerData: BannerData;
|
|
34
|
+
/** Флаг скрытия кнопки закрытия рекламы */
|
|
35
|
+
isCloseButtonHidden?: boolean;
|
|
36
|
+
/** Хандлер закрытия рекламы */
|
|
37
|
+
onClose: () => void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @see https://vkcom.github.io/VKUI/#/PromoBanner
|
|
41
|
+
*/
|
|
42
|
+
export declare const PromoBanner: ({ bannerData, onClose, isCloseButtonHidden, ...restProps }: PromoBannerProps) => JSX.Element;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { AnyFunction, HasPlatform } from "../../types";
|
|
3
|
+
import { DOMProps } from "../../lib/dom";
|
|
4
|
+
import { ScrollContextInterface } from "../AppRoot/ScrollContext";
|
|
5
|
+
import { TouchProps } from "../Touch/Touch";
|
|
6
|
+
export interface PullToRefreshProps extends DOMProps, TouchProps, HasPlatform {
|
|
7
|
+
/**
|
|
8
|
+
* Будет вызвана для обновления контента (прим.: функция должна быть мемоизированным коллбэком)
|
|
9
|
+
*/
|
|
10
|
+
onRefresh: AnyFunction;
|
|
11
|
+
/**
|
|
12
|
+
* Определяет, выполняется ли обновление. Для скрытия спиннера после получения контента необходимо передать `false`
|
|
13
|
+
*/
|
|
14
|
+
isFetching?: boolean;
|
|
15
|
+
/** @ignore */
|
|
16
|
+
scroll?: ScrollContextInterface;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @see https://vkcom.github.io/VKUI/#/PullToRefresh
|
|
21
|
+
*/
|
|
22
|
+
export declare const PullToRefresh: ({ children, isFetching, onRefresh, ...restProps }: PullToRefreshProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./PullToRefresh.css";
|
|
3
|
+
export interface PullToRefreshSpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
size?: number;
|
|
5
|
+
strokeWidth?: number;
|
|
6
|
+
on?: boolean;
|
|
7
|
+
progress?: number;
|
|
8
|
+
"aria-label"?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const PullToRefreshSpinner: ({ on, size, strokeWidth, style, progress, "aria-label": ariaLabel, }: PullToRefreshSpinnerProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasRef, HasRootRef } from "../../types";
|
|
3
|
+
import { AdaptivityProps } from "../../hoc/withAdaptivity";
|
|
4
|
+
import "./Radio.css";
|
|
5
|
+
export interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>, HasRef<HTMLInputElement>, HasRootRef<HTMLLabelElement>, AdaptivityProps {
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @see https://vkcom.github.io/VKUI/#/Radio
|
|
10
|
+
*/
|
|
11
|
+
export declare const Radio: React.FC<Pick<RadioProps, "max" | "required" | "disabled" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "pattern" | "color" | "size" | "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" | "getRootRef" | "getRef" | "description"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./RadioGroup.css";
|
|
3
|
+
export interface RadioGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
mode?: "vertical" | "horizontal";
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @see https://vkcom.github.io/VKUI/#/RadioGroup
|
|
8
|
+
*/
|
|
9
|
+
export declare const RadioGroup: ({ mode, children, ...restProps }: RadioGroupProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { UniversalSliderProps } from "./UniversalSlider";
|
|
3
|
+
export declare type Value = [number, number];
|
|
4
|
+
export declare type RangeSliderProps = UniversalSliderProps<Value>;
|
|
5
|
+
/**
|
|
6
|
+
* @see https://vkcom.github.io/VKUI/#/RangeSlider
|
|
7
|
+
*/
|
|
8
|
+
export declare const RangeSlider: ({ onChange, defaultValue, min, max, step, ...props }: RangeSliderProps) => JSX.Element;
|