@vkontakte/vkui 8.1.2 → 8.2.0
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/dist/components/ActionSheet/ActionSheet.d.ts +5 -4
- package/dist/components/ActionSheet/ActionSheet.d.ts.map +1 -1
- package/dist/components/ActionSheet/ActionSheet.js +2 -1
- package/dist/components/ActionSheet/ActionSheet.js.map +1 -1
- package/dist/components/AdaptivityProvider/AdaptivityContext.d.ts +3 -3
- package/dist/components/AdaptivityProvider/AdaptivityContext.js.map +1 -1
- package/dist/components/AdaptivityProvider/AdaptivityProvider.js +2 -2
- package/dist/components/AdaptivityProvider/AdaptivityProvider.js.map +1 -1
- package/dist/components/AppRoot/AppRoot.d.ts.map +1 -1
- package/dist/components/AppRoot/AppRoot.js +0 -6
- package/dist/components/AppRoot/AppRoot.js.map +1 -1
- package/dist/components/AppRoot/AppRootContext.d.ts +0 -1
- package/dist/components/AppRoot/AppRootContext.d.ts.map +1 -1
- package/dist/components/AppRoot/AppRootContext.js +0 -1
- package/dist/components/AppRoot/AppRootContext.js.map +1 -1
- package/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Calendar/Calendar.js +2 -1
- package/dist/components/Calendar/Calendar.js.map +1 -1
- package/dist/components/CalendarDay/CalendarDay.d.ts.map +1 -1
- package/dist/components/CalendarDay/CalendarDay.js +4 -2
- package/dist/components/CalendarDay/CalendarDay.js.map +1 -1
- package/dist/components/CalendarDays/CalendarDays.d.ts.map +1 -1
- package/dist/components/CalendarDays/CalendarDays.js +2 -2
- package/dist/components/CalendarDays/CalendarDays.js.map +1 -1
- package/dist/components/CalendarHeader/CalendarHeader.d.ts.map +1 -1
- package/dist/components/CalendarHeader/CalendarHeader.js +4 -2
- package/dist/components/CalendarHeader/CalendarHeader.js.map +1 -1
- package/dist/components/CalendarRange/CalendarRange.d.ts +2 -2
- package/dist/components/CalendarRange/CalendarRange.js.map +1 -1
- package/dist/components/CalendarTime/CalendarTime.d.ts +1 -1
- package/dist/components/CalendarTime/CalendarTime.d.ts.map +1 -1
- package/dist/components/CalendarTime/CalendarTime.js +61 -50
- package/dist/components/CalendarTime/CalendarTime.js.map +1 -1
- package/dist/components/CalendarTime/CalendarTimePicker.d.ts +11 -7
- package/dist/components/CalendarTime/CalendarTimePicker.d.ts.map +1 -1
- package/dist/components/CalendarTime/CalendarTimePicker.js +108 -48
- package/dist/components/CalendarTime/CalendarTimePicker.js.map +1 -1
- package/dist/components/CalendarTime/ComboBox.d.ts +25 -0
- package/dist/components/CalendarTime/ComboBox.d.ts.map +1 -0
- package/dist/components/CalendarTime/ComboBox.js +112 -0
- package/dist/components/CalendarTime/ComboBox.js.map +1 -0
- package/dist/components/CardScroll/CardScroll.d.ts.map +1 -1
- package/dist/components/CardScroll/CardScroll.js +2 -2
- package/dist/components/CardScroll/CardScroll.js.map +1 -1
- package/dist/components/CarouselBase/CarouselBase.d.ts.map +1 -1
- package/dist/components/CarouselBase/CarouselBase.js +3 -1
- package/dist/components/CarouselBase/CarouselBase.js.map +1 -1
- package/dist/components/ChipsSelect/useChipsSelect.d.ts.map +1 -1
- package/dist/components/ChipsSelect/useChipsSelect.js +2 -1
- package/dist/components/ChipsSelect/useChipsSelect.js.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.js +8 -4
- package/dist/components/ConfigProvider/ConfigProvider.js.map +1 -1
- package/dist/components/ConfigProvider/ConfigProviderOverride.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProviderOverride.js +5 -1
- package/dist/components/ConfigProvider/ConfigProviderOverride.js.map +1 -1
- package/dist/components/ConfigProvider/ConfigProviderSubContexts.d.ts +15 -0
- package/dist/components/ConfigProvider/ConfigProviderSubContexts.d.ts.map +1 -0
- package/dist/components/ConfigProvider/ConfigProviderSubContexts.js +25 -0
- package/dist/components/ConfigProvider/ConfigProviderSubContexts.js.map +1 -0
- package/dist/components/ContentBadge/ContentBadge.d.ts +14 -1
- package/dist/components/ContentBadge/ContentBadge.d.ts.map +1 -1
- package/dist/components/ContentBadge/ContentBadge.js +39 -1
- package/dist/components/ContentBadge/ContentBadge.js.map +1 -1
- package/dist/components/CustomSelect/CustomSelect.d.ts.map +1 -1
- package/dist/components/CustomSelect/CustomSelect.js +16 -10
- package/dist/components/CustomSelect/CustomSelect.js.map +1 -1
- package/dist/components/DateInput/DateInput.d.ts.map +1 -1
- package/dist/components/DateInput/DateInput.js +4 -3
- package/dist/components/DateInput/DateInput.js.map +1 -1
- package/dist/components/DateRangeInput/DateRangeInput.d.ts.map +1 -1
- package/dist/components/DateRangeInput/DateRangeInput.js +2 -2
- package/dist/components/DateRangeInput/DateRangeInput.js.map +1 -1
- package/dist/components/Epic/ScrollSaver.d.ts.map +1 -1
- package/dist/components/Epic/ScrollSaver.js +1 -0
- package/dist/components/Epic/ScrollSaver.js.map +1 -1
- package/dist/components/FixedLayout/ParentWidthWrapper.d.ts +6 -0
- package/dist/components/FixedLayout/ParentWidthWrapper.d.ts.map +1 -0
- package/dist/components/FixedLayout/ParentWidthWrapper.js +43 -0
- package/dist/components/FixedLayout/ParentWidthWrapper.js.map +1 -0
- package/dist/components/Flex/Flex.d.ts +7 -4
- package/dist/components/Flex/Flex.d.ts.map +1 -1
- package/dist/components/Flex/Flex.js +5 -2
- package/dist/components/Flex/Flex.js.map +1 -1
- package/dist/components/ImageBase/ImageBaseFloatElement/ImageBaseFloatElement.js +3 -1
- package/dist/components/ImageBase/ImageBaseFloatElement/ImageBaseFloatElement.js.map +1 -1
- package/dist/components/NativeSelect/NativeSelect.d.ts.map +1 -1
- package/dist/components/NativeSelect/NativeSelect.js +6 -2
- package/dist/components/NativeSelect/NativeSelect.js.map +1 -1
- package/dist/components/NavTransitionContext/NavTransitionContext.d.ts +2 -1
- package/dist/components/NavTransitionContext/NavTransitionContext.d.ts.map +1 -1
- package/dist/components/NavTransitionContext/NavTransitionContext.js +8 -4
- package/dist/components/NavTransitionContext/NavTransitionContext.js.map +1 -1
- package/dist/components/OnboardingTooltip/OnboardingTooltip.d.ts.map +1 -1
- package/dist/components/OnboardingTooltip/OnboardingTooltip.js +4 -5
- package/dist/components/OnboardingTooltip/OnboardingTooltip.js.map +1 -1
- package/dist/components/PanelHeader/PanelHeader.d.ts +1 -1
- package/dist/components/PanelHeader/PanelHeader.js.map +1 -1
- package/dist/components/Popper/Popper.d.ts.map +1 -1
- package/dist/components/Popper/Popper.js +7 -4
- package/dist/components/Popper/Popper.js.map +1 -1
- package/dist/components/PullToRefresh/PullToRefresh.d.ts.map +1 -1
- package/dist/components/PullToRefresh/PullToRefresh.js +8 -4
- package/dist/components/PullToRefresh/PullToRefresh.js.map +1 -1
- package/dist/components/Root/Root.d.ts +1 -1
- package/dist/components/Root/Root.d.ts.map +1 -1
- package/dist/components/Root/Root.js +43 -37
- package/dist/components/Root/Root.js.map +1 -1
- package/dist/components/SimpleGrid/SimpleGrid.d.ts +9 -8
- package/dist/components/SimpleGrid/SimpleGrid.d.ts.map +1 -1
- package/dist/components/SimpleGrid/SimpleGrid.js +9 -2
- package/dist/components/SimpleGrid/SimpleGrid.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.js +3 -4
- package/dist/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/Snackbar/Snackbar.d.ts.map +1 -1
- package/dist/components/Snackbar/Snackbar.js +6 -3
- package/dist/components/Snackbar/Snackbar.js.map +1 -1
- package/dist/components/Spacing/Spacing.d.ts +1 -1
- package/dist/components/Spacing/Spacing.js.map +1 -1
- package/dist/components/Spinner/ExpressiveSpinner/ExpressiveSpinner.d.ts +10 -0
- package/dist/components/Spinner/ExpressiveSpinner/ExpressiveSpinner.d.ts.map +1 -0
- package/dist/components/Spinner/ExpressiveSpinner/ExpressiveSpinner.js +54 -0
- package/dist/components/Spinner/ExpressiveSpinner/ExpressiveSpinner.js.map +1 -0
- package/dist/components/Spinner/ExpressiveSpinner/icons.d.ts +18 -0
- package/dist/components/Spinner/ExpressiveSpinner/icons.d.ts.map +1 -0
- package/dist/components/Spinner/ExpressiveSpinner/icons.js +79 -0
- package/dist/components/Spinner/ExpressiveSpinner/icons.js.map +1 -0
- package/dist/components/Spinner/SvgIcon.d.ts +14 -0
- package/dist/components/Spinner/SvgIcon.d.ts.map +1 -0
- package/dist/components/Spinner/SvgIcon.js +20 -0
- package/dist/components/Spinner/SvgIcon.js.map +1 -0
- package/dist/components/Spinner/icons.d.ts +1 -1
- package/dist/components/Spinner/icons.d.ts.map +1 -1
- package/dist/components/Spinner/icons.js +10 -23
- package/dist/components/Spinner/icons.js.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.d.ts +3 -3
- package/dist/components/SplitLayout/SplitLayout.js.map +1 -1
- package/dist/components/TabsItem/TabsItem.d.ts.map +1 -1
- package/dist/components/TabsItem/TabsItem.js +2 -5
- package/dist/components/TabsItem/TabsItem.js.map +1 -1
- package/dist/components/Tappable/Tappable.d.ts +2 -2
- package/dist/components/Tappable/Tappable.js.map +1 -1
- package/dist/components/View/View.d.ts.map +1 -1
- package/dist/components/View/View.js +50 -53
- package/dist/components/View/View.js.map +1 -1
- package/dist/components/View/ViewInfinite.d.ts.map +1 -1
- package/dist/components/View/ViewInfinite.js +34 -37
- package/dist/components/View/ViewInfinite.js.map +1 -1
- package/dist/components/WriteBar/WriteBar.d.ts +15 -1
- package/dist/components/WriteBar/WriteBar.d.ts.map +1 -1
- package/dist/components/WriteBar/WriteBar.js +35 -63
- package/dist/components/WriteBar/WriteBar.js.map +1 -1
- package/dist/components/WriteBar/WriteBarBeforeOrAfter/WriteBarBeforeOrAfter.d.ts +5 -0
- package/dist/components/WriteBar/WriteBarBeforeOrAfter/WriteBarBeforeOrAfter.d.ts.map +1 -0
- package/dist/components/WriteBar/WriteBarBeforeOrAfter/WriteBarBeforeOrAfter.js +15 -0
- package/dist/components/WriteBar/WriteBarBeforeOrAfter/WriteBarBeforeOrAfter.js.map +1 -0
- package/dist/components/WriteBar/WriteBarFormField/WriteBarFormField.d.ts +8 -0
- package/dist/components/WriteBar/WriteBarFormField/WriteBarFormField.d.ts.map +1 -0
- package/dist/components/WriteBar/WriteBarFormField/WriteBarFormField.js +16 -0
- package/dist/components/WriteBar/WriteBarFormField/WriteBarFormField.js.map +1 -0
- package/dist/components/WriteBar/WriteBarFormField/WriteBarFormFieldInlineAfter/WriteBarFormFieldInlineAfter.d.ts +5 -0
- package/dist/components/WriteBar/WriteBarFormField/WriteBarFormFieldInlineAfter/WriteBarFormFieldInlineAfter.d.ts.map +1 -0
- package/dist/components/WriteBar/WriteBarFormField/WriteBarFormFieldInlineAfter/WriteBarFormFieldInlineAfter.js +15 -0
- package/dist/components/WriteBar/WriteBarFormField/WriteBarFormFieldInlineAfter/WriteBarFormFieldInlineAfter.js.map +1 -0
- package/dist/components/WriteBar/WriteBarRoot/WriteBarRoot.d.ts +10 -0
- package/dist/components/WriteBar/WriteBarRoot/WriteBarRoot.d.ts.map +1 -0
- package/dist/components/WriteBar/WriteBarRoot/WriteBarRoot.js +16 -0
- package/dist/components/WriteBar/WriteBarRoot/WriteBarRoot.js.map +1 -0
- package/dist/components/WriteBar/WriteBarTextarea/WriteBarTextarea.d.ts +10 -0
- package/dist/components/WriteBar/WriteBarTextarea/WriteBarTextarea.d.ts.map +1 -0
- package/dist/components/WriteBar/WriteBarTextarea/WriteBarTextarea.js +39 -0
- package/dist/components/WriteBar/WriteBarTextarea/WriteBarTextarea.js.map +1 -0
- package/dist/components.css +1 -1
- package/dist/components.css.map +1 -1
- package/dist/cssm/components/ActionSheet/ActionSheet.js +2 -1
- package/dist/cssm/components/ActionSheet/ActionSheet.js.map +1 -1
- package/dist/cssm/components/AdaptivityProvider/AdaptivityContext.js.map +1 -1
- package/dist/cssm/components/AdaptivityProvider/AdaptivityProvider.js +2 -2
- package/dist/cssm/components/AdaptivityProvider/AdaptivityProvider.js.map +1 -1
- package/dist/cssm/components/AppRoot/AppRoot.js +0 -6
- package/dist/cssm/components/AppRoot/AppRoot.js.map +1 -1
- package/dist/cssm/components/AppRoot/AppRootContext.js +0 -1
- package/dist/cssm/components/AppRoot/AppRootContext.js.map +1 -1
- package/dist/cssm/components/Calendar/Calendar.js +2 -1
- package/dist/cssm/components/Calendar/Calendar.js.map +1 -1
- package/dist/cssm/components/CalendarDay/CalendarDay.js +4 -2
- package/dist/cssm/components/CalendarDay/CalendarDay.js.map +1 -1
- package/dist/cssm/components/CalendarDays/CalendarDays.js +2 -2
- package/dist/cssm/components/CalendarDays/CalendarDays.js.map +1 -1
- package/dist/cssm/components/CalendarHeader/CalendarHeader.js +4 -2
- package/dist/cssm/components/CalendarHeader/CalendarHeader.js.map +1 -1
- package/dist/cssm/components/CalendarRange/CalendarRange.js.map +1 -1
- package/dist/cssm/components/CalendarTime/CalendarTime.js +61 -50
- package/dist/cssm/components/CalendarTime/CalendarTime.js.map +1 -1
- package/dist/cssm/components/CalendarTime/CalendarTime.module.css +38 -0
- package/dist/cssm/components/CalendarTime/CalendarTimePicker.js +108 -48
- package/dist/cssm/components/CalendarTime/CalendarTimePicker.js.map +1 -1
- package/dist/cssm/components/CalendarTime/ComboBox.js +113 -0
- package/dist/cssm/components/CalendarTime/ComboBox.js.map +1 -0
- package/dist/cssm/components/CardScroll/CardScroll.js +2 -2
- package/dist/cssm/components/CardScroll/CardScroll.js.map +1 -1
- package/dist/cssm/components/CarouselBase/CarouselBase.js +3 -1
- package/dist/cssm/components/CarouselBase/CarouselBase.js.map +1 -1
- package/dist/cssm/components/ChipsSelect/useChipsSelect.js +2 -1
- package/dist/cssm/components/ChipsSelect/useChipsSelect.js.map +1 -1
- package/dist/cssm/components/ConfigProvider/ConfigProvider.js +8 -4
- package/dist/cssm/components/ConfigProvider/ConfigProvider.js.map +1 -1
- package/dist/cssm/components/ConfigProvider/ConfigProviderOverride.js +5 -1
- package/dist/cssm/components/ConfigProvider/ConfigProviderOverride.js.map +1 -1
- package/dist/cssm/components/ConfigProvider/ConfigProviderSubContexts.js +25 -0
- package/dist/cssm/components/ConfigProvider/ConfigProviderSubContexts.js.map +1 -0
- package/dist/cssm/components/ContentBadge/ContentBadge.js +39 -1
- package/dist/cssm/components/ContentBadge/ContentBadge.js.map +1 -1
- package/dist/cssm/components/ContentBadge/ContentBadge.module.css +88 -90
- package/dist/cssm/components/CustomSelect/CustomSelect.js +16 -10
- package/dist/cssm/components/CustomSelect/CustomSelect.js.map +1 -1
- package/dist/cssm/components/DateInput/DateInput.js +4 -3
- package/dist/cssm/components/DateInput/DateInput.js.map +1 -1
- package/dist/cssm/components/DateRangeInput/DateRangeInput.js +2 -2
- package/dist/cssm/components/DateRangeInput/DateRangeInput.js.map +1 -1
- package/dist/cssm/components/Epic/ScrollSaver.js +1 -0
- package/dist/cssm/components/Epic/ScrollSaver.js.map +1 -1
- package/dist/cssm/components/FixedLayout/ParentWidthWrapper.js +43 -0
- package/dist/cssm/components/FixedLayout/ParentWidthWrapper.js.map +1 -0
- package/dist/cssm/components/Flex/Flex.js +5 -2
- package/dist/cssm/components/Flex/Flex.js.map +1 -1
- package/dist/cssm/components/GridAvatar/GridAvatar.module.css +1 -1
- package/dist/cssm/components/ImageBase/ImageBaseFloatElement/ImageBaseFloatElement.js +3 -1
- package/dist/cssm/components/ImageBase/ImageBaseFloatElement/ImageBaseFloatElement.js.map +1 -1
- package/dist/cssm/components/NativeSelect/NativeSelect.js +6 -2
- package/dist/cssm/components/NativeSelect/NativeSelect.js.map +1 -1
- package/dist/cssm/components/NavTransitionContext/NavTransitionContext.js +8 -4
- package/dist/cssm/components/NavTransitionContext/NavTransitionContext.js.map +1 -1
- package/dist/cssm/components/OnboardingTooltip/OnboardingTooltip.js +4 -5
- package/dist/cssm/components/OnboardingTooltip/OnboardingTooltip.js.map +1 -1
- package/dist/cssm/components/PanelHeader/PanelHeader.js.map +1 -1
- package/dist/cssm/components/Popper/Popper.js +7 -4
- package/dist/cssm/components/Popper/Popper.js.map +1 -1
- package/dist/cssm/components/PullToRefresh/PullToRefresh.js +8 -4
- package/dist/cssm/components/PullToRefresh/PullToRefresh.js.map +1 -1
- package/dist/cssm/components/PullToRefresh/PullToRefresh.module.css +1 -1
- package/dist/cssm/components/Root/Root.js +43 -37
- package/dist/cssm/components/Root/Root.js.map +1 -1
- package/dist/cssm/components/SimpleGrid/SimpleGrid.js +9 -2
- package/dist/cssm/components/SimpleGrid/SimpleGrid.js.map +1 -1
- package/dist/cssm/components/Skeleton/Skeleton.js +3 -4
- package/dist/cssm/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/cssm/components/Snackbar/Snackbar.js +6 -3
- package/dist/cssm/components/Snackbar/Snackbar.js.map +1 -1
- package/dist/cssm/components/Spacing/Spacing.js.map +1 -1
- package/dist/cssm/components/Spinner/ExpressiveSpinner/ExpressiveSpinner.js +56 -0
- package/dist/cssm/components/Spinner/ExpressiveSpinner/ExpressiveSpinner.js.map +1 -0
- package/dist/cssm/components/Spinner/ExpressiveSpinner/ExpressiveSpinner.module.css +13 -0
- package/dist/cssm/components/Spinner/ExpressiveSpinner/icons.js +79 -0
- package/dist/cssm/components/Spinner/ExpressiveSpinner/icons.js.map +1 -0
- package/dist/cssm/components/Spinner/SvgIcon.js +20 -0
- package/dist/cssm/components/Spinner/SvgIcon.js.map +1 -0
- package/dist/cssm/components/Spinner/icons.js +10 -23
- package/dist/cssm/components/Spinner/icons.js.map +1 -1
- package/dist/cssm/components/SplitLayout/SplitLayout.js.map +1 -1
- package/dist/cssm/components/TabsItem/TabsItem.js +2 -5
- package/dist/cssm/components/TabsItem/TabsItem.js.map +1 -1
- package/dist/cssm/components/Tappable/Tappable.js.map +1 -1
- package/dist/cssm/components/View/View.js +50 -53
- package/dist/cssm/components/View/View.js.map +1 -1
- package/dist/cssm/components/View/ViewInfinite.js +34 -37
- package/dist/cssm/components/View/ViewInfinite.js.map +1 -1
- package/dist/cssm/components/WriteBar/WriteBar.js +35 -64
- package/dist/cssm/components/WriteBar/WriteBar.js.map +1 -1
- package/dist/cssm/components/WriteBar/WriteBarBeforeOrAfter/WriteBarBeforeOrAfter.js +16 -0
- package/dist/cssm/components/WriteBar/WriteBarBeforeOrAfter/WriteBarBeforeOrAfter.js.map +1 -0
- package/dist/cssm/components/WriteBar/WriteBarBeforeOrAfter/WriteBarBeforeOrAfter.module.css +12 -0
- package/dist/cssm/components/WriteBar/WriteBarFormField/WriteBarFormField.js +17 -0
- package/dist/cssm/components/WriteBar/WriteBarFormField/WriteBarFormField.js.map +1 -0
- package/dist/cssm/components/WriteBar/WriteBarFormField/WriteBarFormField.module.css +18 -0
- package/dist/cssm/components/WriteBar/WriteBarFormField/WriteBarFormFieldInlineAfter/WriteBarFormFieldInlineAfter.js +16 -0
- package/dist/cssm/components/WriteBar/WriteBarFormField/WriteBarFormFieldInlineAfter/WriteBarFormFieldInlineAfter.js.map +1 -0
- package/dist/cssm/components/WriteBar/WriteBarFormField/WriteBarFormFieldInlineAfter/WriteBarFormFieldInlineAfter.module.css +3 -0
- package/dist/cssm/components/WriteBar/WriteBarRoot/WriteBarRoot.js +17 -0
- package/dist/cssm/components/WriteBar/WriteBarRoot/WriteBarRoot.js.map +1 -0
- package/dist/cssm/components/WriteBar/WriteBarRoot/WriteBarRoot.module.css +15 -0
- package/dist/cssm/components/WriteBar/WriteBarTextarea/WriteBarTextarea.js +40 -0
- package/dist/cssm/components/WriteBar/WriteBarTextarea/WriteBarTextarea.js.map +1 -0
- package/dist/cssm/components/WriteBar/WriteBarTextarea/WriteBarTextarea.module.css +43 -0
- package/dist/cssm/helpers/math.js +6 -0
- package/dist/cssm/helpers/math.js.map +1 -1
- package/dist/cssm/hoc/withPlatform.js +3 -2
- package/dist/cssm/hoc/withPlatform.js.map +1 -1
- package/dist/cssm/hooks/useAdaptivityConditionalRender/types.js.map +1 -1
- package/dist/cssm/hooks/useAnimationFrame.js +40 -0
- package/dist/cssm/hooks/useAnimationFrame.js.map +1 -0
- package/dist/cssm/hooks/useAutoFocus.js +4 -1
- package/dist/cssm/hooks/useAutoFocus.js.map +1 -1
- package/dist/cssm/hooks/useColorScheme.js +3 -3
- package/dist/cssm/hooks/useColorScheme.js.map +1 -1
- package/dist/cssm/hooks/useConfigDirection.js +3 -3
- package/dist/cssm/hooks/useConfigDirection.js.map +1 -1
- package/dist/cssm/hooks/useDateInput.js +1 -2
- package/dist/cssm/hooks/useDateInput.js.map +1 -1
- package/dist/cssm/hooks/useFocusTrap/useAutoFocus.js +1 -0
- package/dist/cssm/hooks/useFocusTrap/useAutoFocus.js.map +1 -1
- package/dist/cssm/hooks/useFocusTrap/useFocusTrap.js +2 -0
- package/dist/cssm/hooks/useFocusTrap/useFocusTrap.js.map +1 -1
- package/dist/cssm/hooks/useFocusVisible.js +8 -13
- package/dist/cssm/hooks/useFocusVisible.js.map +1 -1
- package/dist/cssm/hooks/useFocusWithin.js +5 -4
- package/dist/cssm/hooks/useFocusWithin.js.map +1 -1
- package/dist/cssm/hooks/useGlobalEscKeyDown.js +17 -15
- package/dist/cssm/hooks/useGlobalEscKeyDown.js.map +1 -1
- package/dist/cssm/hooks/useGlobalOnClickOutside.js +6 -2
- package/dist/cssm/hooks/useGlobalOnClickOutside.js.map +1 -1
- package/dist/cssm/hooks/useKeyboardInputTracker.js +48 -41
- package/dist/cssm/hooks/useKeyboardInputTracker.js.map +1 -1
- package/dist/cssm/hooks/useLatestRef.js +13 -0
- package/dist/cssm/hooks/useLatestRef.js.map +1 -0
- package/dist/cssm/hooks/useLocale.js +3 -3
- package/dist/cssm/hooks/useLocale.js.map +1 -1
- package/dist/cssm/hooks/useMediaQueryMatch.js +1 -0
- package/dist/cssm/hooks/useMediaQueryMatch.js.map +1 -1
- package/dist/cssm/hooks/useMutationObserver.js +3 -3
- package/dist/cssm/hooks/useMutationObserver.js.map +1 -1
- package/dist/cssm/hooks/usePlatform.js +3 -3
- package/dist/cssm/hooks/usePlatform.js.map +1 -1
- package/dist/cssm/hooks/useResizeObserver.js +4 -6
- package/dist/cssm/hooks/useResizeObserver.js.map +1 -1
- package/dist/cssm/hooks/useSyncHTMLWithBaseVKUIClasses.js +2 -1
- package/dist/cssm/hooks/useSyncHTMLWithBaseVKUIClasses.js.map +1 -1
- package/dist/cssm/hooks/useSyncHTMLWithTokens.js +3 -1
- package/dist/cssm/hooks/useSyncHTMLWithTokens.js.map +1 -1
- package/dist/cssm/hooks/useWaitTransitionFinish.js +13 -15
- package/dist/cssm/hooks/useWaitTransitionFinish.js.map +1 -1
- package/dist/cssm/index.js +1 -0
- package/dist/cssm/index.js.map +1 -1
- package/dist/cssm/lib/array.js +18 -0
- package/dist/cssm/lib/array.js.map +1 -0
- package/dist/cssm/lib/curve.js +21 -0
- package/dist/cssm/lib/curve.js.map +1 -0
- package/dist/cssm/lib/dom.js +5 -2
- package/dist/cssm/lib/dom.js.map +1 -1
- package/dist/cssm/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.js +4 -4
- package/dist/cssm/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.js.map +1 -1
- package/dist/cssm/lib/fx.js +4 -55
- package/dist/cssm/lib/fx.js.map +1 -1
- package/dist/cssm/lib/layouts/index.js.map +1 -1
- package/dist/cssm/lib/layouts/layoutProps.js +11 -0
- package/dist/cssm/lib/layouts/layoutProps.js.map +1 -1
- package/dist/cssm/lib/layouts/resolveLayoutProps.js +13 -11
- package/dist/cssm/lib/layouts/resolveLayoutProps.js.map +1 -1
- package/dist/cssm/lib/layouts/types.js.map +1 -1
- package/dist/cssm/lib/material/shapes/Shape.js +18 -0
- package/dist/cssm/lib/material/shapes/Shape.js.map +1 -0
- package/dist/cssm/lib/material/shapes/shapes.js +2250 -0
- package/dist/cssm/lib/material/shapes/shapes.js.map +1 -0
- package/dist/cssm/lib/math.js +31 -0
- package/dist/cssm/lib/math.js.map +1 -0
- package/dist/cssm/lib/svg/path/approximate.js +57 -0
- package/dist/cssm/lib/svg/path/approximate.js.map +1 -0
- package/dist/cssm/lib/svg/path/interpolate.js +121 -0
- package/dist/cssm/lib/svg/path/interpolate.js.map +1 -0
- package/dist/cssm/lib/svg/path/path.js +50 -0
- package/dist/cssm/lib/svg/path/path.js.map +1 -0
- package/dist/cssm/lib/svg/path/point.js +3 -0
- package/dist/cssm/lib/svg/path/point.js.map +1 -0
- package/dist/cssm/lib/svg/path/transform.js +110 -0
- package/dist/cssm/lib/svg/path/transform.js.map +1 -0
- package/dist/cssm/lib/tokens/useTokenClassName.js +4 -1
- package/dist/cssm/lib/tokens/useTokenClassName.js.map +1 -1
- package/dist/cssm/lib/touch/UIPanGestureRecognizer.js +2 -2
- package/dist/cssm/lib/touch/UIPanGestureRecognizer.js.map +1 -1
- package/dist/cssm/styles/layout.css +273 -0
- package/dist/cssm/types.js +1 -4
- package/dist/cssm/types.js.map +1 -1
- package/dist/helpers/math.d.ts +4 -0
- package/dist/helpers/math.d.ts.map +1 -1
- package/dist/helpers/math.js +6 -0
- package/dist/helpers/math.js.map +1 -1
- package/dist/hoc/withPlatform.d.ts +1 -1
- package/dist/hoc/withPlatform.d.ts.map +1 -1
- package/dist/hoc/withPlatform.js +3 -2
- package/dist/hoc/withPlatform.js.map +1 -1
- package/dist/hooks/useAdaptivityConditionalRender/types.d.ts +2 -2
- package/dist/hooks/useAdaptivityConditionalRender/types.js.map +1 -1
- package/dist/hooks/useAnimationFrame.d.ts +16 -0
- package/dist/hooks/useAnimationFrame.d.ts.map +1 -0
- package/dist/hooks/useAnimationFrame.js +40 -0
- package/dist/hooks/useAnimationFrame.js.map +1 -0
- package/dist/hooks/useAutoFocus.js +4 -1
- package/dist/hooks/useAutoFocus.js.map +1 -1
- package/dist/hooks/useColorScheme.d.ts.map +1 -1
- package/dist/hooks/useColorScheme.js +3 -3
- package/dist/hooks/useColorScheme.js.map +1 -1
- package/dist/hooks/useConfigDirection.d.ts.map +1 -1
- package/dist/hooks/useConfigDirection.js +3 -3
- package/dist/hooks/useConfigDirection.js.map +1 -1
- package/dist/hooks/useDateInput.d.ts.map +1 -1
- package/dist/hooks/useDateInput.js +1 -2
- package/dist/hooks/useDateInput.js.map +1 -1
- package/dist/hooks/useFocusTrap/useAutoFocus.js +1 -0
- package/dist/hooks/useFocusTrap/useAutoFocus.js.map +1 -1
- package/dist/hooks/useFocusTrap/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap/useFocusTrap.js +2 -0
- package/dist/hooks/useFocusTrap/useFocusTrap.js.map +1 -1
- package/dist/hooks/useFocusVisible.d.ts.map +1 -1
- package/dist/hooks/useFocusVisible.js +8 -13
- package/dist/hooks/useFocusVisible.js.map +1 -1
- package/dist/hooks/useFocusWithin.d.ts.map +1 -1
- package/dist/hooks/useFocusWithin.js +5 -4
- package/dist/hooks/useFocusWithin.js.map +1 -1
- package/dist/hooks/useGlobalEscKeyDown.d.ts.map +1 -1
- package/dist/hooks/useGlobalEscKeyDown.js +17 -15
- package/dist/hooks/useGlobalEscKeyDown.js.map +1 -1
- package/dist/hooks/useGlobalOnClickOutside.d.ts.map +1 -1
- package/dist/hooks/useGlobalOnClickOutside.js +6 -2
- package/dist/hooks/useGlobalOnClickOutside.js.map +1 -1
- package/dist/hooks/useKeyboardInputTracker.d.ts +1 -19
- package/dist/hooks/useKeyboardInputTracker.d.ts.map +1 -1
- package/dist/hooks/useKeyboardInputTracker.js +48 -41
- package/dist/hooks/useKeyboardInputTracker.js.map +1 -1
- package/dist/hooks/useLatestRef.d.ts +3 -0
- package/dist/hooks/useLatestRef.d.ts.map +1 -0
- package/dist/hooks/useLatestRef.js +13 -0
- package/dist/hooks/useLatestRef.js.map +1 -0
- package/dist/hooks/useLocale.d.ts.map +1 -1
- package/dist/hooks/useLocale.js +3 -3
- package/dist/hooks/useLocale.js.map +1 -1
- package/dist/hooks/useMediaQueryMatch.js +1 -0
- package/dist/hooks/useMediaQueryMatch.js.map +1 -1
- package/dist/hooks/useMutationObserver.d.ts +1 -2
- package/dist/hooks/useMutationObserver.d.ts.map +1 -1
- package/dist/hooks/useMutationObserver.js +3 -3
- package/dist/hooks/useMutationObserver.js.map +1 -1
- package/dist/hooks/usePlatform.d.ts.map +1 -1
- package/dist/hooks/usePlatform.js +3 -3
- package/dist/hooks/usePlatform.js.map +1 -1
- package/dist/hooks/useResizeObserver.d.ts.map +1 -1
- package/dist/hooks/useResizeObserver.js +4 -6
- package/dist/hooks/useResizeObserver.js.map +1 -1
- package/dist/hooks/useSyncHTMLWithBaseVKUIClasses.js +2 -1
- package/dist/hooks/useSyncHTMLWithBaseVKUIClasses.js.map +1 -1
- package/dist/hooks/useSyncHTMLWithTokens.js +3 -1
- package/dist/hooks/useSyncHTMLWithTokens.js.map +1 -1
- package/dist/hooks/useWaitTransitionFinish.d.ts.map +1 -1
- package/dist/hooks/useWaitTransitionFinish.js +13 -15
- package/dist/hooks/useWaitTransitionFinish.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/array.d.ts +17 -0
- package/dist/lib/array.d.ts.map +1 -0
- package/dist/lib/array.js +18 -0
- package/dist/lib/array.js.map +1 -0
- package/dist/lib/curve.d.ts +9 -0
- package/dist/lib/curve.d.ts.map +1 -0
- package/dist/lib/curve.js +21 -0
- package/dist/lib/curve.js.map +1 -0
- package/dist/lib/dom.d.ts +2 -1
- package/dist/lib/dom.d.ts.map +1 -1
- package/dist/lib/dom.js +5 -2
- package/dist/lib/dom.js.map +1 -1
- package/dist/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.d.ts.map +1 -1
- package/dist/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.js +4 -4
- package/dist/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.js.map +1 -1
- package/dist/lib/fx.d.ts +1 -8
- package/dist/lib/fx.d.ts.map +1 -1
- package/dist/lib/fx.js +4 -55
- package/dist/lib/fx.js.map +1 -1
- package/dist/lib/layouts/index.d.ts +1 -1
- package/dist/lib/layouts/index.d.ts.map +1 -1
- package/dist/lib/layouts/index.js.map +1 -1
- package/dist/lib/layouts/layoutProps.d.ts +7 -0
- package/dist/lib/layouts/layoutProps.d.ts.map +1 -1
- package/dist/lib/layouts/layoutProps.js +11 -0
- package/dist/lib/layouts/layoutProps.js.map +1 -1
- package/dist/lib/layouts/resolveLayoutProps.d.ts.map +1 -1
- package/dist/lib/layouts/resolveLayoutProps.js +13 -11
- package/dist/lib/layouts/resolveLayoutProps.js.map +1 -1
- package/dist/lib/layouts/types.d.ts +29 -0
- package/dist/lib/layouts/types.d.ts.map +1 -1
- package/dist/lib/layouts/types.js.map +1 -1
- package/dist/lib/material/shapes/Shape.d.ts +8 -0
- package/dist/lib/material/shapes/Shape.d.ts.map +1 -0
- package/dist/lib/material/shapes/Shape.js +18 -0
- package/dist/lib/material/shapes/Shape.js.map +1 -0
- package/dist/lib/material/shapes/shapes.d.ts +43 -0
- package/dist/lib/material/shapes/shapes.d.ts.map +1 -0
- package/dist/lib/material/shapes/shapes.js +2250 -0
- package/dist/lib/material/shapes/shapes.js.map +1 -0
- package/dist/lib/math.d.ts +23 -0
- package/dist/lib/math.d.ts.map +1 -0
- package/dist/lib/math.js +31 -0
- package/dist/lib/math.js.map +1 -0
- package/dist/lib/svg/path/approximate.d.ts +21 -0
- package/dist/lib/svg/path/approximate.d.ts.map +1 -0
- package/dist/lib/svg/path/approximate.js +57 -0
- package/dist/lib/svg/path/approximate.js.map +1 -0
- package/dist/lib/svg/path/interpolate.d.ts +5 -0
- package/dist/lib/svg/path/interpolate.d.ts.map +1 -0
- package/dist/lib/svg/path/interpolate.js +121 -0
- package/dist/lib/svg/path/interpolate.js.map +1 -0
- package/dist/lib/svg/path/path.d.ts +48 -0
- package/dist/lib/svg/path/path.d.ts.map +1 -0
- package/dist/lib/svg/path/path.js +50 -0
- package/dist/lib/svg/path/path.js.map +1 -0
- package/dist/lib/svg/path/point.d.ts +3 -0
- package/dist/lib/svg/path/point.d.ts.map +1 -0
- package/dist/lib/svg/path/point.js +3 -0
- package/dist/lib/svg/path/point.js.map +1 -0
- package/dist/lib/svg/path/transform.d.ts +64 -0
- package/dist/lib/svg/path/transform.d.ts.map +1 -0
- package/dist/lib/svg/path/transform.js +110 -0
- package/dist/lib/svg/path/transform.js.map +1 -0
- package/dist/lib/tokens/useTokenClassName.d.ts.map +1 -1
- package/dist/lib/tokens/useTokenClassName.js +4 -1
- package/dist/lib/tokens/useTokenClassName.js.map +1 -1
- package/dist/lib/touch/UIPanGestureRecognizer.d.ts.map +1 -1
- package/dist/lib/touch/UIPanGestureRecognizer.js +2 -2
- package/dist/lib/touch/UIPanGestureRecognizer.js.map +1 -1
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -4
- package/dist/types.js.map +1 -1
- package/dist/vkui.css +1 -1
- package/dist/vkui.css.map +1 -1
- package/package.json +7 -6
- package/src/components/ActionSheet/ActionSheet.tsx +6 -3
- package/src/components/AdaptivityProvider/AdaptivityContext.tsx +3 -3
- package/src/components/AdaptivityProvider/AdaptivityProvider.tsx +2 -2
- package/src/components/AppRoot/AppRoot.tsx +1 -14
- package/src/components/AppRoot/AppRootContext.ts +0 -2
- package/src/components/Calendar/Calendar.tsx +2 -2
- package/src/components/CalendarDay/CalendarDay.tsx +4 -2
- package/src/components/CalendarDays/CalendarDays.tsx +2 -2
- package/src/components/CalendarHeader/CalendarHeader.tsx +4 -2
- package/src/components/CalendarRange/CalendarRange.tsx +2 -2
- package/src/components/CalendarTime/CalendarTime.module.css +38 -0
- package/src/components/CalendarTime/CalendarTime.module.css.d.ts.map +1 -1
- package/src/components/CalendarTime/CalendarTime.tsx +68 -55
- package/src/components/CalendarTime/CalendarTimePicker.tsx +148 -62
- package/src/components/CalendarTime/ComboBox.tsx +189 -0
- package/src/components/CardScroll/CardScroll.tsx +6 -5
- package/src/components/CarouselBase/CarouselBase.tsx +2 -1
- package/src/components/ChipsSelect/useChipsSelect.ts +1 -0
- package/src/components/ConfigProvider/ConfigProvider.tsx +6 -3
- package/src/components/ConfigProvider/ConfigProviderOverride.tsx +2 -1
- package/src/components/ConfigProvider/ConfigProviderSubContexts.tsx +43 -0
- package/src/components/ContentBadge/ContentBadge.module.css +84 -91
- package/src/components/ContentBadge/ContentBadge.module.css.d.ts.map +1 -1
- package/src/components/ContentBadge/ContentBadge.tsx +73 -5
- package/src/components/CustomSelect/CustomSelect.tsx +19 -10
- package/src/components/DateInput/DateInput.tsx +3 -3
- package/src/components/DateRangeInput/DateRangeInput.tsx +2 -2
- package/src/components/Epic/ScrollSaver.tsx +1 -0
- package/src/components/FixedLayout/ParentWidthWrapper.tsx +48 -0
- package/src/components/Flex/Flex.tsx +11 -6
- package/src/components/GridAvatar/GridAvatar.module.css +1 -1
- package/src/components/GridAvatar/GridAvatar.module.css.d.ts.map +1 -1
- package/src/components/ImageBase/ImageBaseFloatElement/ImageBaseFloatElement.tsx +1 -1
- package/src/components/NativeSelect/NativeSelect.tsx +4 -2
- package/src/components/NavTransitionContext/NavTransitionContext.tsx +5 -1
- package/src/components/OnboardingTooltip/OnboardingTooltip.tsx +3 -6
- package/src/components/PanelHeader/PanelHeader.tsx +1 -1
- package/src/components/Popper/Popper.tsx +8 -5
- package/src/components/PullToRefresh/PullToRefresh.module.css +1 -1
- package/src/components/PullToRefresh/PullToRefresh.tsx +10 -3
- package/src/components/Root/Root.tsx +60 -59
- package/src/components/SimpleGrid/SimpleGrid.tsx +25 -11
- package/src/components/Skeleton/Skeleton.tsx +6 -4
- package/src/components/Snackbar/Snackbar.tsx +6 -3
- package/src/components/Spacing/Spacing.tsx +1 -1
- package/src/components/Spinner/ExpressiveSpinner/ExpressiveSpinner.module.css +13 -0
- package/src/components/Spinner/ExpressiveSpinner/ExpressiveSpinner.module.css.d.ts.map +1 -0
- package/src/components/Spinner/ExpressiveSpinner/ExpressiveSpinner.tsx +73 -0
- package/src/components/Spinner/ExpressiveSpinner/icons.tsx +104 -0
- package/src/components/Spinner/SvgIcon.tsx +31 -0
- package/src/components/Spinner/icons.tsx +10 -13
- package/src/components/SplitLayout/SplitLayout.tsx +3 -3
- package/src/components/TabsItem/TabsItem.tsx +4 -5
- package/src/components/Tappable/Tappable.tsx +2 -2
- package/src/components/View/View.tsx +83 -89
- package/src/components/View/ViewInfinite.tsx +65 -69
- package/src/components/WriteBar/WriteBar.tsx +25 -59
- package/src/components/WriteBar/WriteBarBeforeOrAfter/WriteBarBeforeOrAfter.module.css +12 -0
- package/src/components/WriteBar/WriteBarBeforeOrAfter/WriteBarBeforeOrAfter.module.css.d.ts.map +1 -0
- package/src/components/WriteBar/WriteBarBeforeOrAfter/WriteBarBeforeOrAfter.tsx +20 -0
- package/src/components/WriteBar/WriteBarFormField/WriteBarFormField.module.css +18 -0
- package/src/components/WriteBar/WriteBarFormField/WriteBarFormField.module.css.d.ts.map +1 -0
- package/src/components/WriteBar/WriteBarFormField/WriteBarFormField.tsx +22 -0
- package/src/components/WriteBar/WriteBarFormField/WriteBarFormFieldInlineAfter/WriteBarFormFieldInlineAfter.module.css +3 -0
- package/src/components/WriteBar/WriteBarFormField/WriteBarFormFieldInlineAfter/WriteBarFormFieldInlineAfter.module.css.d.ts.map +1 -0
- package/src/components/WriteBar/WriteBarFormField/WriteBarFormFieldInlineAfter/WriteBarFormFieldInlineAfter.tsx +23 -0
- package/src/components/WriteBar/WriteBarRoot/WriteBarRoot.module.css +14 -0
- package/src/components/WriteBar/WriteBarRoot/WriteBarRoot.module.css.d.ts.map +1 -0
- package/src/components/WriteBar/WriteBarRoot/WriteBarRoot.tsx +31 -0
- package/src/components/WriteBar/WriteBarTextarea/WriteBarTextarea.module.css +42 -0
- package/src/components/WriteBar/WriteBarTextarea/WriteBarTextarea.module.css.d.ts.map +1 -0
- package/src/components/WriteBar/WriteBarTextarea/WriteBarTextarea.tsx +48 -0
- package/src/helpers/math.ts +8 -0
- package/src/hoc/withPlatform.tsx +3 -3
- package/src/hooks/useAdaptivityConditionalRender/types.ts +2 -2
- package/src/hooks/useAnimationFrame.tsx +42 -0
- package/src/hooks/useAutoFocus.ts +1 -1
- package/src/hooks/useColorScheme.ts +3 -4
- package/src/hooks/useConfigDirection.ts +3 -4
- package/src/hooks/useDateInput.ts +1 -2
- package/src/hooks/useFocusTrap/useAutoFocus.ts +1 -1
- package/src/hooks/useFocusTrap/useFocusTrap.tsx +2 -0
- package/src/hooks/useFocusVisible.ts +10 -18
- package/src/hooks/useFocusWithin.ts +26 -23
- package/src/hooks/useGlobalEscKeyDown.ts +12 -15
- package/src/hooks/useGlobalOnClickOutside.ts +5 -2
- package/src/hooks/useKeyboardInputTracker.ts +68 -55
- package/src/hooks/useLatestRef.ts +12 -0
- package/src/hooks/useLocale.ts +3 -4
- package/src/hooks/useMediaQueryMatch.ts +1 -1
- package/src/hooks/useMutationObserver.ts +2 -3
- package/src/hooks/usePlatform.ts +3 -4
- package/src/hooks/useResizeObserver.ts +4 -5
- package/src/hooks/useSyncHTMLWithBaseVKUIClasses.ts +1 -1
- package/src/hooks/useSyncHTMLWithTokens.ts +1 -1
- package/src/hooks/useWaitTransitionFinish.ts +15 -15
- package/src/index.ts +1 -0
- package/src/lib/array.ts +19 -0
- package/src/lib/curve.ts +36 -0
- package/src/lib/dom.tsx +10 -4
- package/src/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.ts +4 -5
- package/src/lib/fx.ts +5 -63
- package/src/lib/layouts/index.ts +1 -0
- package/src/lib/layouts/layoutProps.ts +8 -0
- package/src/lib/layouts/resolveLayoutProps.ts +19 -17
- package/src/lib/layouts/types.ts +29 -0
- package/src/lib/material/shapes/Shape.tsx +17 -0
- package/src/lib/material/shapes/shapes.ts +329 -0
- package/src/lib/math.ts +37 -0
- package/src/lib/svg/path/approximate.ts +81 -0
- package/src/lib/svg/path/interpolate.ts +151 -0
- package/src/lib/svg/path/path.ts +102 -0
- package/src/lib/svg/path/point.ts +2 -0
- package/src/lib/svg/path/transform.ts +147 -0
- package/src/lib/tokens/useTokenClassName.ts +7 -5
- package/src/lib/touch/UIPanGestureRecognizer.ts +2 -2
- package/src/types.ts +16 -0
- package/dist/cssm/components/WriteBar/WriteBar.module.css +0 -118
- package/dist/cssm/lib/floating/LockFloatingPosition/LockFloatingPosition.js +0 -6
- package/dist/cssm/lib/floating/LockFloatingPosition/LockFloatingPosition.js.map +0 -1
- package/dist/lib/floating/LockFloatingPosition/LockFloatingPosition.d.ts +0 -6
- package/dist/lib/floating/LockFloatingPosition/LockFloatingPosition.d.ts.map +0 -1
- package/dist/lib/floating/LockFloatingPosition/LockFloatingPosition.js +0 -6
- package/dist/lib/floating/LockFloatingPosition/LockFloatingPosition.js.map +0 -1
- package/src/components/WriteBar/WriteBar.module.css +0 -116
- package/src/components/WriteBar/WriteBar.module.css.d.ts.map +0 -1
- package/src/lib/floating/LockFloatingPosition/LockFloatingPosition.tsx +0 -6
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useAnimationFrame } from '../../../hooks/useAnimationFrame';
|
|
5
|
+
import { useReducedMotion } from '../../../lib/animation';
|
|
6
|
+
import * as shapes from '../../../lib/material/shapes/shapes';
|
|
7
|
+
import { interpolate } from '../../../lib/svg/path/interpolate';
|
|
8
|
+
import { svgPathToString } from '../../../lib/svg/path/path';
|
|
9
|
+
import * as operation from '../../../lib/svg/path/transform';
|
|
10
|
+
import { SvgIcon } from '../SvgIcon';
|
|
11
|
+
|
|
12
|
+
interface IconMaterialProps {
|
|
13
|
+
/**
|
|
14
|
+
* Список форм.
|
|
15
|
+
*/
|
|
16
|
+
polygons: readonly shapes.ShapeParameters[];
|
|
17
|
+
/**
|
|
18
|
+
* Размер иконки.
|
|
19
|
+
*/
|
|
20
|
+
size: number;
|
|
21
|
+
/**
|
|
22
|
+
* Отключение анимации.
|
|
23
|
+
*/
|
|
24
|
+
disableAnimation: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function IconMaterial(props: IconMaterialProps) {
|
|
28
|
+
return (
|
|
29
|
+
<SvgIcon size={props.size}>
|
|
30
|
+
<IconMaterialPath {...props} />
|
|
31
|
+
</SvgIcon>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const globalRotationDuration = 4666;
|
|
36
|
+
const morphDuration = 200;
|
|
37
|
+
const morphInterval = 650;
|
|
38
|
+
const fullRotation = 360;
|
|
39
|
+
const quarterRotation = fullRotation / 4;
|
|
40
|
+
|
|
41
|
+
function calcProgress(startTime: number, time: number, duration: number, delay = 0) {
|
|
42
|
+
const fullDuration = duration + delay;
|
|
43
|
+
|
|
44
|
+
const timeProgress = fullDuration * (((time - startTime) % fullDuration) / fullDuration);
|
|
45
|
+
|
|
46
|
+
if (timeProgress < delay) {
|
|
47
|
+
return 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return (timeProgress - delay) / duration;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function IconMaterialPath({ size, polygons, disableAnimation }: IconMaterialProps) {
|
|
54
|
+
const ref = React.useRef<SVGPathElement>(null);
|
|
55
|
+
|
|
56
|
+
const morphSequence = React.useMemo(() => {
|
|
57
|
+
function getShape(index: number, size: number) {
|
|
58
|
+
return shapes.shapeWithRotate(polygons[index], size);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return new Array(polygons.length).fill(0).map((_, index) => {
|
|
62
|
+
return interpolate(getShape(index, size), getShape((index + 1) % polygons.length, size), {
|
|
63
|
+
maxSegmentLength: 2,
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
}, [size, polygons]);
|
|
67
|
+
|
|
68
|
+
const initialPath = React.useMemo(() => svgPathToString(morphSequence[0](0)), [morphSequence]);
|
|
69
|
+
|
|
70
|
+
const callback = React.useCallback(
|
|
71
|
+
(time: number) => {
|
|
72
|
+
const rotationAnimationProgress = calcProgress(0, time, globalRotationDuration);
|
|
73
|
+
const globalRotation = rotationAnimationProgress * fullRotation;
|
|
74
|
+
|
|
75
|
+
// TODO: spring({
|
|
76
|
+
// dampingRatio: 0.6,
|
|
77
|
+
// stiffness: 200,
|
|
78
|
+
// visibilityThreshold: 0.1,
|
|
79
|
+
// })
|
|
80
|
+
const morphProgress = calcProgress(0, time, morphDuration, morphInterval);
|
|
81
|
+
|
|
82
|
+
const roundMorphIndex = Math.floor(time / (morphDuration + morphInterval));
|
|
83
|
+
|
|
84
|
+
const currentMorphIndex = roundMorphIndex % morphSequence.length;
|
|
85
|
+
|
|
86
|
+
const morphRotationTargetAngle = (roundMorphIndex * quarterRotation) % fullRotation;
|
|
87
|
+
const rotation = morphProgress * quarterRotation + morphRotationTargetAngle + globalRotation;
|
|
88
|
+
|
|
89
|
+
const morphFn = morphSequence[currentMorphIndex];
|
|
90
|
+
const morph = morphFn(morphProgress);
|
|
91
|
+
|
|
92
|
+
ref.current!.setAttribute(
|
|
93
|
+
'd',
|
|
94
|
+
svgPathToString(operation.rotate(morph, size / 2, size / 2, rotation)),
|
|
95
|
+
);
|
|
96
|
+
},
|
|
97
|
+
[morphSequence, size],
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
const isReducedMotion = useReducedMotion();
|
|
101
|
+
useAnimationFrame(callback, disableAnimation || isReducedMotion);
|
|
102
|
+
|
|
103
|
+
return <path ref={ref} fill="currentColor" d={initialPath}></path>;
|
|
104
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type HasRootRef } from '../../types';
|
|
2
|
+
import { RootComponent } from '../RootComponent/RootComponent';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Возвращает класс для иконки.
|
|
6
|
+
*/
|
|
7
|
+
export function iconClassName(size: number) {
|
|
8
|
+
return `vkuiIcon vkuiIcon--${size} vkuiIcon--w-${size} vkuiIcon--h-${size}`;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface SvgIconProps extends React.ComponentProps<'svg'>, HasRootRef<SVGElement> {
|
|
12
|
+
/**
|
|
13
|
+
* Размер иконки.
|
|
14
|
+
*/
|
|
15
|
+
size: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function SvgIcon({ size, children, ...restProps }: SvgIconProps) {
|
|
19
|
+
return (
|
|
20
|
+
<RootComponent
|
|
21
|
+
Component="svg"
|
|
22
|
+
baseClassName={iconClassName(size)}
|
|
23
|
+
aria-hidden="true"
|
|
24
|
+
width={size}
|
|
25
|
+
height={size}
|
|
26
|
+
{...restProps}
|
|
27
|
+
>
|
|
28
|
+
{children}
|
|
29
|
+
</RootComponent>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -1,57 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
function iconClassName(size: number) {
|
|
4
|
-
return `vkuiIcon vkuiIcon--${size} vkuiIcon--w-${size} vkuiIcon--h-${size}`;
|
|
5
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SvgIcon } from './SvgIcon';
|
|
6
3
|
|
|
7
4
|
export function Icon16Spinner({ children }: React.PropsWithChildren) {
|
|
8
5
|
return (
|
|
9
|
-
<
|
|
6
|
+
<SvgIcon size={16}>
|
|
10
7
|
<path
|
|
11
8
|
fill="currentColor"
|
|
12
9
|
d="M8 3.25a4.75 4.75 0 0 0-4.149 7.065.75.75 0 1 1-1.31.732A6.25 6.25 0 1 1 8 14.25a.75.75 0 0 1 .001-1.5 4.75 4.75 0 1 0 0-9.5Z"
|
|
13
10
|
>
|
|
14
11
|
{children}
|
|
15
12
|
</path>
|
|
16
|
-
</
|
|
13
|
+
</SvgIcon>
|
|
17
14
|
);
|
|
18
15
|
}
|
|
19
16
|
|
|
20
17
|
export function Icon24Spinner({ children }: React.PropsWithChildren) {
|
|
21
18
|
return (
|
|
22
|
-
<
|
|
19
|
+
<SvgIcon size={24}>
|
|
23
20
|
<path
|
|
24
21
|
fill="currentColor"
|
|
25
22
|
d="M16.394 5.077A8.2 8.2 0 0 0 4.58 15.49a.9.9 0 0 1-1.628.767A10 10 0 1 1 12 22a.9.9 0 0 1 0-1.8 8.2 8.2 0 0 0 4.394-15.123"
|
|
26
23
|
>
|
|
27
24
|
{children}
|
|
28
25
|
</path>
|
|
29
|
-
</
|
|
26
|
+
</SvgIcon>
|
|
30
27
|
);
|
|
31
28
|
}
|
|
32
29
|
|
|
33
30
|
export function Icon32Spinner({ children }: React.PropsWithChildren) {
|
|
34
31
|
return (
|
|
35
|
-
<
|
|
32
|
+
<SvgIcon size={32}>
|
|
36
33
|
<path
|
|
37
34
|
fill="currentColor"
|
|
38
35
|
d="M16 32a1.5 1.5 0 0 1 0-3c7.18 0 13-5.82 13-13S23.18 3 16 3 3 8.82 3 16c0 1.557.273 3.074.8 4.502A1.5 1.5 0 1 1 .986 21.54 16 16 0 0 1 0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16"
|
|
39
36
|
>
|
|
40
37
|
{children}
|
|
41
38
|
</path>
|
|
42
|
-
</
|
|
39
|
+
</SvgIcon>
|
|
43
40
|
);
|
|
44
41
|
}
|
|
45
42
|
|
|
46
43
|
export function Icon44Spinner({ children }: React.PropsWithChildren) {
|
|
47
44
|
return (
|
|
48
|
-
<
|
|
45
|
+
<SvgIcon size={44}>
|
|
49
46
|
<path
|
|
50
47
|
fill="currentColor"
|
|
51
48
|
d="M22 44a1.5 1.5 0 0 1 0-3c10.493 0 19-8.507 19-19S32.493 3 22 3 3 11.507 3 22c0 2.208.376 4.363 1.103 6.397a1.5 1.5 0 1 1-2.825 1.01A22 22 0 0 1 0 22C0 9.85 9.85 0 22 0s22 9.85 22 22-9.85 22-22 22"
|
|
52
49
|
>
|
|
53
50
|
{children}
|
|
54
51
|
</path>
|
|
55
|
-
</
|
|
52
|
+
</SvgIcon>
|
|
56
53
|
);
|
|
57
54
|
}
|
|
@@ -13,7 +13,7 @@ const warn = warnOnce('SplitLayout');
|
|
|
13
13
|
|
|
14
14
|
export interface SplitLayoutProps extends HTMLAttributesWithRootRef<HTMLDivElement> {
|
|
15
15
|
/**
|
|
16
|
-
* @deprecated Since 7.9.0. Будет
|
|
16
|
+
* @deprecated Since 7.9.0. Будет удалено в **VKUI v9**.
|
|
17
17
|
* Вместо этого используйте `slotProps={ content: { getRootRef: ... } }`.
|
|
18
18
|
*/
|
|
19
19
|
getRef?: React.Ref<HTMLDivElement> | undefined;
|
|
@@ -35,7 +35,7 @@ export interface SplitLayoutProps extends HTMLAttributesWithRootRef<HTMLDivEleme
|
|
|
35
35
|
/**
|
|
36
36
|
* Свойство для отрисовки `Alert`, `ActionSheet` и `ScreenSpinner`.
|
|
37
37
|
*
|
|
38
|
-
* @deprecated Since 7.0.0. Будет
|
|
38
|
+
* @deprecated Since 7.0.0. Будет удалено в **VKUI v9**.
|
|
39
39
|
* Начиная с **VKUI v7** компоненты можно располагать в любом
|
|
40
40
|
* месте приложения в пределах `AppRoot`.
|
|
41
41
|
*/
|
|
@@ -43,7 +43,7 @@ export interface SplitLayoutProps extends HTMLAttributesWithRootRef<HTMLDivEleme
|
|
|
43
43
|
/**
|
|
44
44
|
* Свойство для отрисовки `ModalRoot`.
|
|
45
45
|
*
|
|
46
|
-
* @deprecated Since 7.0.0. Будет
|
|
46
|
+
* @deprecated Since 7.0.0. Будет удалено в **VKUI v9**.
|
|
47
47
|
* Начиная с **VKUI v7** `ModalRoot` можно располагать в любом
|
|
48
48
|
* месте приложения в пределах `AppRoot`.
|
|
49
49
|
*/
|
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import { classNames, hasReactNode } from '@vkontakte/vkjs';
|
|
5
5
|
import { useAdaptivity } from '../../hooks/useAdaptivity';
|
|
6
6
|
import { useExternRef } from '../../hooks/useExternRef';
|
|
7
|
-
import { useDOM } from '../../lib/dom';
|
|
8
7
|
import { warnOnce } from '../../lib/warnOnce';
|
|
9
8
|
import type { AnchorHTMLAttributesOnly, HTMLAttributesWithRootRef } from '../../types';
|
|
10
9
|
import { TabsControllerContext } from '../Tabs/TabsControllerContext';
|
|
@@ -147,7 +146,6 @@ export const TabsItem = ({
|
|
|
147
146
|
|
|
148
147
|
const prevSelectedRef = React.useRef<boolean | undefined>(undefined);
|
|
149
148
|
|
|
150
|
-
const { document } = useDOM();
|
|
151
149
|
React.useEffect(
|
|
152
150
|
function scrollToSelectedItem() {
|
|
153
151
|
const isInitialRender = prevSelectedRef.current === undefined;
|
|
@@ -159,13 +157,14 @@ export const TabsItem = ({
|
|
|
159
157
|
|
|
160
158
|
prevSelectedRef.current = selected;
|
|
161
159
|
|
|
162
|
-
if (!shouldScrollToSelected || !rootRef.current
|
|
160
|
+
if (!shouldScrollToSelected || !rootRef.current) {
|
|
163
161
|
return;
|
|
164
162
|
}
|
|
165
163
|
|
|
166
164
|
const tabDOMRect = rootRef.current.getBoundingClientRect();
|
|
167
165
|
const isTabVerticallyOutsideOfViewport =
|
|
168
|
-
tabDOMRect.top < 0 ||
|
|
166
|
+
tabDOMRect.top < 0 ||
|
|
167
|
+
tabDOMRect.bottom > rootRef.current.ownerDocument.documentElement.clientHeight;
|
|
169
168
|
|
|
170
169
|
/* проверяем, возможен ли вертикальный скролл, а он возможен для scrollIntoView если
|
|
171
170
|
* элемент вертикально вне зоны видимости */
|
|
@@ -186,7 +185,7 @@ export const TabsItem = ({
|
|
|
186
185
|
**/
|
|
187
186
|
}
|
|
188
187
|
},
|
|
189
|
-
[rootRef,
|
|
188
|
+
[rootRef, scrollBehaviorToSelectedTab, withScrollToSelectedTab, selected],
|
|
190
189
|
);
|
|
191
190
|
|
|
192
191
|
const _onClick: React.MouseEventHandler<HTMLElement> = React.useCallback(
|
|
@@ -44,13 +44,13 @@ export interface TappableProps extends ClickableProps, StateProps {
|
|
|
44
44
|
*/
|
|
45
45
|
borderRadiusMode?: 'auto' | 'inherit' | undefined;
|
|
46
46
|
/**
|
|
47
|
-
* @deprecated Since 7.3.0. Будет
|
|
47
|
+
* @deprecated Since 7.3.0. Будет удалено в **VKUI v9**.
|
|
48
48
|
*
|
|
49
49
|
* Используйте свойство `activeMode`.
|
|
50
50
|
*/
|
|
51
51
|
activeClassName?: string | undefined; // TODO [>=9]: удалить неиспользуемое свойство.
|
|
52
52
|
/**
|
|
53
|
-
* @deprecated Since 7.3.0. Будет
|
|
53
|
+
* @deprecated Since 7.3.0. Будет удалено в **VKUI v9**.
|
|
54
54
|
*
|
|
55
55
|
* Используйте свойство `hoverMode`.
|
|
56
56
|
*/
|
|
@@ -5,7 +5,6 @@ import { classNames } from '@vkontakte/vkjs';
|
|
|
5
5
|
import { usePlatform } from '../../hooks/usePlatform';
|
|
6
6
|
import { millisecondsInSecond } from '../../lib/date';
|
|
7
7
|
import { blurActiveElement, useDOM } from '../../lib/dom';
|
|
8
|
-
import { LockFloatingPositionContext } from '../../lib/floating/LockFloatingPosition/LockFloatingPosition';
|
|
9
8
|
import { getNavId, type NavIdProps } from '../../lib/getNavId';
|
|
10
9
|
import { warnOnce } from '../../lib/warnOnce';
|
|
11
10
|
import type { HTMLAttributesWithRootRef } from '../../types';
|
|
@@ -457,96 +456,91 @@ export const View = ({
|
|
|
457
456
|
|
|
458
457
|
return (
|
|
459
458
|
<NavViewIdContext.Provider value={id}>
|
|
460
|
-
<
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
const marginTop = scrolls.get(panelId);
|
|
500
|
-
if (marginTop !== undefined) {
|
|
501
|
-
scrollCompensateStyle = { marginTop: -1 * marginTop };
|
|
502
|
-
}
|
|
459
|
+
<Touch
|
|
460
|
+
Component="section"
|
|
461
|
+
{...restProps}
|
|
462
|
+
className={classNames(
|
|
463
|
+
styles.host,
|
|
464
|
+
platform === 'ios' && classNames(styles.ios, 'vkuiInternalView--ios'),
|
|
465
|
+
!disableAnimation && animated && styles.animated,
|
|
466
|
+
!disableAnimation && swipingBack && styles.swipingBack,
|
|
467
|
+
disableAnimation && styles.noMotion,
|
|
468
|
+
className,
|
|
469
|
+
)}
|
|
470
|
+
onMoveX={
|
|
471
|
+
iOSSwipeBackSimulationEnabled
|
|
472
|
+
? handleTouchMoveXForIOSSwipeBackSimulation
|
|
473
|
+
: platform === 'ios'
|
|
474
|
+
? handleTouchMoveXForNativeIOSSwipeBackOrSwipeNext
|
|
475
|
+
: undefined
|
|
476
|
+
}
|
|
477
|
+
onEnd={iOSSwipeBackSimulationEnabled ? handleTouchEndForIOSSwipeBackSimulation : undefined}
|
|
478
|
+
>
|
|
479
|
+
<div className={styles.panels}>
|
|
480
|
+
{panels.map((panel) => {
|
|
481
|
+
const panelId = getNavId(panel.props, warn);
|
|
482
|
+
|
|
483
|
+
const isPanelActive = panelId === activePanel;
|
|
484
|
+
const isPanelPrev = panelId === prevPanel;
|
|
485
|
+
const isPanelNext = panelId === nextPanel;
|
|
486
|
+
const isAnimatedTarget = animated && (isBack ? isPanelPrev : isPanelNext);
|
|
487
|
+
|
|
488
|
+
const isSwipeBackPrev = panelId === swipeBackPrevPanel;
|
|
489
|
+
const isSwipeBackNext = panelId === swipeBackNextPanel;
|
|
490
|
+
const isSwipeBackTarget = swipeBackResult && isSwipeBackPrev;
|
|
491
|
+
|
|
492
|
+
let scrollCompensateStyle: React.CSSProperties | undefined = undefined;
|
|
493
|
+
|
|
494
|
+
if (isPanelPrev || (isPanelNext && isBack) || isSwipeBackPrev || isSwipeBackNext) {
|
|
495
|
+
const marginTop = scrolls.get(panelId);
|
|
496
|
+
if (marginTop !== undefined) {
|
|
497
|
+
scrollCompensateStyle = { marginTop: -1 * marginTop };
|
|
503
498
|
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
<
|
|
536
|
-
<
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
</div>
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
return (
|
|
502
|
+
<div
|
|
503
|
+
className={classNames(
|
|
504
|
+
styles.panel,
|
|
505
|
+
|
|
506
|
+
isPanelActive && styles.panelActive,
|
|
507
|
+
isPanelPrev && styles.panelPrev,
|
|
508
|
+
isPanelNext && styles.panelNext,
|
|
509
|
+
|
|
510
|
+
isSwipeBackPrev && styles.panelSwipeBackPrev,
|
|
511
|
+
isSwipeBackNext && styles.panelSwipeBackNext,
|
|
512
|
+
swipeBackResult === 'success' && styles.panelSwipeBackSuccess,
|
|
513
|
+
swipeBackResult === 'fail' && styles.panelSwipeBackFailed,
|
|
514
|
+
)}
|
|
515
|
+
onTransitionEnd={isSwipeBackTarget ? handleSwipeBackTargetTransitionEnd : undefined}
|
|
516
|
+
onAnimationEnd={isAnimatedTarget ? handleAnimatedTargetAnimationEnd : undefined}
|
|
517
|
+
ref={(el) => {
|
|
518
|
+
panelId !== undefined && (panelNodes.current[panelId] = el);
|
|
519
|
+
}}
|
|
520
|
+
style={calcPanelSwipeStyles(isSwipeBackPrev, isSwipeBackNext)}
|
|
521
|
+
key={panelId}
|
|
522
|
+
>
|
|
523
|
+
{platform === 'ios' && (
|
|
524
|
+
<div
|
|
525
|
+
className={styles.panelOverlay}
|
|
526
|
+
style={calcPanelSwipeBackOverlayStyles(isSwipeBackNext)}
|
|
527
|
+
/>
|
|
528
|
+
)}
|
|
529
|
+
<div className={styles.panelIn} style={scrollCompensateStyle}>
|
|
530
|
+
<NavTransitionDirectionProvider isBack={swipingBack || isBack}>
|
|
531
|
+
<NavTransitionProvider
|
|
532
|
+
entering={panelId === nextPanel || panelId === swipeBackNextPanel}
|
|
533
|
+
animating={swipingBack || animated}
|
|
534
|
+
>
|
|
535
|
+
{panel}
|
|
536
|
+
</NavTransitionProvider>
|
|
537
|
+
</NavTransitionDirectionProvider>
|
|
544
538
|
</div>
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
</
|
|
549
|
-
</
|
|
539
|
+
</div>
|
|
540
|
+
);
|
|
541
|
+
})}
|
|
542
|
+
</div>
|
|
543
|
+
</Touch>
|
|
550
544
|
</NavViewIdContext.Provider>
|
|
551
545
|
);
|
|
552
546
|
};
|
|
@@ -6,7 +6,6 @@ import { withContext } from '../../hoc/withContext';
|
|
|
6
6
|
import { withPlatform } from '../../hoc/withPlatform';
|
|
7
7
|
import { millisecondsInSecond } from '../../lib/date';
|
|
8
8
|
import { canUseDOM, type DOMProps, withDOM } from '../../lib/dom';
|
|
9
|
-
import { LockFloatingPositionContext } from '../../lib/floating/LockFloatingPosition/LockFloatingPosition';
|
|
10
9
|
import { getNavId, type NavIdProps } from '../../lib/getNavId';
|
|
11
10
|
import { warnOnce } from '../../lib/warnOnce';
|
|
12
11
|
import type { HasPlatform, HTMLAttributesWithRootRef } from '../../types';
|
|
@@ -601,78 +600,75 @@ class ViewInfiniteComponent extends React.Component<
|
|
|
601
600
|
|
|
602
601
|
return (
|
|
603
602
|
<NavViewIdContext.Provider value={id || nav}>
|
|
604
|
-
<
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
? this.handleTouchMoveXForNativeIOSSwipeBackOrSwipeNext
|
|
621
|
-
: undefined
|
|
622
|
-
}
|
|
623
|
-
onEnd={
|
|
624
|
-
iOSSwipeBackSimulationEnabled
|
|
625
|
-
? this.handleTouchEndForIOSSwipeBackSimulation
|
|
603
|
+
<Touch
|
|
604
|
+
Component="section"
|
|
605
|
+
{...restProps}
|
|
606
|
+
className={classNames(
|
|
607
|
+
styles.host,
|
|
608
|
+
platform === 'ios' && classNames(styles.ios, 'vkuiInternalView--ios'),
|
|
609
|
+
!disableAnimation && this.state.animated && styles.animated,
|
|
610
|
+
!disableAnimation && this.state.swipingBack && styles.swipingBack,
|
|
611
|
+
disableAnimation && styles.noMotion,
|
|
612
|
+
className,
|
|
613
|
+
)}
|
|
614
|
+
onMoveX={
|
|
615
|
+
iOSSwipeBackSimulationEnabled
|
|
616
|
+
? this.handleTouchMoveXForIOSSwipeBackSimulation
|
|
617
|
+
: platform === 'ios'
|
|
618
|
+
? this.handleTouchMoveXForNativeIOSSwipeBackOrSwipeNext
|
|
626
619
|
: undefined
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
620
|
+
}
|
|
621
|
+
onEnd={
|
|
622
|
+
iOSSwipeBackSimulationEnabled ? this.handleTouchEndForIOSSwipeBackSimulation : undefined
|
|
623
|
+
}
|
|
624
|
+
>
|
|
625
|
+
<div className={styles.panels}>
|
|
626
|
+
{panels.map((panel) => {
|
|
627
|
+
const panelId = getNavId(panel.props, warn);
|
|
628
|
+
const isPrev = panelId === prevPanel || panelId === swipeBackPrevPanel;
|
|
629
|
+
const compensateScroll =
|
|
630
|
+
isPrev || panelId === swipeBackNextPanel || (panelId === nextPanel && isBack);
|
|
631
|
+
const isTransitionTarget = animated && panelId === (isBack ? prevPanel : nextPanel);
|
|
632
|
+
const scrollList = (panelId && this.scrolls.get(panelId)) || [];
|
|
633
|
+
const scroll = scrollList[scrollList.length - 1] || 0;
|
|
634
|
+
|
|
635
|
+
return (
|
|
636
|
+
<div
|
|
637
|
+
className={classNames(
|
|
638
|
+
styles.panel,
|
|
639
|
+
panelId === activePanel && styles.panelActive,
|
|
640
|
+
panelId === prevPanel && styles.panelPrev,
|
|
641
|
+
panelId === nextPanel && styles.panelNext,
|
|
642
|
+
panelId === swipeBackPrevPanel && styles.panelSwipeBackPrev,
|
|
643
|
+
panelId === swipeBackNextPanel && styles.panelSwipeBackNext,
|
|
644
|
+
swipeBackResult === 'success' && styles.panelSwipeBackSuccess,
|
|
645
|
+
swipeBackResult === 'fail' && styles.panelSwipeBackFailed,
|
|
646
|
+
)}
|
|
647
|
+
onAnimationEnd={isTransitionTarget ? this.transitionEndHandler : undefined}
|
|
648
|
+
ref={(el) => {
|
|
649
|
+
panelId !== undefined && (this.panelNodes[panelId] = el);
|
|
650
|
+
}}
|
|
651
|
+
style={this.calcPanelSwipeStyles(panelId)}
|
|
652
|
+
key={panelId}
|
|
653
|
+
>
|
|
640
654
|
<div
|
|
641
|
-
className={
|
|
642
|
-
|
|
643
|
-
panelId === activePanel && styles.panelActive,
|
|
644
|
-
panelId === prevPanel && styles.panelPrev,
|
|
645
|
-
panelId === nextPanel && styles.panelNext,
|
|
646
|
-
panelId === swipeBackPrevPanel && styles.panelSwipeBackPrev,
|
|
647
|
-
panelId === swipeBackNextPanel && styles.panelSwipeBackNext,
|
|
648
|
-
swipeBackResult === 'success' && styles.panelSwipeBackSuccess,
|
|
649
|
-
swipeBackResult === 'fail' && styles.panelSwipeBackFailed,
|
|
650
|
-
)}
|
|
651
|
-
onAnimationEnd={isTransitionTarget ? this.transitionEndHandler : undefined}
|
|
652
|
-
ref={(el) => {
|
|
653
|
-
panelId !== undefined && (this.panelNodes[panelId] = el);
|
|
654
|
-
}}
|
|
655
|
-
style={this.calcPanelSwipeStyles(panelId)}
|
|
656
|
-
key={panelId}
|
|
655
|
+
className={styles.panelIn}
|
|
656
|
+
style={{ marginTop: compensateScroll ? -scroll : undefined }}
|
|
657
657
|
>
|
|
658
|
-
<
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
{panel}
|
|
667
|
-
</NavTransitionProvider>
|
|
668
|
-
</NavTransitionDirectionProvider>
|
|
669
|
-
</div>
|
|
658
|
+
<NavTransitionDirectionProvider isBack={swipingBack || isBack}>
|
|
659
|
+
<NavTransitionProvider
|
|
660
|
+
entering={panelId === nextPanel || panelId === swipeBackNextPanel}
|
|
661
|
+
animating={swipingBack || animated}
|
|
662
|
+
>
|
|
663
|
+
{panel}
|
|
664
|
+
</NavTransitionProvider>
|
|
665
|
+
</NavTransitionDirectionProvider>
|
|
670
666
|
</div>
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
</
|
|
675
|
-
</
|
|
667
|
+
</div>
|
|
668
|
+
);
|
|
669
|
+
})}
|
|
670
|
+
</div>
|
|
671
|
+
</Touch>
|
|
676
672
|
</NavViewIdContext.Provider>
|
|
677
673
|
);
|
|
678
674
|
}
|