@vkontakte/vkui 4.37.0 → 4.37.1
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 +5 -5
- 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/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/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/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/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/package.json +2 -2
- package/src/components/AppRoot/ScrollContext.tsx +13 -1
- package/src/components/FixedLayout/FixedLayout.tsx +1 -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
|
@@ -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;
|
|
@@ -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,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;
|
package/dist/cjs/components/SegmentedControl/SegmentedControlOption/SegmentedControlOption.d.ts
ADDED
|
@@ -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;
|