@vkontakte/vkui 4.27.0 → 4.27.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 +153 -152
- package/.cache/ts/src/components/AppearanceProvider/AppearanceProviderContext.d.ts +1 -6
- package/.cache/ts/src/hooks/useAppearance.d.ts +1 -1
- package/.cache/ts/src/tokenized/index.d.ts +2 -0
- package/VKUI_TOKENS_MIGRATION_GUIDE.md +1 -1
- package/dist/cjs/components/ActionSheet/ActionSheetDropdownDesktop.js +5 -1
- package/dist/cjs/components/ActionSheet/ActionSheetDropdownDesktop.js.map +1 -1
- package/dist/cjs/components/AppRoot/AppRoot.js +0 -8
- package/dist/cjs/components/AppRoot/AppRoot.js.map +1 -1
- package/dist/cjs/components/AppRoot/AppRootPortal.js +9 -2
- package/dist/cjs/components/AppRoot/AppRootPortal.js.map +1 -1
- package/dist/cjs/components/AppearanceProvider/AppearanceProvider.js +6 -11
- package/dist/cjs/components/AppearanceProvider/AppearanceProvider.js.map +1 -1
- package/dist/cjs/components/AppearanceProvider/AppearanceProviderContext.d.ts +1 -6
- package/dist/cjs/components/AppearanceProvider/AppearanceProviderContext.js +3 -1
- package/dist/cjs/components/AppearanceProvider/AppearanceProviderContext.js.map +1 -1
- package/dist/cjs/components/HorizontalScroll/HorizontalScroll.js +1 -6
- package/dist/cjs/components/HorizontalScroll/HorizontalScroll.js.map +1 -1
- package/dist/cjs/components/HorizontalScroll/HorizontalScrollArrow.js +1 -6
- package/dist/cjs/components/HorizontalScroll/HorizontalScrollArrow.js.map +1 -1
- package/dist/cjs/hooks/useAppearance.d.ts +1 -1
- package/dist/cjs/hooks/useAppearance.js +2 -2
- package/dist/cjs/hooks/useAppearance.js.map +1 -1
- package/dist/cjs/tokenized/index.d.ts +2 -0
- package/dist/cjs/tokenized/index.js +8 -0
- package/dist/cjs/tokenized/index.js.map +1 -1
- package/dist/components/ActionSheet/ActionSheetDropdownDesktop.js +5 -1
- package/dist/components/ActionSheet/ActionSheetDropdownDesktop.js.map +1 -1
- package/dist/components/AppRoot/AppRoot.js +0 -7
- package/dist/components/AppRoot/AppRoot.js.map +1 -1
- package/dist/components/AppRoot/AppRootPortal.js +7 -2
- package/dist/components/AppRoot/AppRootPortal.js.map +1 -1
- package/dist/components/AppearanceProvider/AppearanceProvider.js +6 -11
- package/dist/components/AppearanceProvider/AppearanceProvider.js.map +1 -1
- package/dist/components/AppearanceProvider/AppearanceProviderContext.d.ts +1 -6
- package/dist/components/AppearanceProvider/AppearanceProviderContext.js +2 -1
- package/dist/components/AppearanceProvider/AppearanceProviderContext.js.map +1 -1
- package/dist/components/HorizontalScroll/HorizontalScroll.js +1 -4
- package/dist/components/HorizontalScroll/HorizontalScroll.js.map +1 -1
- package/dist/components/HorizontalScroll/HorizontalScrollArrow.js +1 -4
- package/dist/components/HorizontalScroll/HorizontalScrollArrow.js.map +1 -1
- package/dist/components.css +8 -3
- package/dist/components.css.map +1 -1
- package/dist/cssm/appearance/constants.d.ts +1 -0
- package/dist/cssm/components/ActionSheet/ActionSheet.d.ts +26 -0
- package/dist/cssm/components/ActionSheet/ActionSheetContext.d.ts +8 -0
- package/dist/cssm/components/ActionSheet/ActionSheetDropdown.d.ts +4 -0
- package/dist/cssm/components/ActionSheet/ActionSheetDropdownDesktop.d.ts +4 -0
- package/dist/cssm/components/ActionSheet/ActionSheetDropdownDesktop.js +5 -1
- package/dist/cssm/components/ActionSheet/ActionSheetDropdownDesktop.js.map +1 -1
- package/dist/cssm/components/ActionSheet/types.d.ts +9 -0
- package/dist/cssm/components/ActionSheetItem/ActionSheetItem.d.ts +20 -0
- package/dist/cssm/components/AdaptivityProvider/AdaptivityContext.d.ts +46 -0
- package/dist/cssm/components/AdaptivityProvider/AdaptivityProvider.d.ts +10 -0
- package/dist/cssm/components/Alert/Alert.d.ts +24 -0
- package/dist/cssm/components/AppRoot/AppRoot.d.ts +14 -0
- package/dist/cssm/components/AppRoot/AppRoot.js +0 -7
- package/dist/cssm/components/AppRoot/AppRoot.js.map +1 -1
- package/dist/cssm/components/AppRoot/AppRootContext.d.ts +9 -0
- package/dist/cssm/components/AppRoot/AppRootPortal.d.ts +5 -0
- package/dist/cssm/components/AppRoot/AppRootPortal.js +7 -2
- package/dist/cssm/components/AppRoot/AppRootPortal.js.map +1 -1
- package/dist/cssm/components/AppRoot/ScrollContext.d.ts +23 -0
- package/dist/cssm/components/AppearanceProvider/AppearanceProvider.d.ts +7 -0
- package/dist/cssm/components/AppearanceProvider/AppearanceProvider.js +6 -11
- package/dist/cssm/components/AppearanceProvider/AppearanceProvider.js.map +1 -1
- package/dist/cssm/components/AppearanceProvider/AppearanceProviderContext.d.ts +3 -0
- package/dist/cssm/components/AppearanceProvider/AppearanceProviderContext.js +2 -1
- package/dist/cssm/components/AppearanceProvider/AppearanceProviderContext.js.map +1 -1
- package/dist/cssm/components/Avatar/Avatar.d.ts +22 -0
- package/dist/cssm/components/Badge/Badge.d.ts +6 -0
- package/dist/cssm/components/Banner/Banner.d.ts +65 -0
- package/dist/cssm/components/Button/Button.d.ts +20 -0
- package/dist/cssm/components/Card/Card.css +1 -1
- package/dist/cssm/components/Card/Card.d.ts +7 -0
- package/dist/cssm/components/CardGrid/CardGrid.d.ts +8 -0
- package/dist/cssm/components/CardScroll/CardScroll.d.ts +12 -0
- package/dist/cssm/components/Cell/Cell.d.ts +47 -0
- package/dist/cssm/components/Cell/CellCheckbox/CellCheckbox.d.ts +5 -0
- package/dist/cssm/components/Cell/CellDragger/CellDragger.d.ts +6 -0
- package/dist/cssm/components/Cell/useDraggable.d.ts +13 -0
- package/dist/cssm/components/CellButton/CellButton.d.ts +9 -0
- package/dist/cssm/components/Checkbox/Checkbox.d.ts +10 -0
- package/dist/cssm/components/Chip/Chip.d.ts +16 -0
- package/dist/cssm/components/ChipsInput/ChipsInput.d.ts +30 -0
- package/dist/cssm/components/ChipsInput/useChipsInput.d.ts +14 -0
- package/dist/cssm/components/ChipsSelect/ChipsSelect.d.ts +41 -0
- package/dist/cssm/components/ChipsSelect/useChipsSelect.d.ts +22 -0
- package/dist/cssm/components/ClickPopper/ClickPopper.d.ts +21 -0
- package/dist/cssm/components/ConfigProvider/ConfigProvider.d.ts +12 -0
- package/dist/cssm/components/ConfigProvider/ConfigProviderContext.d.ts +43 -0
- package/dist/cssm/components/ContentCard/ContentCard.d.ts +34 -0
- package/dist/cssm/components/Counter/Counter.d.ts +11 -0
- package/dist/cssm/components/CustomScrollView/CustomScrollView.d.ts +10 -0
- package/dist/cssm/components/CustomSelect/CustomSelect.d.ts +56 -0
- package/dist/cssm/components/CustomSelectDropdown/CustomSelectDropdown.d.ts +12 -0
- package/dist/cssm/components/CustomSelectOption/CustomSelectOption.css +1 -1
- package/dist/cssm/components/CustomSelectOption/CustomSelectOption.d.ts +15 -0
- package/dist/cssm/components/DatePicker/DatePicker.d.ts +24 -0
- package/dist/cssm/components/Div/Div.d.ts +7 -0
- package/dist/cssm/components/Dropdown/Dropdown.d.ts +8 -0
- package/dist/cssm/components/DropdownIcon/DropdownIcon.d.ts +3 -0
- package/dist/cssm/components/Epic/Epic.d.ts +10 -0
- package/dist/cssm/components/Epic/ScrollSaver.d.ts +6 -0
- package/dist/cssm/components/File/File.d.ts +9 -0
- package/dist/cssm/components/FixedLayout/FixedLayout.d.ts +19 -0
- package/dist/cssm/components/FocusTrap/FocusTrap.d.ts +8 -0
- package/dist/cssm/components/FocusVisible/FocusVisible.d.ts +8 -0
- package/dist/cssm/components/Footer/Footer.d.ts +5 -0
- package/dist/cssm/components/FormField/FormField.d.ts +14 -0
- package/dist/cssm/components/FormItem/FormItem.d.ts +14 -0
- package/dist/cssm/components/FormLayout/FormLayout.d.ts +6 -0
- package/dist/cssm/components/FormLayoutGroup/FormLayoutGroup.d.ts +13 -0
- package/dist/cssm/components/FormStatus/FormStatus.d.ts +7 -0
- package/dist/cssm/components/Gallery/Gallery.d.ts +39 -0
- package/dist/cssm/components/Gradient/Gradient.d.ts +7 -0
- package/dist/cssm/components/GridAvatar/GridAvatar.d.ts +8 -0
- package/dist/cssm/components/Group/Group.d.ts +23 -0
- package/dist/cssm/components/Header/Header.d.ts +18 -0
- package/dist/cssm/components/HorizontalCell/HorizontalCell.d.ts +10 -0
- package/dist/cssm/components/HorizontalScroll/HorizontalScroll.d.ts +19 -0
- package/dist/cssm/components/HorizontalScroll/HorizontalScroll.js +1 -4
- package/dist/cssm/components/HorizontalScroll/HorizontalScroll.js.map +1 -1
- package/dist/cssm/components/HorizontalScroll/HorizontalScrollArrow.css +6 -1
- package/dist/cssm/components/HorizontalScroll/HorizontalScrollArrow.d.ts +8 -0
- package/dist/cssm/components/HorizontalScroll/HorizontalScrollArrow.js +1 -4
- package/dist/cssm/components/HorizontalScroll/HorizontalScrollArrow.js.map +1 -1
- package/dist/cssm/components/HoverPopper/HoverPopper.d.ts +29 -0
- package/dist/cssm/components/IconButton/IconButton.d.ts +11 -0
- package/dist/cssm/components/InfoRow/InfoRow.d.ts +7 -0
- package/dist/cssm/components/InitialsAvatar/InitialsAvatar.d.ts +32 -0
- package/dist/cssm/components/Input/Input.d.ts +9 -0
- package/dist/cssm/components/Link/Link.d.ts +6 -0
- package/dist/cssm/components/List/List.d.ts +4 -0
- package/dist/cssm/components/List/ListContext.d.ts +4 -0
- package/dist/cssm/components/MiniInfoCell/MiniInfoCell.d.ts +39 -0
- package/dist/cssm/components/ModalCard/ModalCard.d.ts +10 -0
- package/dist/cssm/components/ModalCardBase/ModalCardBase.d.ts +32 -0
- package/dist/cssm/components/ModalDismissButton/ModalDismissButton.d.ts +5 -0
- package/dist/cssm/components/ModalPage/ModalPage.d.ts +22 -0
- package/dist/cssm/components/ModalPageHeader/ModalPageHeader.d.ts +8 -0
- package/dist/cssm/components/ModalRoot/ModalRoot.d.ts +16 -0
- package/dist/cssm/components/ModalRoot/ModalRootAdaptive.d.ts +10 -0
- package/dist/cssm/components/ModalRoot/ModalRootContext.d.ts +20 -0
- package/dist/cssm/components/ModalRoot/ModalRootDesktop.d.ts +16 -0
- package/dist/cssm/components/ModalRoot/constants.d.ts +3 -0
- package/dist/cssm/components/ModalRoot/types.d.ts +45 -0
- package/dist/cssm/components/ModalRoot/useModalManager.d.ts +37 -0
- package/dist/cssm/components/ModalRoot/withModalRootContext.d.ts +5 -0
- package/dist/cssm/components/NativeSelect/NativeSelect.d.ts +15 -0
- package/dist/cssm/components/NavTransitionContext/NavTransitionContext.d.ts +7 -0
- package/dist/cssm/components/Panel/Panel.d.ts +9 -0
- package/dist/cssm/components/PanelHeader/PanelHeader.d.ts +21 -0
- package/dist/cssm/components/PanelHeaderBack/PanelHeaderBack.d.ts +9 -0
- package/dist/cssm/components/PanelHeaderButton/PanelHeaderButton.d.ts +8 -0
- package/dist/cssm/components/PanelHeaderClose/PanelHeaderClose.d.ts +4 -0
- package/dist/cssm/components/PanelHeaderContent/PanelHeaderContent.d.ts +9 -0
- package/dist/cssm/components/PanelHeaderContext/PanelHeaderContext.d.ts +7 -0
- package/dist/cssm/components/PanelHeaderEdit/PanelHeaderEdit.d.ts +18 -0
- package/dist/cssm/components/PanelHeaderSubmit/PanelHeaderSubmit.d.ts +4 -0
- package/dist/cssm/components/PanelSpinner/PanelSpinner.d.ts +7 -0
- package/dist/cssm/components/Placeholder/Placeholder.d.ts +23 -0
- package/dist/cssm/components/PopoutRoot/PopoutRoot.d.ts +10 -0
- package/dist/cssm/components/PopoutWrapper/PopoutWrapper.d.ts +10 -0
- package/dist/cssm/components/Popper/Popper.d.ts +32 -0
- package/dist/cssm/components/Progress/Progress.d.ts +8 -0
- package/dist/cssm/components/PromoBanner/PromoBanner.d.ts +40 -0
- package/dist/cssm/components/PullToRefresh/PullToRefresh.d.ts +37 -0
- package/dist/cssm/components/PullToRefresh/PullToRefreshSpinner.d.ts +11 -0
- package/dist/cssm/components/Radio/Radio.d.ts +9 -0
- package/dist/cssm/components/RadioGroup/RadioGroup.d.ts +6 -0
- package/dist/cssm/components/RangeSlider/RangeSlider.d.ts +6 -0
- package/dist/cssm/components/RangeSlider/UniversalSlider.d.ts +16 -0
- package/dist/cssm/components/Removable/Removable.d.ts +21 -0
- package/dist/cssm/components/RichCell/RichCell.d.ts +36 -0
- package/dist/cssm/components/RichTooltip/RichTooltip.d.ts +5 -0
- package/dist/cssm/components/Root/Root.d.ts +31 -0
- package/dist/cssm/components/ScreenSpinner/ScreenSpinner.d.ts +6 -0
- package/dist/cssm/components/Search/Search.d.ts +17 -0
- package/dist/cssm/components/SegmentedControl/SegmentedControl.d.ts +17 -0
- package/dist/cssm/components/SegmentedControl/SegmentedControlOption/SegmentedControlOption.d.ts +4 -0
- package/dist/cssm/components/Select/Select.d.ts +7 -0
- package/dist/cssm/components/SelectMimicry/SelectMimicry.d.ts +10 -0
- package/dist/cssm/components/Separator/Separator.d.ts +11 -0
- package/dist/cssm/components/SimpleCell/SimpleCell.d.ts +39 -0
- package/dist/cssm/components/SimpleCheckbox/SimpleCheckbox.d.ts +9 -0
- package/dist/cssm/components/Slider/Slider.d.ts +5 -0
- package/dist/cssm/components/SliderSwitch/SliderSwitch.d.ts +47 -0
- package/dist/cssm/components/SliderSwitch/SliderSwitchButton.d.ts +11 -0
- package/dist/cssm/components/Snackbar/Snackbar.d.ts +35 -0
- package/dist/cssm/components/Spacing/Spacing.d.ts +18 -0
- package/dist/cssm/components/Spinner/Spinner.d.ts +7 -0
- package/dist/cssm/components/SplitCol/SplitCol.d.ts +22 -0
- package/dist/cssm/components/SplitLayout/SplitLayout.d.ts +15 -0
- package/dist/cssm/components/SubnavigationBar/SubnavigationBar.d.ts +7 -0
- package/dist/cssm/components/SubnavigationButton/SubnavigationButton.d.ts +21 -0
- package/dist/cssm/components/Switch/Switch.d.ts +7 -0
- package/dist/cssm/components/Tabbar/Tabbar.d.ts +11 -0
- package/dist/cssm/components/TabbarItem/TabbarItem.d.ts +21 -0
- package/dist/cssm/components/Tabs/Tabs.d.ts +10 -0
- package/dist/cssm/components/TabsItem/TabsItem.d.ts +8 -0
- package/dist/cssm/components/Tappable/Tappable.d.ts +40 -0
- package/dist/cssm/components/TextTooltip/TextTooltip.d.ts +14 -0
- package/dist/cssm/components/Textarea/Textarea.d.ts +11 -0
- package/dist/cssm/components/Tooltip/Tooltip.d.ts +55 -0
- package/dist/cssm/components/Tooltip/TooltipContainer.d.ts +5 -0
- package/dist/cssm/components/Touch/Touch.d.ts +49 -0
- package/dist/cssm/components/Touch/TouchContext.d.ts +7 -0
- package/dist/cssm/components/Typography/Caption/Caption.d.ts +10 -0
- package/dist/cssm/components/Typography/Headline/Headline.d.ts +8 -0
- package/dist/cssm/components/Typography/Subhead/Subhead.d.ts +8 -0
- package/dist/cssm/components/Typography/Text/Text.d.ts +8 -0
- package/dist/cssm/components/Typography/Title/Title.d.ts +12 -0
- package/dist/cssm/components/UsersStack/UsersStack.d.ts +23 -0
- package/dist/cssm/components/UsersStack/masks.d.ts +1 -0
- package/dist/cssm/components/View/View.d.ts +80 -0
- package/dist/cssm/components/View/ViewInfinite.d.ts +66 -0
- package/dist/cssm/components/View/utils.d.ts +2 -0
- package/dist/cssm/components/VisuallyHiddenInput/VisuallyHiddenInput.d.ts +12 -0
- package/dist/cssm/components/WriteBar/WriteBar.d.ts +23 -0
- package/dist/cssm/components/WriteBarIcon/WriteBarIcon.d.ts +18 -0
- package/dist/cssm/helpers/avatar.d.ts +5 -0
- package/dist/cssm/helpers/getClassName.d.ts +2 -0
- package/dist/cssm/helpers/getScheme.d.ts +8 -0
- package/dist/cssm/helpers/math.d.ts +5 -0
- package/dist/cssm/helpers/scheme.d.ts +34 -0
- package/dist/cssm/hoc/withAdaptivity.d.ts +13 -0
- package/dist/cssm/hoc/withContext.d.ts +2 -0
- package/dist/cssm/hoc/withInsets.d.ts +3 -0
- package/dist/cssm/hoc/withPlatform.d.ts +3 -0
- package/dist/cssm/hooks/useAdaptivity.d.ts +3 -0
- package/dist/cssm/hooks/useAppearance.d.ts +1 -0
- package/dist/cssm/hooks/useAppearance.js +2 -2
- package/dist/cssm/hooks/useAppearance.js.map +1 -1
- package/dist/cssm/hooks/useBrowserInfo.d.ts +2 -0
- package/dist/cssm/hooks/useEffectDev.d.ts +2 -0
- package/dist/cssm/hooks/useEnsuredControl.d.ts +6 -0
- package/dist/cssm/hooks/useEventListener.d.ts +7 -0
- package/dist/cssm/hooks/useExternRef.d.ts +2 -0
- package/dist/cssm/hooks/useFocusVisible.d.ts +6 -0
- package/dist/cssm/hooks/useGlobalEventListener.d.ts +2 -0
- package/dist/cssm/hooks/useInsets.d.ts +8 -0
- package/dist/cssm/hooks/useKeyboard.d.ts +11 -0
- package/dist/cssm/hooks/useKeyboardInputTracker.d.ts +1 -0
- package/dist/cssm/hooks/useObjectMemo.d.ts +2 -0
- package/dist/cssm/hooks/usePatchChildrenRef.d.ts +6 -0
- package/dist/cssm/hooks/usePlatform.d.ts +2 -0
- package/dist/cssm/hooks/useTimeout.d.ts +4 -0
- package/dist/cssm/hooks/useWaitTransitionFinish.d.ts +3 -0
- package/dist/cssm/index.d.ts +279 -0
- package/dist/cssm/lib/SSR.d.ts +14 -0
- package/dist/cssm/lib/accessibility.d.ts +10 -0
- package/dist/cssm/lib/animate.d.ts +15 -0
- package/dist/cssm/lib/browser.d.ts +11 -0
- package/dist/cssm/lib/callMultiple.d.ts +1 -0
- package/dist/cssm/lib/classNames.d.ts +6 -0
- package/dist/cssm/lib/classScopingMode.d.ts +8 -0
- package/dist/cssm/lib/dom.d.ts +21 -0
- package/dist/cssm/lib/fx.d.ts +5 -0
- package/dist/cssm/lib/getNavId.d.ts +6 -0
- package/dist/cssm/lib/is.d.ts +1 -0
- package/dist/cssm/lib/isRefObject.d.ts +2 -0
- package/dist/cssm/lib/jsxRuntime.d.ts +8 -0
- package/dist/cssm/lib/offset.d.ts +7 -0
- package/dist/cssm/lib/platform.d.ts +19 -0
- package/dist/cssm/lib/polyfills.d.ts +6 -0
- package/dist/cssm/lib/prefixClass.d.ts +1 -0
- package/dist/cssm/lib/removeObjectKeys.d.ts +1 -0
- package/dist/cssm/lib/select.d.ts +7 -0
- package/dist/cssm/lib/styles.d.ts +1 -0
- package/dist/cssm/lib/supportEvents.d.ts +9 -0
- package/dist/cssm/lib/taptic.d.ts +2 -0
- package/dist/cssm/lib/testing.d.ts +1 -0
- package/dist/cssm/lib/touch.d.ts +9 -0
- package/dist/cssm/lib/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/cssm/lib/utils.d.ts +15 -0
- package/dist/cssm/lib/warnOnce.d.ts +1 -0
- package/dist/cssm/styles/components.css +8 -3
- package/dist/cssm/styles/themes.css +1 -1
- package/dist/cssm/tokenized/index.d.ts +10 -0
- package/dist/cssm/tokenized/index.js +1 -0
- package/dist/cssm/tokenized/index.js.map +1 -1
- package/dist/cssm/types.d.ts +34 -0
- package/dist/cssm/unstable/index.d.ts +17 -0
- package/dist/hooks/useAppearance.d.ts +1 -1
- package/dist/hooks/useAppearance.js +2 -2
- package/dist/hooks/useAppearance.js.map +1 -1
- package/dist/tokenized/index.d.ts +2 -0
- package/dist/tokenized/index.js +1 -0
- package/dist/tokenized/index.js.map +1 -1
- package/dist/vkui.css +9 -4
- package/dist/vkui.css.map +1 -1
- package/package.json +4 -3
- package/src/components/ActionSheet/ActionSheetDropdownDesktop.tsx +4 -0
- package/src/components/AppRoot/AppRoot.tsx +0 -6
- package/src/components/AppRoot/AppRootPortal.tsx +9 -1
- package/src/components/AppearanceProvider/AppearanceProvider.tsx +6 -13
- package/src/components/AppearanceProvider/AppearanceProviderContext.tsx +4 -9
- package/src/components/CustomSelectOption/CustomSelectOption.css +1 -0
- package/src/components/HorizontalScroll/HorizontalScroll.tsx +1 -5
- package/src/components/HorizontalScroll/HorizontalScrollArrow.css +12 -5
- package/src/components/HorizontalScroll/HorizontalScrollArrow.tsx +1 -5
- package/src/hooks/useAppearance.ts +2 -3
- package/src/tokenized/index.ts +3 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { TouchProps } from "../Touch/Touch";
|
|
3
|
+
import { HasComponent, HasRootRef } from "../../types";
|
|
4
|
+
import { AdaptivityProps } from "../../hoc/withAdaptivity";
|
|
5
|
+
import { FocusVisibleMode } from "../FocusVisible/FocusVisible";
|
|
6
|
+
import "./Tappable.css";
|
|
7
|
+
export interface TappableProps extends Omit<React.AllHTMLAttributes<HTMLElement>, "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onMouseDown" | "onMouseMove" | "onMouseUp" | "onMouseLeave">, HasRootRef<HTMLElement>, AdaptivityProps, HasComponent, Pick<TouchProps, "onStart" | "onEnd" | "onMove"> {
|
|
8
|
+
/**
|
|
9
|
+
* Длительность показа active-состояния
|
|
10
|
+
*/
|
|
11
|
+
activeEffectDelay?: number;
|
|
12
|
+
stopPropagation?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Указывает, должен ли компонент реагировать на hover-состояние
|
|
15
|
+
*/
|
|
16
|
+
hasHover?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Указывает, должен ли компонент реагировать на active-состояние
|
|
19
|
+
*/
|
|
20
|
+
hasActive?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Стиль подсветки active-состояния. Если передать произвольную строку, она добавится как css-класс во время active
|
|
23
|
+
*/
|
|
24
|
+
activeMode?: "opacity" | "background" | string;
|
|
25
|
+
/**
|
|
26
|
+
* Стиль подсветки hover-состояния. Если передать произвольную строку, она добавится как css-класс во время hover
|
|
27
|
+
*/
|
|
28
|
+
hoverMode?: "opacity" | "background" | string;
|
|
29
|
+
/**
|
|
30
|
+
* Стиль аутлайна focus visible. Если передать произвольную строку, она добавится как css-класс во время focus-visible
|
|
31
|
+
*/
|
|
32
|
+
focusVisibleMode?: FocusVisibleMode | string;
|
|
33
|
+
}
|
|
34
|
+
export interface RootComponentProps extends TouchProps {
|
|
35
|
+
ref?: React.Ref<HTMLElement>;
|
|
36
|
+
}
|
|
37
|
+
export declare const ACTIVE_DELAY = 70;
|
|
38
|
+
export declare const ACTIVE_EFFECT_DELAY = 600;
|
|
39
|
+
declare const _default: React.FC<Pick<TappableProps, "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" | "onEnd" | "Component" | "getRootRef" | "stopPropagation" | "activeEffectDelay" | "hasHover" | "hoverMode" | "hasActive" | "activeMode" | "focusVisibleMode"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HoverPopperProps } from "../HoverPopper/HoverPopper";
|
|
3
|
+
import "./TextTooltip.css";
|
|
4
|
+
export interface TextTooltipProps extends Omit<HoverPopperProps, "arrow" | "arrowClassName" | "content"> {
|
|
5
|
+
/**
|
|
6
|
+
* Текст тултипа
|
|
7
|
+
*/
|
|
8
|
+
text?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Заголовок тултипа
|
|
11
|
+
*/
|
|
12
|
+
header?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const TextTooltip: React.FC<TextTooltipProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasRef, HasRootRef } from "../../types";
|
|
3
|
+
import { AdaptivityProps } from "../../hoc/withAdaptivity";
|
|
4
|
+
import "./Textarea.css";
|
|
5
|
+
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, HasRef<HTMLTextAreaElement>, HasRootRef<HTMLElement>, AdaptivityProps {
|
|
6
|
+
grow?: boolean;
|
|
7
|
+
onResize?(el: HTMLTextAreaElement): void;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.FC<Pick<TextareaProps, "required" | "disabled" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "color" | "wrap" | "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" | "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" | "maxLength" | "minLength" | "readOnly" | "cols" | "dirName" | "rows" | "getRootRef" | "getRef" | "grow" | "onResize"> & import("../AdaptivityProvider/AdaptivityContext").SizeProps>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./Tooltip.css";
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
/**
|
|
5
|
+
* **Важно**: если в `children` передан React-компонент, то необходимо убедиться в том, что он поддерживает
|
|
6
|
+
* свойство `getRootRef`, которое должно возвращаться ссылку на корневой DOM-элемент компонента,
|
|
7
|
+
* иначе тултип показан не будет. Если передан React-element, то такой проблемы нет.
|
|
8
|
+
*/
|
|
9
|
+
children: React.ReactElement;
|
|
10
|
+
mode?: "accent" | "light";
|
|
11
|
+
/**
|
|
12
|
+
* Если передан `false`, то рисуется просто `children`.
|
|
13
|
+
*/
|
|
14
|
+
isShown?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Текст тултипа.
|
|
17
|
+
*/
|
|
18
|
+
text?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Заголовок тултипа.
|
|
21
|
+
*/
|
|
22
|
+
header?: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Положение по горизонтали (прижатие к левому или правому краю `children`).
|
|
25
|
+
* Если не задано, позиция по горизонтали определятся автоматически
|
|
26
|
+
*/
|
|
27
|
+
alignX?: "center" | "left" | "right";
|
|
28
|
+
/**
|
|
29
|
+
* Положение по вертикали (расположение над или под `children`).
|
|
30
|
+
* Если не задано, позиция по вертикали определятся автоматически
|
|
31
|
+
*/
|
|
32
|
+
alignY?: "top" | "bottom";
|
|
33
|
+
/**
|
|
34
|
+
* Сдвиг по горизонтали (относительно портала, в котором рисуется тултип).
|
|
35
|
+
*/
|
|
36
|
+
offsetX?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Сдвиг по вертикали (относительно портала, в котором рисуется тултип).
|
|
39
|
+
*/
|
|
40
|
+
offsetY?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Сдвиг стрелочки относительно центра дочернего элемента.
|
|
43
|
+
*/
|
|
44
|
+
cornerOffset?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Сдвиг стрелочки относительно ширины тултипа
|
|
47
|
+
*/
|
|
48
|
+
cornerAbsoluteOffset?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Callback, который вызывается при клике по любому месту в пределах экрана.
|
|
51
|
+
*/
|
|
52
|
+
onClose?: () => void;
|
|
53
|
+
}
|
|
54
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
|
55
|
+
export default Tooltip;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const tooltipContainerAttr = "data-tooltip-container";
|
|
3
|
+
export declare const TooltipContainer: React.ForwardRefExoticComponent<React.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
fixed?: boolean | undefined;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { VKUITouchEvent } from "../../lib/touch";
|
|
3
|
+
import { HasComponent, HasRootRef } from "../../types";
|
|
4
|
+
export interface TouchProps extends React.AllHTMLAttributes<HTMLElement>, HasRootRef<HTMLElement>, HasComponent {
|
|
5
|
+
/**
|
|
6
|
+
* Привязать onEnter и onLeave через pointer-events - работает на disabled-инпутах
|
|
7
|
+
*/
|
|
8
|
+
usePointerHover?: boolean;
|
|
9
|
+
useCapture?: boolean;
|
|
10
|
+
slideThreshold?: number;
|
|
11
|
+
noSlideClick?: boolean;
|
|
12
|
+
onEnter?: HoverHandler;
|
|
13
|
+
onLeave?: HoverHandler;
|
|
14
|
+
onStart?: TouchEventHandler;
|
|
15
|
+
onStartX?: TouchEventHandler;
|
|
16
|
+
onStartY?: TouchEventHandler;
|
|
17
|
+
onMove?: TouchEventHandler;
|
|
18
|
+
onMoveX?: TouchEventHandler;
|
|
19
|
+
onMoveY?: TouchEventHandler;
|
|
20
|
+
onEnd?: TouchEventHandler;
|
|
21
|
+
onEndX?: TouchEventHandler;
|
|
22
|
+
onEndY?: TouchEventHandler;
|
|
23
|
+
stopPropagation?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface Gesture {
|
|
26
|
+
startX: number;
|
|
27
|
+
startY: number;
|
|
28
|
+
startT: Date;
|
|
29
|
+
duration: number;
|
|
30
|
+
isPressed: boolean;
|
|
31
|
+
isY: boolean;
|
|
32
|
+
isX: boolean;
|
|
33
|
+
isSlideX: boolean;
|
|
34
|
+
isSlideY: boolean;
|
|
35
|
+
isSlide: boolean;
|
|
36
|
+
shiftX: number;
|
|
37
|
+
shiftY: number;
|
|
38
|
+
shiftXAbs: number;
|
|
39
|
+
shiftYAbs: number;
|
|
40
|
+
}
|
|
41
|
+
export interface TouchEvent extends Gesture {
|
|
42
|
+
originalEvent: VKUITouchEvent;
|
|
43
|
+
}
|
|
44
|
+
declare type HoverHandler = (outputEvent: MouseEvent) => void;
|
|
45
|
+
export declare type TouchEventHandler = (e: TouchEvent) => void;
|
|
46
|
+
export declare type ClickHandler = (e: React.MouseEvent<HTMLElement>) => void;
|
|
47
|
+
export declare type DragHandler = (e: React.DragEvent<HTMLElement>) => void;
|
|
48
|
+
export declare const Touch: React.FC<TouchProps>;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Контекст для компонентов, использующих Touch в качестве корневой обёртки,
|
|
4
|
+
* и для которых важно не предотвращать вспылие тач-событий от дочерних компонентов
|
|
5
|
+
*/
|
|
6
|
+
declare const TouchRootContext: React.Context<boolean>;
|
|
7
|
+
export default TouchRootContext;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasComponent } from "../../../types";
|
|
3
|
+
import "./Caption.css";
|
|
4
|
+
export interface CaptionProps extends React.AllHTMLAttributes<HTMLElement>, HasComponent {
|
|
5
|
+
weight: "regular" | "medium" | "semibold" | "bold";
|
|
6
|
+
level: "1" | "2" | "3" | "4";
|
|
7
|
+
caps?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const Caption: React.FC<CaptionProps>;
|
|
10
|
+
export default Caption;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasComponent } from "../../../types";
|
|
3
|
+
import "./Headline.css";
|
|
4
|
+
export interface HeadlineProps extends React.AllHTMLAttributes<HTMLElement>, HasComponent {
|
|
5
|
+
weight: "regular" | "medium" | "semibold";
|
|
6
|
+
}
|
|
7
|
+
declare const Headline: React.FC<HeadlineProps>;
|
|
8
|
+
export default Headline;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasComponent } from "../../../types";
|
|
3
|
+
import "./Subhead.css";
|
|
4
|
+
export interface SubheadProps extends React.AllHTMLAttributes<HTMLElement>, HasComponent {
|
|
5
|
+
weight: "regular" | "medium" | "semibold" | "bold";
|
|
6
|
+
}
|
|
7
|
+
declare const Subhead: React.FC<SubheadProps>;
|
|
8
|
+
export default Subhead;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasComponent, HasRootRef } from "../../../types";
|
|
3
|
+
import "./Text.css";
|
|
4
|
+
export interface TextProps extends React.AllHTMLAttributes<HTMLElement>, HasRootRef<HTMLElement>, HasComponent {
|
|
5
|
+
weight: "regular" | "medium" | "semibold";
|
|
6
|
+
}
|
|
7
|
+
declare const Text: React.FC<TextProps>;
|
|
8
|
+
export default Text;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasComponent } from "../../../types";
|
|
3
|
+
import "./Title.css";
|
|
4
|
+
export interface TitleProps extends React.AllHTMLAttributes<HTMLElement>, HasComponent {
|
|
5
|
+
/**
|
|
6
|
+
* Начертания "heavy", "bold", "semibold", "medium" и "regular" устарели и будут удалены в 5.0.0.
|
|
7
|
+
*/
|
|
8
|
+
weight?: "heavy" | "bold" | "semibold" | "medium" | "regular" | "1" | "2" | "3";
|
|
9
|
+
level: "1" | "2" | "3";
|
|
10
|
+
}
|
|
11
|
+
declare const Title: React.FC<TitleProps>;
|
|
12
|
+
export default Title;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./UsersStack.css";
|
|
3
|
+
export interface UsersStackProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Массив ссылок на фотографии
|
|
6
|
+
*/
|
|
7
|
+
photos?: string[];
|
|
8
|
+
/**
|
|
9
|
+
* Размер аватарок
|
|
10
|
+
*/
|
|
11
|
+
size?: "xs" | "s" | "m";
|
|
12
|
+
/**
|
|
13
|
+
* Вертикальный режим рекомендуется использовать с размером `m`
|
|
14
|
+
*/
|
|
15
|
+
layout?: "vertical" | "horizontal";
|
|
16
|
+
/**
|
|
17
|
+
* Количество аватарок, которые будут показаны.
|
|
18
|
+
* Если в массиве `photos` больше элементов и используется размер `m`, то будет показано количество остальных элементов
|
|
19
|
+
*/
|
|
20
|
+
visibleCount?: number;
|
|
21
|
+
}
|
|
22
|
+
declare const _default: React.NamedExoticComponent<UsersStackProps>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createMasks(document?: Document): void;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasPlatform } from "../../types";
|
|
3
|
+
import { ConfigProviderContextInterface } from "../ConfigProvider/ConfigProviderContext";
|
|
4
|
+
import { SplitColContextProps } from "../SplitCol/SplitCol";
|
|
5
|
+
import { ScrollContextInterface } from "../AppRoot/ScrollContext";
|
|
6
|
+
import { NavIdProps } from "../../lib/getNavId";
|
|
7
|
+
import "./View.css";
|
|
8
|
+
declare enum SwipeBackResults {
|
|
9
|
+
fail = 1,
|
|
10
|
+
success = 2
|
|
11
|
+
}
|
|
12
|
+
interface Scrolls {
|
|
13
|
+
[index: string]: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
interface ViewsScrolls {
|
|
16
|
+
[index: string]: Scrolls;
|
|
17
|
+
}
|
|
18
|
+
export declare let scrollsCache: ViewsScrolls;
|
|
19
|
+
export interface ViewProps extends React.HTMLAttributes<HTMLElement>, HasPlatform, NavIdProps {
|
|
20
|
+
activePanel: string;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated будет удалено в 5.0.0. Используйте одноименное свойство у `SplitLayout`.
|
|
23
|
+
*
|
|
24
|
+
* Свойство для отрисовки `Alert`, `ActionSheet` и `ScreenSpinner`.
|
|
25
|
+
*/
|
|
26
|
+
popout?: React.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated будет удалено в 5.0.0. Используйте одноименное свойство у `SplitLayout`.
|
|
29
|
+
*
|
|
30
|
+
* Свойство для отрисовки `ModalRoot`.
|
|
31
|
+
*/
|
|
32
|
+
modal?: React.ReactNode;
|
|
33
|
+
onTransition?(params: {
|
|
34
|
+
isBack: boolean;
|
|
35
|
+
from: string;
|
|
36
|
+
to: string;
|
|
37
|
+
}): void;
|
|
38
|
+
/**
|
|
39
|
+
* callback свайпа назад
|
|
40
|
+
*/
|
|
41
|
+
onSwipeBack?(): void;
|
|
42
|
+
/**
|
|
43
|
+
* callback начала анимации свайпа назад.
|
|
44
|
+
*/
|
|
45
|
+
onSwipeBackStart?(): void;
|
|
46
|
+
/**
|
|
47
|
+
* callback завершения анимации отмененного пользователем свайпа
|
|
48
|
+
*/
|
|
49
|
+
onSwipeBackCancel?(): void;
|
|
50
|
+
history?: string[];
|
|
51
|
+
/**
|
|
52
|
+
* @ignore
|
|
53
|
+
*/
|
|
54
|
+
splitCol?: SplitColContextProps;
|
|
55
|
+
/**
|
|
56
|
+
* @ignore
|
|
57
|
+
*/
|
|
58
|
+
configProvider?: ConfigProviderContextInterface;
|
|
59
|
+
/**
|
|
60
|
+
* @ignore
|
|
61
|
+
*/
|
|
62
|
+
scroll?: ScrollContextInterface;
|
|
63
|
+
}
|
|
64
|
+
export interface ViewState {
|
|
65
|
+
animated: boolean;
|
|
66
|
+
visiblePanels: string[];
|
|
67
|
+
activePanel: string | null;
|
|
68
|
+
isBack: boolean | undefined;
|
|
69
|
+
prevPanel: string | null;
|
|
70
|
+
nextPanel: string | null;
|
|
71
|
+
swipingBack: boolean;
|
|
72
|
+
swipebackStartX: number;
|
|
73
|
+
swipeBackShift: number;
|
|
74
|
+
swipeBackNextPanel: string | null;
|
|
75
|
+
swipeBackPrevPanel: string | null;
|
|
76
|
+
swipeBackResult: SwipeBackResults | null;
|
|
77
|
+
browserSwipe: boolean;
|
|
78
|
+
}
|
|
79
|
+
declare const _default: React.FC<Pick<ViewProps, "hidden" | "dir" | "nav" | "slot" | "style" | "title" | "scroll" | "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" | "onTransition" | "activePanel" | "onSwipeBack" | "onSwipeBackStart" | "onSwipeBackCancel" | "history" | "splitCol" | "configProvider">>;
|
|
80
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasPlatform } from "../../types";
|
|
3
|
+
import { ConfigProviderContextInterface } from "../ConfigProvider/ConfigProviderContext";
|
|
4
|
+
import { SplitColContextProps } from "../SplitCol/SplitCol";
|
|
5
|
+
import { ScrollContextInterface } from "../AppRoot/ScrollContext";
|
|
6
|
+
import { NavIdProps } from "../../lib/getNavId";
|
|
7
|
+
import "./View.css";
|
|
8
|
+
declare enum SwipeBackResults {
|
|
9
|
+
fail = 1,
|
|
10
|
+
success = 2
|
|
11
|
+
}
|
|
12
|
+
export declare type TransitionParams = {
|
|
13
|
+
from: string | null;
|
|
14
|
+
to: string | null;
|
|
15
|
+
};
|
|
16
|
+
export interface ViewInfiniteProps extends React.HTMLAttributes<HTMLElement>, HasPlatform, NavIdProps {
|
|
17
|
+
activePanel: string;
|
|
18
|
+
popout?: React.ReactNode;
|
|
19
|
+
modal?: React.ReactNode;
|
|
20
|
+
onTransition?(params: TransitionParams & {
|
|
21
|
+
isBack: boolean;
|
|
22
|
+
}): void;
|
|
23
|
+
/**
|
|
24
|
+
* callback свайпа назад
|
|
25
|
+
*/
|
|
26
|
+
onSwipeBack?(): void;
|
|
27
|
+
/**
|
|
28
|
+
* callback начала анимации свайпа назад.
|
|
29
|
+
*/
|
|
30
|
+
onSwipeBackStart?(): void;
|
|
31
|
+
/**
|
|
32
|
+
* callback завершения анимации отмененного пользователем свайпа
|
|
33
|
+
*/
|
|
34
|
+
onSwipeBackCancel?(): void;
|
|
35
|
+
history?: string[];
|
|
36
|
+
isBackCheck?(params: TransitionParams): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @ignore
|
|
39
|
+
*/
|
|
40
|
+
splitCol?: SplitColContextProps;
|
|
41
|
+
/**
|
|
42
|
+
* @ignore
|
|
43
|
+
*/
|
|
44
|
+
configProvider?: ConfigProviderContextInterface;
|
|
45
|
+
/**
|
|
46
|
+
* @ignore
|
|
47
|
+
*/
|
|
48
|
+
scroll?: ScrollContextInterface;
|
|
49
|
+
}
|
|
50
|
+
export interface ViewInfiniteState {
|
|
51
|
+
animated: boolean;
|
|
52
|
+
visiblePanels: Array<string | null>;
|
|
53
|
+
activePanel: string | null;
|
|
54
|
+
isBack?: boolean;
|
|
55
|
+
prevPanel: string | null;
|
|
56
|
+
nextPanel: string | null;
|
|
57
|
+
swipingBack: boolean;
|
|
58
|
+
swipebackStartX: number;
|
|
59
|
+
swipeBackShift: number;
|
|
60
|
+
swipeBackNextPanel: string | null;
|
|
61
|
+
swipeBackPrevPanel: string | null;
|
|
62
|
+
swipeBackResult: SwipeBackResults | null;
|
|
63
|
+
browserSwipe: boolean;
|
|
64
|
+
}
|
|
65
|
+
declare const _default: React.FC<Pick<ViewInfiniteProps, "hidden" | "dir" | "nav" | "slot" | "style" | "title" | "scroll" | "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" | "onTransition" | "activePanel" | "onSwipeBack" | "onSwipeBackStart" | "onSwipeBackCancel" | "history" | "splitCol" | "configProvider" | "isBackCheck">>;
|
|
66
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasRef } from "../../types";
|
|
3
|
+
import "./VisuallyHiddenInput.css";
|
|
4
|
+
export interface VisuallyHiddenInputProps extends React.InputHTMLAttributes<HTMLInputElement>, HasRef<HTMLInputElement> {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @description
|
|
8
|
+
* Обертка над обычным `<input/>`; дает
|
|
9
|
+
* скрыть его визуально и оставить
|
|
10
|
+
* доступным для ассистивных технологий.
|
|
11
|
+
*/
|
|
12
|
+
export declare const VisuallyHiddenInput: React.FC<VisuallyHiddenInputProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HasRef, HasRootRef } from "../../types";
|
|
3
|
+
import "./WriteBar.css";
|
|
4
|
+
export interface WriteBarProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, HasRootRef<HTMLDivElement>, HasRef<HTMLTextAreaElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Содержимое, отображаемое слева от поля ввода.
|
|
7
|
+
*/
|
|
8
|
+
before?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Содержимое, отображаемое поверх поля ввода (актуально для iOS)
|
|
11
|
+
*/
|
|
12
|
+
inlineAfter?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Содержимое, отображаемое справа от поля ввода
|
|
15
|
+
*/
|
|
16
|
+
after?: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Вызывается при смене высоты поля ввода
|
|
19
|
+
*/
|
|
20
|
+
onHeightChange?: VoidFunction;
|
|
21
|
+
children?: never;
|
|
22
|
+
}
|
|
23
|
+
export declare const WriteBar: React.FC<WriteBarProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./WriteBarIcon.css";
|
|
3
|
+
export interface WriteBarIconProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Предустановленные типы кнопок в WriteBar для отрисовки иконки в зависимости от платформы.
|
|
6
|
+
* Если передать валидное значение для этого свойства, `children` игнорируется.
|
|
7
|
+
*
|
|
8
|
+
* - `attach` – иконка прикрепления.
|
|
9
|
+
* - `send` – иконка отправки.
|
|
10
|
+
* - `done` – иконка отправки в режиме редактирования.
|
|
11
|
+
*/
|
|
12
|
+
mode?: "attach" | "send" | "done";
|
|
13
|
+
/**
|
|
14
|
+
* Значение счётчика для кнопки. Например, для количества прикреплённых файлов.
|
|
15
|
+
*/
|
|
16
|
+
count?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare const WriteBarIcon: React.FC<WriteBarIconProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InitialsAvatarNumberGradients } from "../components/InitialsAvatar/InitialsAvatar";
|
|
2
|
+
/**
|
|
3
|
+
* Вычисляет цвет InitialsAvatar на основании переданного идентификатора объекта
|
|
4
|
+
*/
|
|
5
|
+
export declare function calcInitialsAvatarColor(objectId: number): InitialsAvatarNumberGradients;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AppearanceType } from "@vkontakte/vk-bridge";
|
|
2
|
+
import { PlatformType } from "../lib/platform";
|
|
3
|
+
import { Scheme } from "./scheme";
|
|
4
|
+
export interface GetSchemeProps {
|
|
5
|
+
platform?: PlatformType;
|
|
6
|
+
appearance: AppearanceType;
|
|
7
|
+
}
|
|
8
|
+
export declare function getScheme({ platform, appearance }: GetSchemeProps): Scheme;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const clamp: (value: number, min: number, max: number) => number;
|
|
2
|
+
export declare function precisionRound(number: number, precision?: number): number;
|
|
3
|
+
export declare function rescale(value: number, from: [number, number], to: [number, number], options?: {
|
|
4
|
+
step?: number;
|
|
5
|
+
}): number;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AppearanceSchemeType, AppearanceType } from "@vkontakte/vk-bridge";
|
|
2
|
+
import { PlatformType } from "../lib/platform";
|
|
3
|
+
export declare enum Scheme {
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated будет удалено в 5.0.0
|
|
6
|
+
* версия оставлена для совместимости со старыми версиями клиентов
|
|
7
|
+
*/
|
|
8
|
+
DEPRECATED_CLIENT_LIGHT = "client_light",
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated будет удалено в 5.0.0
|
|
11
|
+
* версия оставлена для совместимости со старыми версиями клиентов
|
|
12
|
+
*/
|
|
13
|
+
DEPRECATED_CLIENT_DARK = "client_dark",
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated будет удалено в 5.0.0
|
|
16
|
+
* версия оставлена для совместимости с vkcom, когда там была только одна схема
|
|
17
|
+
*/
|
|
18
|
+
VKCOM = "vkcom",
|
|
19
|
+
BRIGHT_LIGHT = "bright_light",
|
|
20
|
+
SPACE_GRAY = "space_gray",
|
|
21
|
+
VKCOM_LIGHT = "vkcom_light",
|
|
22
|
+
VKCOM_DARK = "vkcom_dark"
|
|
23
|
+
}
|
|
24
|
+
export declare type AppearanceScheme = AppearanceSchemeType | Scheme.VKCOM | Scheme.VKCOM_DARK | Scheme.VKCOM_LIGHT | "inherit";
|
|
25
|
+
export declare enum Appearance {
|
|
26
|
+
DARK = "dark",
|
|
27
|
+
LIGHT = "light"
|
|
28
|
+
}
|
|
29
|
+
export interface NormalizeSchemeProps {
|
|
30
|
+
platform: PlatformType;
|
|
31
|
+
scheme?: AppearanceScheme;
|
|
32
|
+
appearance?: AppearanceType;
|
|
33
|
+
}
|
|
34
|
+
export declare function normalizeScheme({ platform, scheme, appearance, }: NormalizeSchemeProps): Scheme | "inherit";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { SizeType, ViewHeight, ViewWidth, AdaptivityContextInterface, AdaptivityProps, SizeProps } from "../components/AdaptivityProvider/AdaptivityContext";
|
|
3
|
+
export { SizeType, ViewWidth, ViewHeight };
|
|
4
|
+
export type { AdaptivityProps };
|
|
5
|
+
interface Config {
|
|
6
|
+
sizeX?: boolean;
|
|
7
|
+
sizeY?: boolean;
|
|
8
|
+
viewWidth?: boolean;
|
|
9
|
+
viewHeight?: boolean;
|
|
10
|
+
hasMouse?: boolean;
|
|
11
|
+
deviceHasHover?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function withAdaptivity<T extends AdaptivityProps>(TargetComponent: React.ComponentType<T>, config: Config): React.FC<Omit<T, keyof AdaptivityContextInterface> & SizeProps>;
|