@vkontakte/vkui 4.28.0 → 4.28.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/.browserslistrc +2 -0
- package/.cache/.eslintcache +1 -0
- package/.cache/.stylelintcache +1 -0
- package/.cache/.tsbuildinfo +58386 -0
- package/.cache/ts/src/appearance/constants.d.ts +1 -0
- package/.cache/ts/src/components/ActionSheet/ActionSheet.d.ts +26 -0
- package/.cache/ts/src/components/ActionSheet/ActionSheetContext.d.ts +8 -0
- package/.cache/ts/src/components/ActionSheet/ActionSheetDropdown.d.ts +4 -0
- package/.cache/ts/src/components/ActionSheet/ActionSheetDropdownDesktop.d.ts +4 -0
- package/.cache/ts/src/components/ActionSheet/types.d.ts +9 -0
- package/.cache/ts/src/components/ActionSheetItem/ActionSheetItem.d.ts +20 -0
- package/.cache/ts/src/components/AdaptivityProvider/AdaptivityContext.d.ts +46 -0
- package/.cache/ts/src/components/AdaptivityProvider/AdaptivityProvider.d.ts +10 -0
- package/.cache/ts/src/components/Alert/Alert.d.ts +24 -0
- package/.cache/ts/src/components/AppRoot/AppRoot.d.ts +14 -0
- package/.cache/ts/src/components/AppRoot/AppRootContext.d.ts +9 -0
- package/.cache/ts/src/components/AppRoot/AppRootPortal.d.ts +5 -0
- package/.cache/ts/src/components/AppRoot/ScrollContext.d.ts +23 -0
- package/.cache/ts/src/components/AppearanceProvider/AppearanceProvider.d.ts +7 -0
- package/.cache/ts/src/components/AppearanceProvider/AppearanceProviderContext.d.ts +3 -0
- package/.cache/ts/src/components/Avatar/Avatar.d.ts +22 -0
- package/.cache/ts/src/components/Badge/Badge.d.ts +6 -0
- package/.cache/ts/src/components/Banner/Banner.d.ts +65 -0
- package/.cache/ts/src/components/Button/Button.d.ts +20 -0
- package/.cache/ts/src/components/ButtonGroup/ButtonGroup.d.ts +20 -0
- package/.cache/ts/src/components/Calendar/Calendar.d.ts +21 -0
- package/.cache/ts/src/components/CalendarDay/CalendarDay.d.ts +22 -0
- package/.cache/ts/src/components/CalendarDays/CalendarDays.d.ts +22 -0
- package/.cache/ts/src/components/CalendarHeader/CalendarHeader.d.ts +16 -0
- package/.cache/ts/src/components/CalendarRange/CalendarRange.d.ts +16 -0
- package/.cache/ts/src/components/CalendarTime/CalendarTime.d.ts +11 -0
- package/.cache/ts/src/components/Card/Card.d.ts +7 -0
- package/.cache/ts/src/components/CardGrid/CardGrid.d.ts +8 -0
- package/.cache/ts/src/components/CardScroll/CardScroll.d.ts +12 -0
- package/.cache/ts/src/components/Cell/Cell.d.ts +47 -0
- package/.cache/ts/src/components/Cell/CellCheckbox/CellCheckbox.d.ts +5 -0
- package/.cache/ts/src/components/Cell/CellDragger/CellDragger.d.ts +6 -0
- package/.cache/ts/src/components/Cell/useDraggable.d.ts +13 -0
- package/.cache/ts/src/components/CellButton/CellButton.d.ts +9 -0
- package/.cache/ts/src/components/Checkbox/Checkbox.d.ts +10 -0
- package/.cache/ts/src/components/Chip/Chip.d.ts +16 -0
- package/.cache/ts/src/components/ChipsInput/ChipsInput.d.ts +30 -0
- package/.cache/ts/src/components/ChipsInput/useChipsInput.d.ts +14 -0
- package/.cache/ts/src/components/ChipsSelect/ChipsSelect.d.ts +40 -0
- package/.cache/ts/src/components/ChipsSelect/useChipsSelect.d.ts +22 -0
- package/.cache/ts/src/components/ClickPopper/ClickPopper.d.ts +21 -0
- package/.cache/ts/src/components/ConfigProvider/ConfigProvider.d.ts +16 -0
- package/.cache/ts/src/components/ConfigProvider/ConfigProviderContext.d.ts +36 -0
- package/.cache/ts/src/components/ContentCard/ContentCard.d.ts +34 -0
- package/.cache/ts/src/components/Counter/Counter.d.ts +11 -0
- package/.cache/ts/src/components/CustomScrollView/CustomScrollView.d.ts +10 -0
- package/.cache/ts/src/components/CustomSelect/CustomSelect.d.ts +65 -0
- package/.cache/ts/src/components/CustomSelectDropdown/CustomSelectDropdown.d.ts +15 -0
- package/.cache/ts/src/components/CustomSelectOption/CustomSelectOption.d.ts +15 -0
- package/.cache/ts/src/components/DateInput/DateInput.d.ts +12 -0
- package/.cache/ts/src/components/DatePicker/DatePicker.d.ts +24 -0
- package/.cache/ts/src/components/DateRangeInput/DateRangeInput.d.ts +18 -0
- package/.cache/ts/src/components/Div/Div.d.ts +6 -0
- package/.cache/ts/src/components/Dropdown/Dropdown.d.ts +8 -0
- package/.cache/ts/src/components/DropdownIcon/DropdownIcon.d.ts +3 -0
- package/.cache/ts/src/components/Epic/Epic.d.ts +10 -0
- package/.cache/ts/src/components/Epic/ScrollSaver.d.ts +6 -0
- package/.cache/ts/src/components/File/File.d.ts +9 -0
- package/.cache/ts/src/components/FixedLayout/FixedLayout.d.ts +19 -0
- package/.cache/ts/src/components/FocusTrap/FocusTrap.d.ts +8 -0
- package/.cache/ts/src/components/FocusVisible/FocusVisible.d.ts +8 -0
- package/.cache/ts/src/components/Footer/Footer.d.ts +5 -0
- package/.cache/ts/src/components/FormField/FormField.d.ts +14 -0
- package/.cache/ts/src/components/FormItem/FormItem.d.ts +14 -0
- package/.cache/ts/src/components/FormLayout/FormLayout.d.ts +6 -0
- package/.cache/ts/src/components/FormLayoutGroup/FormLayoutGroup.d.ts +13 -0
- package/.cache/ts/src/components/FormStatus/FormStatus.d.ts +7 -0
- package/.cache/ts/src/components/Gallery/Gallery.d.ts +39 -0
- package/.cache/ts/src/components/Gradient/Gradient.d.ts +7 -0
- package/.cache/ts/src/components/GridAvatar/GridAvatar.d.ts +8 -0
- package/.cache/ts/src/components/Group/Group.d.ts +23 -0
- package/.cache/ts/src/components/Header/Header.d.ts +18 -0
- package/.cache/ts/src/components/HorizontalCell/HorizontalCell.d.ts +10 -0
- package/.cache/ts/src/components/HorizontalScroll/HorizontalScroll.d.ts +19 -0
- package/.cache/ts/src/components/HorizontalScroll/HorizontalScrollArrow.d.ts +8 -0
- package/.cache/ts/src/components/HoverPopper/HoverPopper.d.ts +29 -0
- package/.cache/ts/src/components/IconButton/IconButton.d.ts +11 -0
- package/.cache/ts/src/components/InfoRow/InfoRow.d.ts +7 -0
- package/.cache/ts/src/components/InitialsAvatar/InitialsAvatar.d.ts +32 -0
- package/.cache/ts/src/components/Input/Input.d.ts +9 -0
- package/.cache/ts/src/components/InputLike/InputLike.d.ts +10 -0
- package/.cache/ts/src/components/InputLike/InputLikeDivider.d.ts +3 -0
- package/.cache/ts/src/components/Link/Link.d.ts +6 -0
- package/.cache/ts/src/components/List/List.d.ts +4 -0
- package/.cache/ts/src/components/List/ListContext.d.ts +4 -0
- package/.cache/ts/src/components/LocaleProviderContext/LocaleProviderContext.d.ts +2 -0
- package/.cache/ts/src/components/MiniInfoCell/MiniInfoCell.d.ts +39 -0
- package/.cache/ts/src/components/ModalCard/ModalCard.d.ts +10 -0
- package/.cache/ts/src/components/ModalCardBase/ModalCardBase.d.ts +32 -0
- package/.cache/ts/src/components/ModalDismissButton/ModalDismissButton.d.ts +5 -0
- package/.cache/ts/src/components/ModalPage/ModalPage.d.ts +22 -0
- package/.cache/ts/src/components/ModalPageHeader/ModalPageHeader.d.ts +8 -0
- package/.cache/ts/src/components/ModalRoot/ModalRoot.d.ts +16 -0
- package/.cache/ts/src/components/ModalRoot/ModalRootAdaptive.d.ts +10 -0
- package/.cache/ts/src/components/ModalRoot/ModalRootContext.d.ts +20 -0
- package/.cache/ts/src/components/ModalRoot/ModalRootDesktop.d.ts +16 -0
- package/.cache/ts/src/components/ModalRoot/constants.d.ts +3 -0
- package/.cache/ts/src/components/ModalRoot/types.d.ts +45 -0
- package/.cache/ts/src/components/ModalRoot/useModalManager.d.ts +37 -0
- package/.cache/ts/src/components/ModalRoot/withModalRootContext.d.ts +5 -0
- package/.cache/ts/src/components/NativeSelect/NativeSelect.d.ts +15 -0
- package/.cache/ts/src/components/NavTransitionContext/NavTransitionContext.d.ts +7 -0
- package/.cache/ts/src/components/Pagination/Pagination.d.ts +42 -0
- package/.cache/ts/src/components/Panel/Panel.d.ts +9 -0
- package/.cache/ts/src/components/PanelHeader/PanelHeader.d.ts +21 -0
- package/.cache/ts/src/components/PanelHeaderBack/PanelHeaderBack.d.ts +9 -0
- package/.cache/ts/src/components/PanelHeaderButton/PanelHeaderButton.d.ts +8 -0
- package/.cache/ts/src/components/PanelHeaderClose/PanelHeaderClose.d.ts +4 -0
- package/.cache/ts/src/components/PanelHeaderContent/PanelHeaderContent.d.ts +9 -0
- package/.cache/ts/src/components/PanelHeaderContext/PanelHeaderContext.d.ts +7 -0
- package/.cache/ts/src/components/PanelHeaderEdit/PanelHeaderEdit.d.ts +18 -0
- package/.cache/ts/src/components/PanelHeaderSubmit/PanelHeaderSubmit.d.ts +4 -0
- package/.cache/ts/src/components/PanelSpinner/PanelSpinner.d.ts +7 -0
- package/.cache/ts/src/components/Placeholder/Placeholder.d.ts +23 -0
- package/.cache/ts/src/components/PopoutRoot/PopoutRoot.d.ts +10 -0
- package/.cache/ts/src/components/PopoutWrapper/PopoutWrapper.d.ts +10 -0
- package/.cache/ts/src/components/Popper/Popper.d.ts +32 -0
- package/.cache/ts/src/components/Progress/Progress.d.ts +8 -0
- package/.cache/ts/src/components/PromoBanner/PromoBanner.d.ts +40 -0
- package/.cache/ts/src/components/PullToRefresh/PullToRefresh.d.ts +37 -0
- package/.cache/ts/src/components/PullToRefresh/PullToRefreshSpinner.d.ts +11 -0
- package/.cache/ts/src/components/Radio/Radio.d.ts +9 -0
- package/.cache/ts/src/components/RadioGroup/RadioGroup.d.ts +6 -0
- package/.cache/ts/src/components/RangeSlider/RangeSlider.d.ts +6 -0
- package/.cache/ts/src/components/RangeSlider/UniversalSlider.d.ts +16 -0
- package/.cache/ts/src/components/Removable/Removable.d.ts +21 -0
- package/.cache/ts/src/components/RichCell/RichCell.d.ts +37 -0
- package/.cache/ts/src/components/RichTooltip/RichTooltip.d.ts +5 -0
- package/.cache/ts/src/components/Root/Root.d.ts +31 -0
- package/.cache/ts/src/components/ScreenSpinner/ScreenSpinner.d.ts +6 -0
- package/.cache/ts/src/components/Search/Search.d.ts +17 -0
- package/.cache/ts/src/components/SegmentedControl/SegmentedControl.d.ts +17 -0
- package/.cache/ts/src/components/SegmentedControl/SegmentedControlOption/SegmentedControlOption.d.ts +4 -0
- package/.cache/ts/src/components/Select/Select.d.ts +7 -0
- package/.cache/ts/src/components/SelectMimicry/SelectMimicry.d.ts +14 -0
- package/.cache/ts/src/components/Separator/Separator.d.ts +11 -0
- package/.cache/ts/src/components/SimpleCell/SimpleCell.d.ts +39 -0
- package/.cache/ts/src/components/SimpleCheckbox/SimpleCheckbox.d.ts +8 -0
- package/.cache/ts/src/components/Slider/Slider.d.ts +5 -0
- package/.cache/ts/src/components/SliderSwitch/SliderSwitch.d.ts +47 -0
- package/.cache/ts/src/components/SliderSwitch/SliderSwitchButton.d.ts +11 -0
- package/.cache/ts/src/components/Snackbar/Snackbar.d.ts +35 -0
- package/.cache/ts/src/components/Spacing/Spacing.d.ts +18 -0
- package/.cache/ts/src/components/Spinner/Spinner.d.ts +7 -0
- package/.cache/ts/src/components/SplitCol/SplitCol.d.ts +22 -0
- package/.cache/ts/src/components/SplitLayout/SplitLayout.d.ts +15 -0
- package/.cache/ts/src/components/SubnavigationBar/SubnavigationBar.d.ts +7 -0
- package/.cache/ts/src/components/SubnavigationButton/SubnavigationButton.d.ts +21 -0
- package/.cache/ts/src/components/Switch/Switch.d.ts +7 -0
- package/.cache/ts/src/components/Tabbar/Tabbar.d.ts +11 -0
- package/.cache/ts/src/components/TabbarItem/TabbarItem.d.ts +21 -0
- package/.cache/ts/src/components/Tabs/Tabs.d.ts +10 -0
- package/.cache/ts/src/components/TabsItem/TabsItem.d.ts +8 -0
- package/.cache/ts/src/components/Tappable/Tappable.d.ts +42 -0
- package/.cache/ts/src/components/TextTooltip/TextTooltip.d.ts +14 -0
- package/.cache/ts/src/components/Textarea/Textarea.d.ts +11 -0
- package/.cache/ts/src/components/Tooltip/Tooltip.d.ts +55 -0
- package/.cache/ts/src/components/Tooltip/TooltipContainer.d.ts +5 -0
- package/.cache/ts/src/components/Touch/Touch.d.ts +49 -0
- package/.cache/ts/src/components/Touch/TouchContext.d.ts +7 -0
- package/.cache/ts/src/components/Typography/Caption/Caption.d.ts +14 -0
- package/.cache/ts/src/components/Typography/Headline/Headline.d.ts +8 -0
- package/.cache/ts/src/components/Typography/Subhead/Subhead.d.ts +13 -0
- package/.cache/ts/src/components/Typography/Text/Text.d.ts +8 -0
- package/.cache/ts/src/components/Typography/Title/Title.d.ts +14 -0
- package/.cache/ts/src/components/UsersStack/UsersStack.d.ts +23 -0
- package/.cache/ts/src/components/UsersStack/masks.d.ts +1 -0
- package/.cache/ts/src/components/View/View.d.ts +80 -0
- package/.cache/ts/src/components/View/ViewInfinite.d.ts +66 -0
- package/.cache/ts/src/components/View/utils.d.ts +2 -0
- package/.cache/ts/src/components/VisuallyHiddenInput/VisuallyHiddenInput.d.ts +12 -0
- package/.cache/ts/src/components/WriteBar/WriteBar.d.ts +23 -0
- package/.cache/ts/src/components/WriteBarIcon/WriteBarIcon.d.ts +18 -0
- package/.cache/ts/src/helpers/avatar.d.ts +5 -0
- package/.cache/ts/src/helpers/getClassName.d.ts +2 -0
- package/.cache/ts/src/helpers/getScheme.d.ts +8 -0
- package/.cache/ts/src/helpers/math.d.ts +5 -0
- package/.cache/ts/src/helpers/scheme.d.ts +34 -0
- package/.cache/ts/src/helpers/typography.d.ts +1 -0
- package/.cache/ts/src/hoc/withAdaptivity.d.ts +13 -0
- package/.cache/ts/src/hoc/withContext.d.ts +2 -0
- package/.cache/ts/src/hoc/withInsets.d.ts +3 -0
- package/.cache/ts/src/hoc/withPlatform.d.ts +3 -0
- package/.cache/ts/src/hooks/useAdaptivity.d.ts +3 -0
- package/.cache/ts/src/hooks/useAppearance.d.ts +1 -0
- package/.cache/ts/src/hooks/useBooleanState.d.ts +6 -0
- package/.cache/ts/src/hooks/useBrowserInfo.d.ts +2 -0
- package/.cache/ts/src/hooks/useCalendar.d.ts +18 -0
- package/.cache/ts/src/hooks/useDateInput.d.ts +30 -0
- package/.cache/ts/src/hooks/useEffectDev.d.ts +2 -0
- package/.cache/ts/src/hooks/useEnsuredControl.d.ts +6 -0
- package/.cache/ts/src/hooks/useEventListener.d.ts +7 -0
- package/.cache/ts/src/hooks/useExternRef.d.ts +2 -0
- package/.cache/ts/src/hooks/useFocusVisible.d.ts +6 -0
- package/.cache/ts/src/hooks/useGlobalEventListener.d.ts +2 -0
- package/.cache/ts/src/hooks/useInsets.d.ts +8 -0
- package/.cache/ts/src/hooks/useKeyboard.d.ts +11 -0
- package/.cache/ts/src/hooks/useKeyboardInputTracker.d.ts +3 -0
- package/.cache/ts/src/hooks/useObjectMemo.d.ts +2 -0
- package/.cache/ts/src/hooks/useOrientationChange.d.ts +7 -0
- package/.cache/ts/src/hooks/usePagination.d.ts +34 -0
- package/.cache/ts/src/hooks/usePatchChildrenRef.d.ts +6 -0
- package/.cache/ts/src/hooks/usePlatform.d.ts +2 -0
- package/.cache/ts/src/hooks/useTimeout.d.ts +4 -0
- package/.cache/ts/src/hooks/useWaitTransitionFinish.d.ts +3 -0
- package/.cache/ts/src/index.d.ts +289 -0
- package/.cache/ts/src/lib/SSR.d.ts +14 -0
- package/.cache/ts/src/lib/accessibility.d.ts +10 -0
- package/.cache/ts/src/lib/animate.d.ts +15 -0
- package/.cache/ts/src/lib/browser.d.ts +11 -0
- package/.cache/ts/src/lib/calendar.d.ts +14 -0
- package/.cache/ts/src/lib/callMultiple.d.ts +1 -0
- package/.cache/ts/src/lib/classNames.d.ts +6 -0
- package/.cache/ts/src/lib/classScopingMode.d.ts +8 -0
- package/.cache/ts/src/lib/dom.d.ts +21 -0
- package/.cache/ts/src/lib/fx.d.ts +5 -0
- package/.cache/ts/src/lib/getNavId.d.ts +6 -0
- package/.cache/ts/src/lib/is.d.ts +1 -0
- package/.cache/ts/src/lib/isRefObject.d.ts +2 -0
- package/.cache/ts/src/lib/jsxRuntime.d.ts +8 -0
- package/.cache/ts/src/lib/offset.d.ts +7 -0
- package/.cache/ts/src/lib/platform.d.ts +19 -0
- package/.cache/ts/src/lib/polyfills.d.ts +6 -0
- package/.cache/ts/src/lib/prefixClass.d.ts +1 -0
- package/.cache/ts/src/lib/removeObjectKeys.d.ts +1 -0
- package/.cache/ts/src/lib/select.d.ts +7 -0
- package/.cache/ts/src/lib/styles.d.ts +1 -0
- package/.cache/ts/src/lib/supportEvents.d.ts +9 -0
- package/.cache/ts/src/lib/taptic.d.ts +2 -0
- package/.cache/ts/src/lib/testing.d.ts +1 -0
- package/.cache/ts/src/lib/touch.d.ts +9 -0
- package/.cache/ts/src/lib/useIsomorphicLayoutEffect.d.ts +2 -0
- package/.cache/ts/src/lib/utils.d.ts +16 -0
- package/.cache/ts/src/lib/warnOnce.d.ts +1 -0
- package/.cache/ts/src/testing/setup.d.ts +1 -0
- package/.cache/ts/src/testing/utils.d.ts +30 -0
- package/.cache/ts/src/tokenized/index.d.ts +24 -0
- package/.cache/ts/src/types.d.ts +34 -0
- package/.cache/ts/src/unstable/index.d.ts +17 -0
- package/.codesandbox/ci.json +5 -0
- package/.editorconfig +14 -0
- package/.eslintignore +6 -0
- package/.eslintrc.json +145 -0
- package/.gitattributes +1 -0
- package/.gitmodules +0 -0
- package/.prettierignore +14 -0
- package/.prettierrc.json +1 -0
- package/.stylelintignore +2 -0
- package/CONTRIBUTING.md +3 -2
- package/CSS_GUIDE.md +145 -0
- package/TESTING.md +58 -0
- package/babel.cjs.config.js +15 -0
- package/babel.config.js +72 -0
- package/dist/cjs/components/ActionSheet/ActionSheet.js +4 -7
- package/dist/cjs/components/ActionSheet/ActionSheet.js.map +1 -1
- package/dist/cjs/components/ActionSheetItem/ActionSheetItem.js +3 -5
- package/dist/cjs/components/ActionSheetItem/ActionSheetItem.js.map +1 -1
- package/dist/cjs/components/Alert/Alert.js +5 -8
- package/dist/cjs/components/Alert/Alert.js.map +1 -1
- package/dist/cjs/components/Button/Button.js +4 -8
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/CalendarDays/CalendarDays.js +2 -2
- package/dist/cjs/components/CalendarDays/CalendarDays.js.map +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.js +2 -5
- package/dist/cjs/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/cjs/components/Chip/Chip.js +2 -4
- package/dist/cjs/components/Chip/Chip.js.map +1 -1
- package/dist/cjs/components/ChipsSelect/ChipsSelect.js +2 -4
- package/dist/cjs/components/ChipsSelect/ChipsSelect.js.map +1 -1
- package/dist/cjs/components/ContentCard/ContentCard.js +5 -7
- package/dist/cjs/components/ContentCard/ContentCard.js.map +1 -1
- package/dist/cjs/components/Counter/Counter.js +3 -3
- package/dist/cjs/components/Counter/Counter.js.map +1 -1
- package/dist/cjs/components/CustomSelect/CustomSelect.js +17 -9
- package/dist/cjs/components/CustomSelect/CustomSelect.js.map +1 -1
- package/dist/cjs/components/CustomSelectOption/CustomSelectOption.js +2 -4
- package/dist/cjs/components/CustomSelectOption/CustomSelectOption.js.map +1 -1
- package/dist/cjs/components/Footer/Footer.js +2 -4
- package/dist/cjs/components/Footer/Footer.js.map +1 -1
- package/dist/cjs/components/FormItem/FormItem.js +2 -4
- package/dist/cjs/components/FormItem/FormItem.js.map +1 -1
- package/dist/cjs/components/FormStatus/FormStatus.js +3 -8
- package/dist/cjs/components/FormStatus/FormStatus.js.map +1 -1
- package/dist/cjs/components/Group/Group.js +3 -5
- package/dist/cjs/components/Group/Group.js.map +1 -1
- package/dist/cjs/components/Header/Header.js +9 -18
- package/dist/cjs/components/Header/Header.js.map +1 -1
- package/dist/cjs/components/HorizontalCell/HorizontalCell.js +4 -7
- package/dist/cjs/components/HorizontalCell/HorizontalCell.js.map +1 -1
- package/dist/cjs/components/ModalPage/ModalPage.js +5 -5
- package/dist/cjs/components/ModalPage/ModalPage.js.map +1 -1
- package/dist/cjs/components/PanelHeaderContent/PanelHeaderContent.js +2 -4
- package/dist/cjs/components/PanelHeaderContent/PanelHeaderContent.js.map +1 -1
- package/dist/cjs/components/PromoBanner/PromoBanner.js +3 -7
- package/dist/cjs/components/PromoBanner/PromoBanner.js.map +1 -1
- package/dist/cjs/components/Radio/Radio.js +2 -5
- package/dist/cjs/components/Radio/Radio.js.map +1 -1
- package/dist/cjs/components/SubnavigationButton/SubnavigationButton.js +3 -4
- package/dist/cjs/components/SubnavigationButton/SubnavigationButton.js.map +1 -1
- package/dist/cjs/components/Typography/Caption/Caption.d.ts +8 -4
- package/dist/cjs/components/Typography/Caption/Caption.js +12 -14
- package/dist/cjs/components/Typography/Caption/Caption.js.map +1 -1
- package/dist/cjs/components/Typography/Subhead/Subhead.d.ts +3 -1
- package/dist/cjs/components/Typography/Subhead/Subhead.js.map +1 -1
- package/dist/cjs/components/Typography/Title/Title.d.ts +3 -1
- package/dist/cjs/components/Typography/Title/Title.js +3 -1
- package/dist/cjs/components/Typography/Title/Title.js.map +1 -1
- package/dist/cjs/components/UsersStack/UsersStack.js +3 -4
- package/dist/cjs/components/UsersStack/UsersStack.js.map +1 -1
- package/dist/cjs/helpers/typography.d.ts +1 -0
- package/dist/cjs/helpers/typography.js +25 -0
- package/dist/cjs/helpers/typography.js.map +1 -0
- package/dist/cjs/hooks/useOrientationChange.d.ts +7 -0
- package/dist/cjs/hooks/useOrientationChange.js +56 -0
- package/dist/cjs/hooks/useOrientationChange.js.map +1 -0
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.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/ActionSheet.js +2 -5
- package/dist/components/ActionSheet/ActionSheet.js.map +1 -1
- package/dist/components/ActionSheetItem/ActionSheetItem.js +2 -4
- package/dist/components/ActionSheetItem/ActionSheetItem.js.map +1 -1
- package/dist/components/Alert/Alert.js +3 -6
- package/dist/components/Alert/Alert.js.map +1 -1
- package/dist/components/Button/Button.js +3 -7
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/CalendarDays/CalendarDays.js +1 -1
- package/dist/components/CalendarDays/CalendarDays.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -4
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Chip/Chip.js +1 -3
- package/dist/components/Chip/Chip.js.map +1 -1
- package/dist/components/ChipsSelect/ChipsSelect.js +1 -3
- package/dist/components/ChipsSelect/ChipsSelect.js.map +1 -1
- package/dist/components/ContentCard/ContentCard.js +3 -5
- package/dist/components/ContentCard/ContentCard.js.map +1 -1
- package/dist/components/Counter/Counter.js +2 -2
- package/dist/components/Counter/Counter.js.map +1 -1
- package/dist/components/CustomSelect/CustomSelect.js +16 -8
- package/dist/components/CustomSelect/CustomSelect.js.map +1 -1
- package/dist/components/CustomSelectOption/CustomSelectOption.js +1 -3
- package/dist/components/CustomSelectOption/CustomSelectOption.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -3
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/FormItem/FormItem.js +1 -3
- package/dist/components/FormItem/FormItem.js.map +1 -1
- package/dist/components/FormStatus/FormStatus.js +2 -7
- package/dist/components/FormStatus/FormStatus.js.map +1 -1
- package/dist/components/Group/Group.js +2 -4
- package/dist/components/Group/Group.js.map +1 -1
- package/dist/components/Header/Header.js +6 -15
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/HorizontalCell/HorizontalCell.js +2 -5
- package/dist/components/HorizontalCell/HorizontalCell.js.map +1 -1
- package/dist/components/ModalPage/ModalPage.js +4 -5
- package/dist/components/ModalPage/ModalPage.js.map +1 -1
- package/dist/components/PanelHeaderContent/PanelHeaderContent.js +1 -3
- package/dist/components/PanelHeaderContent/PanelHeaderContent.js.map +1 -1
- package/dist/components/PromoBanner/PromoBanner.js +1 -5
- package/dist/components/PromoBanner/PromoBanner.js.map +1 -1
- package/dist/components/Radio/Radio.js +1 -4
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/SubnavigationButton/SubnavigationButton.js +2 -3
- package/dist/components/SubnavigationButton/SubnavigationButton.js.map +1 -1
- package/dist/components/Typography/Caption/Caption.d.ts +8 -4
- package/dist/components/Typography/Caption/Caption.js +10 -14
- package/dist/components/Typography/Caption/Caption.js.map +1 -1
- package/dist/components/Typography/Subhead/Subhead.d.ts +3 -1
- package/dist/components/Typography/Subhead/Subhead.js.map +1 -1
- package/dist/components/Typography/Title/Title.d.ts +3 -1
- package/dist/components/Typography/Title/Title.js +2 -1
- package/dist/components/Typography/Title/Title.js.map +1 -1
- package/dist/components/UsersStack/UsersStack.js +2 -3
- package/dist/components/UsersStack/UsersStack.js.map +1 -1
- package/dist/components.css +2 -2
- package/dist/components.css.map +1 -1
- package/dist/cssm/components/ActionSheet/ActionSheet.js +2 -5
- package/dist/cssm/components/ActionSheet/ActionSheet.js.map +1 -1
- package/dist/cssm/components/ActionSheetItem/ActionSheetItem.js +2 -4
- package/dist/cssm/components/ActionSheetItem/ActionSheetItem.js.map +1 -1
- package/dist/cssm/components/Alert/Alert.js +3 -6
- package/dist/cssm/components/Alert/Alert.js.map +1 -1
- package/dist/cssm/components/Button/Button.js +3 -7
- package/dist/cssm/components/Button/Button.js.map +1 -1
- package/dist/cssm/components/CalendarDay/CalendarDay.css +1 -1
- package/dist/cssm/components/CalendarDays/CalendarDays.js +1 -1
- package/dist/cssm/components/CalendarDays/CalendarDays.js.map +1 -1
- package/dist/cssm/components/Checkbox/Checkbox.js +1 -4
- package/dist/cssm/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/cssm/components/Chip/Chip.js +1 -3
- package/dist/cssm/components/Chip/Chip.js.map +1 -1
- package/dist/cssm/components/ChipsSelect/ChipsSelect.js +1 -3
- package/dist/cssm/components/ChipsSelect/ChipsSelect.js.map +1 -1
- package/dist/cssm/components/ContentCard/ContentCard.js +3 -5
- package/dist/cssm/components/ContentCard/ContentCard.js.map +1 -1
- package/dist/cssm/components/Counter/Counter.js +2 -2
- package/dist/cssm/components/Counter/Counter.js.map +1 -1
- package/dist/cssm/components/CustomSelect/CustomSelect.js +16 -8
- package/dist/cssm/components/CustomSelect/CustomSelect.js.map +1 -1
- package/dist/cssm/components/CustomSelectOption/CustomSelectOption.js +1 -3
- package/dist/cssm/components/CustomSelectOption/CustomSelectOption.js.map +1 -1
- package/dist/cssm/components/Footer/Footer.js +1 -3
- package/dist/cssm/components/Footer/Footer.js.map +1 -1
- package/dist/cssm/components/FormItem/FormItem.js +1 -3
- package/dist/cssm/components/FormItem/FormItem.js.map +1 -1
- package/dist/cssm/components/FormStatus/FormStatus.js +2 -7
- package/dist/cssm/components/FormStatus/FormStatus.js.map +1 -1
- package/dist/cssm/components/Group/Group.js +2 -4
- package/dist/cssm/components/Group/Group.js.map +1 -1
- package/dist/cssm/components/Header/Header.js +6 -15
- package/dist/cssm/components/Header/Header.js.map +1 -1
- package/dist/cssm/components/HorizontalCell/HorizontalCell.js +2 -5
- package/dist/cssm/components/HorizontalCell/HorizontalCell.js.map +1 -1
- package/dist/cssm/components/ModalPage/ModalPage.js +4 -5
- package/dist/cssm/components/ModalPage/ModalPage.js.map +1 -1
- package/dist/cssm/components/PanelHeaderContent/PanelHeaderContent.js +1 -3
- package/dist/cssm/components/PanelHeaderContent/PanelHeaderContent.js.map +1 -1
- package/dist/cssm/components/PromoBanner/PromoBanner.js +1 -5
- package/dist/cssm/components/PromoBanner/PromoBanner.js.map +1 -1
- package/dist/cssm/components/Radio/Radio.js +1 -4
- package/dist/cssm/components/Radio/Radio.js.map +1 -1
- package/dist/cssm/components/SubnavigationButton/SubnavigationButton.js +2 -3
- package/dist/cssm/components/SubnavigationButton/SubnavigationButton.js.map +1 -1
- package/dist/cssm/components/Typography/Caption/Caption.css +1 -1
- package/dist/cssm/components/Typography/Caption/Caption.d.ts +8 -4
- package/dist/cssm/components/Typography/Caption/Caption.js +10 -14
- package/dist/cssm/components/Typography/Caption/Caption.js.map +1 -1
- package/dist/cssm/components/Typography/Subhead/Subhead.d.ts +3 -1
- package/dist/cssm/components/Typography/Subhead/Subhead.js.map +1 -1
- package/dist/cssm/components/Typography/Title/Title.d.ts +3 -1
- package/dist/cssm/components/Typography/Title/Title.js +2 -1
- package/dist/cssm/components/Typography/Title/Title.js.map +1 -1
- package/dist/cssm/components/UsersStack/UsersStack.js +2 -3
- package/dist/cssm/components/UsersStack/UsersStack.js.map +1 -1
- package/dist/cssm/helpers/typography.d.ts +1 -0
- package/dist/cssm/helpers/typography.js +18 -0
- package/dist/cssm/helpers/typography.js.map +1 -0
- package/dist/cssm/hooks/useOrientationChange.d.ts +7 -0
- package/dist/cssm/hooks/useOrientationChange.js +42 -0
- package/dist/cssm/hooks/useOrientationChange.js.map +1 -0
- package/dist/cssm/index.d.ts +1 -1
- package/dist/cssm/index.js +1 -1
- package/dist/cssm/index.js.map +1 -1
- package/dist/cssm/styles/components.css +2 -2
- package/dist/cssm/tokenized/index.d.ts +2 -0
- package/dist/cssm/tokenized/index.js +1 -0
- package/dist/cssm/tokenized/index.js.map +1 -1
- package/dist/helpers/typography.d.ts +1 -0
- package/dist/helpers/typography.js +18 -0
- package/dist/helpers/typography.js.map +1 -0
- package/dist/hooks/useOrientationChange.d.ts +7 -0
- package/dist/hooks/useOrientationChange.js +42 -0
- package/dist/hooks/useOrientationChange.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.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 +2 -2
- package/dist/vkui.css.map +1 -1
- package/jest.unit.config.js +14 -0
- package/package.json +6 -9
- package/src/appearance/constants.ts +1 -0
- package/src/components/ActionSheet/ActionSheet.css +145 -0
- package/src/components/ActionSheet/ActionSheet.tsx +158 -0
- package/src/components/ActionSheet/ActionSheetContext.ts +18 -0
- package/src/components/ActionSheet/ActionSheetDropdown.tsx +33 -0
- package/src/components/ActionSheet/ActionSheetDropdownDesktop.tsx +97 -0
- package/src/components/ActionSheet/Readme.md +256 -0
- package/src/components/ActionSheet/types.ts +16 -0
- package/src/components/ActionSheetItem/ActionSheetItem.css +306 -0
- package/src/components/ActionSheetItem/ActionSheetItem.tsx +182 -0
- package/src/components/ActionSheetItem/Readme.md +2 -0
- package/src/components/AdaptivityProvider/AdaptivityContext.tsx +62 -0
- package/src/components/AdaptivityProvider/AdaptivityProvider.tsx +138 -0
- package/src/components/AdaptivityProvider/Readme.md +3 -0
- package/src/components/Alert/Alert.css +297 -0
- package/src/components/Alert/Alert.tsx +288 -0
- package/src/components/Alert/Readme.md +133 -0
- package/src/components/AppRoot/AppRoot.css +20 -0
- package/src/components/AppRoot/AppRoot.tsx +205 -0
- package/src/components/AppRoot/AppRootContext.ts +13 -0
- package/src/components/AppRoot/AppRootPortal.tsx +24 -0
- package/src/components/AppRoot/Readme.md +9 -0
- package/src/components/AppRoot/ScrollContext.ts +44 -0
- package/src/components/AppearanceProvider/AppearanceProvider.tsx +61 -0
- package/src/components/AppearanceProvider/AppearanceProviderContext.tsx +7 -0
- package/src/components/Avatar/Avatar.css +192 -0
- package/src/components/Avatar/Avatar.tsx +183 -0
- package/src/components/Avatar/Readme.md +838 -0
- package/src/components/Badge/Badge.css +21 -0
- package/src/components/Badge/Badge.tsx +27 -0
- package/src/components/Badge/Readme.md +55 -0
- package/src/components/Banner/Banner.css +154 -0
- package/src/components/Banner/Banner.tsx +220 -0
- package/src/components/Banner/Readme.md +215 -0
- package/src/components/Button/Button.css +594 -0
- package/src/components/Button/Button.tsx +225 -0
- package/src/components/Button/Readme.md +186 -0
- package/src/components/ButtonGroup/ButtonGroup.css +52 -0
- package/src/components/ButtonGroup/ButtonGroup.tsx +48 -0
- package/src/components/ButtonGroup/Readme.md +311 -0
- package/src/components/Calendar/Calendar.css +31 -0
- package/src/components/Calendar/Calendar.tsx +184 -0
- package/src/components/Calendar/Readme.md +124 -0
- package/src/components/CalendarDay/CalendarDay.css +85 -0
- package/src/components/CalendarDay/CalendarDay.tsx +114 -0
- package/src/components/CalendarDays/CalendarDays.css +31 -0
- package/src/components/CalendarDays/CalendarDays.tsx +131 -0
- package/src/components/CalendarHeader/CalendarHeader.css +50 -0
- package/src/components/CalendarHeader/CalendarHeader.tsx +167 -0
- package/src/components/CalendarRange/CalendarRange.css +27 -0
- package/src/components/CalendarRange/CalendarRange.tsx +278 -0
- package/src/components/CalendarRange/Readme.md +85 -0
- package/src/components/CalendarTime/CalendarTime.css +18 -0
- package/src/components/CalendarTime/CalendarTime.tsx +88 -0
- package/src/components/Card/Card.css +83 -0
- package/src/components/Card/Card.tsx +31 -0
- package/src/components/Card/Readme.md +39 -0
- package/src/components/CardGrid/CardGrid.css +82 -0
- package/src/components/CardGrid/CardGrid.tsx +41 -0
- package/src/components/CardGrid/Readme.md +41 -0
- package/src/components/CardScroll/CardScroll.css +47 -0
- package/src/components/CardScroll/CardScroll.tsx +116 -0
- package/src/components/CardScroll/Readme.md +62 -0
- package/src/components/Cell/Cell.css +56 -0
- package/src/components/Cell/Cell.tsx +204 -0
- package/src/components/Cell/CellCheckbox/CellCheckbox.css +17 -0
- package/src/components/Cell/CellCheckbox/CellCheckbox.tsx +41 -0
- package/src/components/Cell/CellDragger/CellDragger.css +4 -0
- package/src/components/Cell/CellDragger/CellDragger.tsx +37 -0
- package/src/components/Cell/Readme.md +163 -0
- package/src/components/Cell/useDraggable.tsx +126 -0
- package/src/components/CellButton/CellButton.css +46 -0
- package/src/components/CellButton/CellButton.tsx +35 -0
- package/src/components/CellButton/Readme.md +53 -0
- package/src/components/Checkbox/Checkbox.css +127 -0
- package/src/components/Checkbox/Checkbox.tsx +102 -0
- package/src/components/Checkbox/Readme.md +20 -0
- package/src/components/Chip/Chip.css +56 -0
- package/src/components/Chip/Chip.tsx +69 -0
- package/src/components/Chip/Readme.md +81 -0
- package/src/components/ChipsInput/ChipsInput.css +72 -0
- package/src/components/ChipsInput/ChipsInput.tsx +238 -0
- package/src/components/ChipsInput/Readme.md +94 -0
- package/src/components/ChipsInput/useChipsInput.ts +90 -0
- package/src/components/ChipsSelect/ChipsSelect.css +23 -0
- package/src/components/ChipsSelect/ChipsSelect.tsx +452 -0
- package/src/components/ChipsSelect/Readme.md +115 -0
- package/src/components/ChipsSelect/useChipsSelect.ts +72 -0
- package/src/components/ClickPopper/ClickPopper.tsx +86 -0
- package/src/components/ConfigProvider/ConfigProvider.tsx +144 -0
- package/src/components/ConfigProvider/ConfigProviderContext.tsx +48 -0
- package/src/components/ConfigProvider/Readme.md +1 -0
- package/src/components/ContentCard/ContentCard.css +39 -0
- package/src/components/ContentCard/ContentCard.tsx +152 -0
- package/src/components/ContentCard/Readme.md +65 -0
- package/src/components/Counter/Counter.css +161 -0
- package/src/components/Counter/Counter.tsx +76 -0
- package/src/components/Counter/Readme.md +114 -0
- package/src/components/CustomScrollView/CustomScrollView.css +62 -0
- package/src/components/CustomScrollView/CustomScrollView.tsx +168 -0
- package/src/components/CustomSelect/CustomSelect.css +24 -0
- package/src/components/CustomSelect/CustomSelect.tsx +778 -0
- package/src/components/CustomSelect/Readme.md +248 -0
- package/src/components/CustomSelectDropdown/CustomSelectDropdown.css +38 -0
- package/src/components/CustomSelectDropdown/CustomSelectDropdown.tsx +75 -0
- package/src/components/CustomSelectOption/CustomSelectOption.css +63 -0
- package/src/components/CustomSelectOption/CustomSelectOption.tsx +88 -0
- package/src/components/CustomSelectOption/Readme.md +33 -0
- package/src/components/DateInput/DateInput.css +20 -0
- package/src/components/DateInput/DateInput.tsx +317 -0
- package/src/components/DateInput/Readme.md +116 -0
- package/src/components/DatePicker/DatePicker.css +30 -0
- package/src/components/DatePicker/DatePicker.tsx +238 -0
- package/src/components/DatePicker/Readme.md +40 -0
- package/src/components/DateRangeInput/DateRangeInput.css +16 -0
- package/src/components/DateRangeInput/DateRangeInput.tsx +350 -0
- package/src/components/DateRangeInput/Readme.md +96 -0
- package/src/components/Div/Div.css +7 -0
- package/src/components/Div/Div.tsx +26 -0
- package/src/components/Div/Readme.md +17 -0
- package/src/components/Dropdown/Dropdown.css +19 -0
- package/src/components/Dropdown/Dropdown.tsx +42 -0
- package/src/components/Dropdown/Readme.md +49 -0
- package/src/components/DropdownIcon/DropdownIcon.css +3 -0
- package/src/components/DropdownIcon/DropdownIcon.tsx +18 -0
- package/src/components/Epic/Epic.css +4 -0
- package/src/components/Epic/Epic.tsx +61 -0
- package/src/components/Epic/Readme.md +240 -0
- package/src/components/Epic/ScrollSaver.tsx +23 -0
- package/src/components/File/File.css +6 -0
- package/src/components/File/File.tsx +74 -0
- package/src/components/File/Readme.md +20 -0
- package/src/components/FixedLayout/FixedLayout.css +27 -0
- package/src/components/FixedLayout/FixedLayout.tsx +71 -0
- package/src/components/FixedLayout/Readme.md +117 -0
- package/src/components/FocusTrap/FocusTrap.tsx +144 -0
- package/src/components/FocusVisible/FocusVisible.css +72 -0
- package/src/components/FocusVisible/FocusVisible.tsx +18 -0
- package/src/components/Footer/Footer.css +8 -0
- package/src/components/Footer/Footer.tsx +17 -0
- package/src/components/Footer/Readme.md +23 -0
- package/src/components/FormField/FormField.css +152 -0
- package/src/components/FormField/FormField.tsx +76 -0
- package/src/components/FormField/Readme.md +42 -0
- package/src/components/FormItem/FormItem.css +83 -0
- package/src/components/FormItem/FormItem.tsx +85 -0
- package/src/components/FormItem/Readme.md +183 -0
- package/src/components/FormLayout/FormLayout.css +16 -0
- package/src/components/FormLayout/FormLayout.tsx +39 -0
- package/src/components/FormLayout/Readme.md +2 -0
- package/src/components/FormLayoutGroup/FormLayoutGroup.css +22 -0
- package/src/components/FormLayoutGroup/FormLayoutGroup.tsx +71 -0
- package/src/components/FormLayoutGroup/Readme.md +63 -0
- package/src/components/FormStatus/FormStatus.css +34 -0
- package/src/components/FormStatus/FormStatus.tsx +45 -0
- package/src/components/FormStatus/Readme.md +23 -0
- package/src/components/Gallery/Gallery.css +71 -0
- package/src/components/Gallery/Gallery.tsx +562 -0
- package/src/components/Gallery/Readme.md +99 -0
- package/src/components/Gradient/Gradient.css +83 -0
- package/src/components/Gradient/Gradient.tsx +29 -0
- package/src/components/Gradient/Readme.md +55 -0
- package/src/components/GridAvatar/GridAvatar.css +37 -0
- package/src/components/GridAvatar/GridAvatar.tsx +53 -0
- package/src/components/GridAvatar/Readme.md +24 -0
- package/src/components/Group/Group.css +86 -0
- package/src/components/Group/Group.tsx +94 -0
- package/src/components/Group/Readme.md +156 -0
- package/src/components/Header/Header.css +152 -0
- package/src/components/Header/Header.tsx +171 -0
- package/src/components/Header/Readme.md +114 -0
- package/src/components/HorizontalCell/HorizontalCell.css +95 -0
- package/src/components/HorizontalCell/HorizontalCell.tsx +86 -0
- package/src/components/HorizontalCell/Readme.md +236 -0
- package/src/components/HorizontalScroll/HorizontalScroll.css +31 -0
- package/src/components/HorizontalScroll/HorizontalScroll.tsx +217 -0
- package/src/components/HorizontalScroll/HorizontalScrollArrow.css +69 -0
- package/src/components/HorizontalScroll/HorizontalScrollArrow.tsx +35 -0
- package/src/components/HorizontalScroll/Readme.md +67 -0
- package/src/components/HoverPopper/HoverPopper.tsx +102 -0
- package/src/components/IconButton/IconButton.css +93 -0
- package/src/components/IconButton/IconButton.tsx +57 -0
- package/src/components/InfoRow/InfoRow.css +14 -0
- package/src/components/InfoRow/InfoRow.tsx +37 -0
- package/src/components/InfoRow/Readme.md +27 -0
- package/src/components/InitialsAvatar/InitialsAvatar.css +55 -0
- package/src/components/InitialsAvatar/InitialsAvatar.tsx +95 -0
- package/src/components/InitialsAvatar/Readme.md +20 -0
- package/src/components/Input/Input.css +52 -0
- package/src/components/Input/Input.tsx +54 -0
- package/src/components/Input/Readme.md +46 -0
- package/src/components/InputLike/InputLike.css +25 -0
- package/src/components/InputLike/InputLike.tsx +72 -0
- package/src/components/InputLike/InputLikeDivider.css +4 -0
- package/src/components/InputLike/InputLikeDivider.tsx +12 -0
- package/src/components/Link/Link.css +18 -0
- package/src/components/Link/Link.tsx +27 -0
- package/src/components/Link/Readme.md +8 -0
- package/src/components/List/List.css +2 -0
- package/src/components/List/List.tsx +31 -0
- package/src/components/List/ListContext.ts +6 -0
- package/src/components/List/Readme.md +22 -0
- package/src/components/LocaleProviderContext/LocaleProviderContext.tsx +5 -0
- package/src/components/MiniInfoCell/MiniInfoCell.css +67 -0
- package/src/components/MiniInfoCell/MiniInfoCell.tsx +94 -0
- package/src/components/MiniInfoCell/Readme.md +150 -0
- package/src/components/ModalCard/ModalCard.css +77 -0
- package/src/components/ModalCard/ModalCard.tsx +93 -0
- package/src/components/ModalCard/Readme.md +9 -0
- package/src/components/ModalCardBase/ModalCardBase.css +94 -0
- package/src/components/ModalCardBase/ModalCardBase.tsx +141 -0
- package/src/components/ModalCardBase/Readme.md +38 -0
- package/src/components/ModalDismissButton/ModalDismissButton.css +37 -0
- package/src/components/ModalDismissButton/ModalDismissButton.tsx +32 -0
- package/src/components/ModalDismissButton/Readme.md +53 -0
- package/src/components/ModalPage/ModalPage.css +146 -0
- package/src/components/ModalPage/ModalPage.tsx +131 -0
- package/src/components/ModalPage/Readme.md +9 -0
- package/src/components/ModalPageHeader/ModalPageHeader.css +24 -0
- package/src/components/ModalPageHeader/ModalPageHeader.tsx +57 -0
- package/src/components/ModalPageHeader/Readme.md +46 -0
- package/src/components/ModalRoot/ModalRoot.css +67 -0
- package/src/components/ModalRoot/ModalRoot.tsx +816 -0
- package/src/components/ModalRoot/ModalRootAdaptive.tsx +42 -0
- package/src/components/ModalRoot/ModalRootContext.tsx +51 -0
- package/src/components/ModalRoot/ModalRootDesktop.tsx +261 -0
- package/src/components/ModalRoot/Readme.md +662 -0
- package/src/components/ModalRoot/constants.ts +4 -0
- package/src/components/ModalRoot/types.ts +53 -0
- package/src/components/ModalRoot/useModalManager.tsx +203 -0
- package/src/components/ModalRoot/withModalRootContext.tsx +19 -0
- package/src/components/NativeSelect/NativeSelect.tsx +113 -0
- package/src/components/NativeSelect/Readme.md +17 -0
- package/src/components/NavTransitionContext/NavTransitionContext.tsx +24 -0
- package/src/components/Pagination/Pagination.css +62 -0
- package/src/components/Pagination/Pagination.tsx +196 -0
- package/src/components/Pagination/Readme.md +110 -0
- package/src/components/Panel/Panel.css +116 -0
- package/src/components/Panel/Panel.tsx +58 -0
- package/src/components/Panel/Readme.md +97 -0
- package/src/components/PanelHeader/PanelHeader.css +271 -0
- package/src/components/PanelHeader/PanelHeader.tsx +142 -0
- package/src/components/PanelHeader/Readme.md +244 -0
- package/src/components/PanelHeaderBack/PanelHeaderBack.css +7 -0
- package/src/components/PanelHeaderBack/PanelHeaderBack.tsx +60 -0
- package/src/components/PanelHeaderBack/Readme.md +9 -0
- package/src/components/PanelHeaderButton/PanelHeaderButton.css +102 -0
- package/src/components/PanelHeaderButton/PanelHeaderButton.tsx +109 -0
- package/src/components/PanelHeaderButton/Readme.md +47 -0
- package/src/components/PanelHeaderClose/PanelHeaderClose.tsx +35 -0
- package/src/components/PanelHeaderClose/Readme.md +9 -0
- package/src/components/PanelHeaderContent/PanelHeaderContent.css +107 -0
- package/src/components/PanelHeaderContent/PanelHeaderContent.tsx +105 -0
- package/src/components/PanelHeaderContent/Readme.md +33 -0
- package/src/components/PanelHeaderContext/PanelHeaderContext.css +143 -0
- package/src/components/PanelHeaderContext/PanelHeaderContext.tsx +85 -0
- package/src/components/PanelHeaderContext/Readme.md +110 -0
- package/src/components/PanelHeaderEdit/PanelHeaderEdit.tsx +49 -0
- package/src/components/PanelHeaderEdit/Readme.md +1 -0
- package/src/components/PanelHeaderSubmit/PanelHeaderSubmit.tsx +37 -0
- package/src/components/PanelHeaderSubmit/Readme.md +13 -0
- package/src/components/PanelSpinner/PanelSpinner.tsx +21 -0
- package/src/components/PanelSpinner/Readme.md +15 -0
- package/src/components/Placeholder/Placeholder.css +50 -0
- package/src/components/Placeholder/Placeholder.tsx +70 -0
- package/src/components/Placeholder/Readme.md +104 -0
- package/src/components/PopoutRoot/PopoutRoot.css +36 -0
- package/src/components/PopoutRoot/PopoutRoot.tsx +72 -0
- package/src/components/PopoutRoot/Readme.md +50 -0
- package/src/components/PopoutWrapper/PopoutWrapper.css +109 -0
- package/src/components/PopoutWrapper/PopoutWrapper.tsx +77 -0
- package/src/components/PopoutWrapper/Readme.md +12 -0
- package/src/components/Popper/Popper.css +39 -0
- package/src/components/Popper/Popper.tsx +231 -0
- package/src/components/Popper/Readme.md +33 -0
- package/src/components/Progress/Progress.css +12 -0
- package/src/components/Progress/Progress.tsx +49 -0
- package/src/components/Progress/Readme.md +14 -0
- package/src/components/PromoBanner/PromoBanner.css +55 -0
- package/src/components/PromoBanner/PromoBanner.tsx +135 -0
- package/src/components/PromoBanner/Readme.md +25 -0
- package/src/components/PullToRefresh/PullToRefresh.css +98 -0
- package/src/components/PullToRefresh/PullToRefresh.tsx +353 -0
- package/src/components/PullToRefresh/PullToRefreshSpinner.tsx +78 -0
- package/src/components/PullToRefresh/Readme.md +71 -0
- package/src/components/Radio/Radio.css +187 -0
- package/src/components/Radio/Radio.tsx +82 -0
- package/src/components/Radio/Readme.md +29 -0
- package/src/components/RadioGroup/RadioGroup.css +12 -0
- package/src/components/RadioGroup/RadioGroup.tsx +29 -0
- package/src/components/RadioGroup/Readme.md +56 -0
- package/src/components/RangeSlider/RangeSlider.tsx +54 -0
- package/src/components/RangeSlider/Readme.md +32 -0
- package/src/components/RangeSlider/UniversalSlider.tsx +162 -0
- package/src/components/Removable/Removable.css +125 -0
- package/src/components/Removable/Removable.tsx +176 -0
- package/src/components/RichCell/Readme.md +65 -0
- package/src/components/RichCell/RichCell.css +115 -0
- package/src/components/RichCell/RichCell.tsx +104 -0
- package/src/components/RichTooltip/Readme.md +59 -0
- package/src/components/RichTooltip/RichTooltip.css +10 -0
- package/src/components/RichTooltip/RichTooltip.tsx +32 -0
- package/src/components/Root/Readme.md +36 -0
- package/src/components/Root/Root.css +184 -0
- package/src/components/Root/Root.tsx +209 -0
- package/src/components/ScreenSpinner/Readme.md +43 -0
- package/src/components/ScreenSpinner/ScreenSpinner.css +31 -0
- package/src/components/ScreenSpinner/ScreenSpinner.tsx +37 -0
- package/src/components/Search/Readme.md +235 -0
- package/src/components/Search/Search.css +359 -0
- package/src/components/Search/Search.tsx +196 -0
- package/src/components/SegmentedControl/Readme.md +94 -0
- package/src/components/SegmentedControl/SegmentedControl.css +42 -0
- package/src/components/SegmentedControl/SegmentedControl.tsx +105 -0
- package/src/components/SegmentedControl/SegmentedControlOption/SegmentedControlOption.css +30 -0
- package/src/components/SegmentedControl/SegmentedControlOption/SegmentedControlOption.tsx +42 -0
- package/src/components/Select/Readme.md +27 -0
- package/src/components/Select/Select.css +64 -0
- package/src/components/Select/Select.tsx +39 -0
- package/src/components/SelectMimicry/Readme.md +87 -0
- package/src/components/SelectMimicry/SelectMimicry.css +10 -0
- package/src/components/SelectMimicry/SelectMimicry.tsx +94 -0
- package/src/components/Separator/Readme.md +23 -0
- package/src/components/Separator/Separator.css +48 -0
- package/src/components/Separator/Separator.tsx +40 -0
- package/src/components/SimpleCell/Readme.md +136 -0
- package/src/components/SimpleCell/SimpleCell.css +258 -0
- package/src/components/SimpleCell/SimpleCell.tsx +132 -0
- package/src/components/SimpleCheckbox/Readme.md +25 -0
- package/src/components/SimpleCheckbox/SimpleCheckbox.css +129 -0
- package/src/components/SimpleCheckbox/SimpleCheckbox.tsx +143 -0
- package/src/components/Slider/Readme.md +83 -0
- package/src/components/Slider/Slider.css +145 -0
- package/src/components/Slider/Slider.tsx +54 -0
- package/src/components/SliderSwitch/Readme.md +27 -0
- package/src/components/SliderSwitch/SliderSwitch.css +87 -0
- package/src/components/SliderSwitch/SliderSwitch.tsx +209 -0
- package/src/components/SliderSwitch/SliderSwitchButton.tsx +53 -0
- package/src/components/Snackbar/Readme.md +145 -0
- package/src/components/Snackbar/Snackbar.css +159 -0
- package/src/components/Snackbar/Snackbar.tsx +254 -0
- package/src/components/Spacing/Readme.md +98 -0
- package/src/components/Spacing/Spacing.css +46 -0
- package/src/components/Spacing/Spacing.tsx +53 -0
- package/src/components/Spinner/Readme.md +11 -0
- package/src/components/Spinner/Spinner.css +33 -0
- package/src/components/Spinner/Spinner.tsx +53 -0
- package/src/components/SplitCol/Readme.md +1 -0
- package/src/components/SplitCol/SplitCol.css +28 -0
- package/src/components/SplitCol/SplitCol.tsx +75 -0
- package/src/components/SplitLayout/Readme.md +154 -0
- package/src/components/SplitLayout/SplitLayout.css +52 -0
- package/src/components/SplitLayout/SplitLayout.tsx +54 -0
- package/src/components/SubnavigationBar/Readme.md +264 -0
- package/src/components/SubnavigationBar/SubnavigationBar.css +32 -0
- package/src/components/SubnavigationBar/SubnavigationBar.tsx +66 -0
- package/src/components/SubnavigationButton/Readme.md +128 -0
- package/src/components/SubnavigationButton/SubnavigationButton.css +103 -0
- package/src/components/SubnavigationButton/SubnavigationButton.tsx +99 -0
- package/src/components/Switch/Readme.md +57 -0
- package/src/components/Switch/Switch.css +198 -0
- package/src/components/Switch/Switch.tsx +56 -0
- package/src/components/Tabbar/Readme.md +7 -0
- package/src/components/Tabbar/Tabbar.css +53 -0
- package/src/components/Tabbar/Tabbar.tsx +50 -0
- package/src/components/TabbarItem/Readme.md +102 -0
- package/src/components/TabbarItem/TabbarItem.css +127 -0
- package/src/components/TabbarItem/TabbarItem.tsx +94 -0
- package/src/components/Tabs/Readme.md +274 -0
- package/src/components/Tabs/Tabs.css +102 -0
- package/src/components/Tabs/Tabs.tsx +57 -0
- package/src/components/TabsItem/Readme.md +0 -0
- package/src/components/TabsItem/TabsItem.css +178 -0
- package/src/components/TabsItem/TabsItem.tsx +62 -0
- package/src/components/Tappable/Tappable.css +141 -0
- package/src/components/Tappable/Tappable.tsx +349 -0
- package/src/components/TextTooltip/Readme.md +11 -0
- package/src/components/TextTooltip/TextTooltip.css +18 -0
- package/src/components/TextTooltip/TextTooltip.tsx +58 -0
- package/src/components/Textarea/Readme.md +24 -0
- package/src/components/Textarea/Textarea.css +39 -0
- package/src/components/Textarea/Textarea.tsx +80 -0
- package/src/components/Tooltip/Readme.md +263 -0
- package/src/components/Tooltip/Tooltip.css +73 -0
- package/src/components/Tooltip/Tooltip.tsx +314 -0
- package/src/components/Tooltip/TooltipContainer.tsx +10 -0
- package/src/components/Touch/Readme.md +116 -0
- package/src/components/Touch/Touch.tsx +285 -0
- package/src/components/Touch/TouchContext.ts +11 -0
- package/src/components/Typography/Caption/Caption.css +97 -0
- package/src/components/Typography/Caption/Caption.tsx +53 -0
- package/src/components/Typography/Caption/Readme.md +29 -0
- package/src/components/Typography/Headline/Headline.css +25 -0
- package/src/components/Typography/Headline/Headline.tsx +36 -0
- package/src/components/Typography/Headline/Readme.md +24 -0
- package/src/components/Typography/Subhead/Readme.md +21 -0
- package/src/components/Typography/Subhead/Subhead.css +43 -0
- package/src/components/Typography/Subhead/Subhead.tsx +54 -0
- package/src/components/Typography/Text/Readme.md +22 -0
- package/src/components/Typography/Text/Text.css +25 -0
- package/src/components/Typography/Text/Text.tsx +49 -0
- package/src/components/Typography/Title/Readme.md +31 -0
- package/src/components/Typography/Title/Title.css +59 -0
- package/src/components/Typography/Title/Title.tsx +64 -0
- package/src/components/UsersStack/Readme.md +94 -0
- package/src/components/UsersStack/UsersStack.css +99 -0
- package/src/components/UsersStack/UsersStack.tsx +102 -0
- package/src/components/UsersStack/masks.tsx +46 -0
- package/src/components/View/Readme.md +98 -0
- package/src/components/View/View.css +125 -0
- package/src/components/View/View.tsx +673 -0
- package/src/components/View/ViewIOS.css +155 -0
- package/src/components/View/ViewInfinite.tsx +731 -0
- package/src/components/View/utils.ts +9 -0
- package/src/components/VisuallyHiddenInput/VisuallyHiddenInput.css +9 -0
- package/src/components/VisuallyHiddenInput/VisuallyHiddenInput.tsx +25 -0
- package/src/components/WriteBar/Readme.md +224 -0
- package/src/components/WriteBar/WriteBar.css +106 -0
- package/src/components/WriteBar/WriteBar.tsx +137 -0
- package/src/components/WriteBarIcon/Readme.md +11 -0
- package/src/components/WriteBarIcon/WriteBarIcon.css +75 -0
- package/src/components/WriteBarIcon/WriteBarIcon.tsx +104 -0
- package/src/fonts/VK_Sans_Display_Medium.woff +0 -0
- package/src/fonts/VK_Sans_Display_Medium.woff2 +0 -0
- package/src/fonts/fonts.css +7 -0
- package/src/helpers/avatar.ts +10 -0
- package/src/helpers/getClassName.ts +8 -0
- package/src/helpers/getScheme.ts +27 -0
- package/src/helpers/math.ts +40 -0
- package/src/helpers/scheme.ts +86 -0
- package/src/helpers/typography.ts +24 -0
- package/src/hoc/withAdaptivity.tsx +86 -0
- package/src/hoc/withContext.tsx +14 -0
- package/src/hoc/withInsets.tsx +12 -0
- package/src/hoc/withPlatform.tsx +17 -0
- package/src/hooks/useAdaptivity.ts +12 -0
- package/src/hooks/useAppearance.ts +4 -0
- package/src/hooks/useBooleanState.ts +19 -0
- package/src/hooks/useBrowserInfo.ts +11 -0
- package/src/hooks/useCalendar.ts +78 -0
- package/src/hooks/useDateInput.ts +213 -0
- package/src/hooks/useEffectDev.ts +5 -0
- package/src/hooks/useEnsuredControl.ts +17 -0
- package/src/hooks/useEventListener.ts +62 -0
- package/src/hooks/useExternRef.ts +26 -0
- package/src/hooks/useFocusVisible.ts +31 -0
- package/src/hooks/useGlobalEventListener.ts +35 -0
- package/src/hooks/useInsets.ts +69 -0
- package/src/hooks/useKeyboard.ts +75 -0
- package/src/hooks/useKeyboardInputTracker.ts +64 -0
- package/src/hooks/useObjectMemo.ts +16 -0
- package/src/hooks/useOrientationChange.ts +39 -0
- package/src/hooks/usePagination.ts +96 -0
- package/src/hooks/usePatchChildrenRef.ts +39 -0
- package/src/hooks/usePlatform.ts +10 -0
- package/src/hooks/useTimeout.ts +33 -0
- package/src/hooks/useWaitTransitionFinish.ts +28 -0
- package/src/index.ts +334 -0
- package/src/lib/SSR.tsx +45 -0
- package/src/lib/accessibility.ts +87 -0
- package/src/lib/animate.ts +47 -0
- package/src/lib/browser.ts +44 -0
- package/src/lib/calendar.ts +123 -0
- package/src/lib/callMultiple.ts +4 -0
- package/src/lib/classNames.ts +44 -0
- package/src/lib/classScopingMode.ts +21 -0
- package/src/lib/dom.tsx +45 -0
- package/src/lib/fx.ts +7 -0
- package/src/lib/getNavId.ts +13 -0
- package/src/lib/is.ts +10 -0
- package/src/lib/isRefObject.ts +11 -0
- package/src/lib/jsxRuntime.d.ts +6 -0
- package/src/lib/jsxRuntime.ts +43 -0
- package/src/lib/offset.ts +17 -0
- package/src/lib/platform.ts +36 -0
- package/src/lib/polyfills.ts +96 -0
- package/src/lib/prefixClass.ts +34 -0
- package/src/lib/removeObjectKeys.ts +10 -0
- package/src/lib/select.ts +54 -0
- package/src/lib/styles.ts +12 -0
- package/src/lib/supportEvents.ts +38 -0
- package/src/lib/taptic.ts +9 -0
- package/src/lib/testing.ts +4 -0
- package/src/lib/touch.ts +59 -0
- package/src/lib/useIsomorphicLayoutEffect.ts +7 -0
- package/src/lib/utils.ts +99 -0
- package/src/lib/warnOnce.ts +9 -0
- package/src/styles/animations.css +19 -0
- package/src/styles/bright_light.css +244 -0
- package/src/styles/common.css +39 -0
- package/src/styles/components.css +152 -0
- package/src/styles/constants.css +72 -0
- package/src/styles/space_gray.css +243 -0
- package/src/styles/themes.css +10 -0
- package/src/styles/unstable.css +6 -0
- package/src/styles/vkcom_dark.css +249 -0
- package/src/styles/vkcom_light.css +254 -0
- package/src/testing/setup.ts +1 -0
- package/src/testing/utils.tsx +192 -0
- package/src/tokenized/index.ts +39 -0
- package/src/types.ts +43 -0
- package/src/unstable/index.ts +23 -0
- package/src/vkui.js +1 -0
- package/stylelint.config.js +46 -0
- package/tasks/generate_scheme.js +13 -0
- package/tasks/postcss-check-keyframes.js +36 -0
- package/tasks/postcss-scope-root.js +9 -0
- package/tasks/styleint-atomic.js +57 -0
- package/tokenized/index.d.ts +1 -0
- package/tokenized/package.json +4 -0
- package/tsconfig.dist.json +16 -0
- package/tsconfig.json +38 -0
- package/types/global.d.ts +7 -0
- package/unstable/index.d.ts +1 -0
- package/unstable/package.json +4 -0
- package/webpack.config.js +86 -0
- package/webpack.styles.config.js +67 -0
- package/dist/components.js.tmp +0 -24
- package/dist/default_scheme.js.tmp +0 -24
- package/dist/fonts.js.tmp +0 -24
- package/dist/stable.js.tmp +0 -166
- package/dist/unstable.js.tmp +0 -24
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { getClassName } from "../../helpers/getClassName";
|
|
3
|
+
import { usePlatform } from "../../hooks/usePlatform";
|
|
4
|
+
import { withAdaptivity, ViewWidth } from "../../hoc/withAdaptivity";
|
|
5
|
+
import { ScrollSaver } from "./ScrollSaver";
|
|
6
|
+
import { getNavId } from "../../lib/getNavId";
|
|
7
|
+
import { warnOnce } from "../../lib/warnOnce";
|
|
8
|
+
import {
|
|
9
|
+
AdaptivityContextInterface,
|
|
10
|
+
AdaptivityProps,
|
|
11
|
+
} from "../AdaptivityProvider/AdaptivityContext";
|
|
12
|
+
import "./Epic.css";
|
|
13
|
+
|
|
14
|
+
export interface EpicProps
|
|
15
|
+
extends React.HTMLAttributes<HTMLDivElement>,
|
|
16
|
+
AdaptivityProps {
|
|
17
|
+
tabbar?: React.ReactNode;
|
|
18
|
+
activeStory: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const warn = warnOnce("Epic");
|
|
22
|
+
|
|
23
|
+
export const Epic: React.FC<EpicProps & AdaptivityContextInterface> = (
|
|
24
|
+
props
|
|
25
|
+
) => {
|
|
26
|
+
const platform = usePlatform();
|
|
27
|
+
const scroll = React.useRef<{ [key: string]: number }>({}).current;
|
|
28
|
+
const { activeStory, tabbar, children, viewWidth, ...restProps } = props;
|
|
29
|
+
|
|
30
|
+
if (
|
|
31
|
+
process.env.NODE_ENV === "development" &&
|
|
32
|
+
!tabbar &&
|
|
33
|
+
viewWidth < ViewWidth.SMALL_TABLET
|
|
34
|
+
) {
|
|
35
|
+
warn("Using Epic without tabbar is not recommended on mobile");
|
|
36
|
+
}
|
|
37
|
+
const story =
|
|
38
|
+
(React.Children.toArray(children).find(
|
|
39
|
+
(story) =>
|
|
40
|
+
React.isValidElement(story) &&
|
|
41
|
+
getNavId(story.props, warn) === activeStory
|
|
42
|
+
) as React.ReactElement | undefined) ?? null;
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<div {...restProps} vkuiClass={getClassName("Epic", platform)}>
|
|
46
|
+
<ScrollSaver
|
|
47
|
+
key={activeStory}
|
|
48
|
+
initialScroll={scroll[activeStory] || 0}
|
|
49
|
+
saveScroll={(value) => (scroll[activeStory] = value)}
|
|
50
|
+
>
|
|
51
|
+
{story}
|
|
52
|
+
</ScrollSaver>
|
|
53
|
+
{tabbar}
|
|
54
|
+
</div>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
// eslint-disable-next-line import/no-default-export
|
|
59
|
+
export default withAdaptivity(Epic, {
|
|
60
|
+
viewWidth: true,
|
|
61
|
+
});
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
`<Epic />` – это новый слой навигации. Чтобы понять, что он себя представляет, достаточно открыть VK на iOS или на
|
|
2
|
+
Android. Внизу располагается панель с иконками, с помощью которой пользователь может переключаться между ключевыми
|
|
3
|
+
разделами.
|
|
4
|
+
|
|
5
|
+
`Epic` неразрывно связан с новыми компонентами для отрисовки
|
|
6
|
+
нижнего меню – [Tabbar](#!/Tabbar) и
|
|
7
|
+
[TabbarItem](#!/TabbarItem).
|
|
8
|
+
|
|
9
|
+
Логика работы `Epic` похожа на логику `View` и `Root`: Внутри `Epic` может находиться либо коллекция `Root`,
|
|
10
|
+
либо коллекция `View`. У каждого элемента коллекции должен быть уникальный `id`. Свойство `activeStory` указывает
|
|
11
|
+
на `id` активного окна.
|
|
12
|
+
|
|
13
|
+
> **Важно**
|
|
14
|
+
>
|
|
15
|
+
> При `viewWidth < SMALL_TABLET` в `Epic` всегда должен быть передан `Tabbar`, так как он является единственным способом переключения
|
|
16
|
+
> между окнами.
|
|
17
|
+
|
|
18
|
+
```jsx
|
|
19
|
+
const Example = withAdaptivity(
|
|
20
|
+
({ viewWidth }) => {
|
|
21
|
+
const platform = usePlatform();
|
|
22
|
+
const [activeStory, setActiveStory] = React.useState("profile");
|
|
23
|
+
const onStoryChange = (e) => setActiveStory(e.currentTarget.dataset.story);
|
|
24
|
+
const isDesktop = viewWidth >= ViewWidth.TABLET;
|
|
25
|
+
const hasHeader = platform !== VKCOM;
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<SplitLayout
|
|
29
|
+
header={hasHeader && <PanelHeader separator={false} />}
|
|
30
|
+
style={{ justifyContent: "center" }}
|
|
31
|
+
>
|
|
32
|
+
{isDesktop && (
|
|
33
|
+
<SplitCol fixed width={280} maxWidth={280}>
|
|
34
|
+
<Panel>
|
|
35
|
+
{hasHeader && <PanelHeader />}
|
|
36
|
+
<Group>
|
|
37
|
+
<Cell
|
|
38
|
+
disabled={activeStory === "feed"}
|
|
39
|
+
style={
|
|
40
|
+
activeStory === "feed"
|
|
41
|
+
? {
|
|
42
|
+
backgroundColor: "var(--button_secondary_background)",
|
|
43
|
+
borderRadius: 8,
|
|
44
|
+
}
|
|
45
|
+
: {}
|
|
46
|
+
}
|
|
47
|
+
data-story="feed"
|
|
48
|
+
onClick={onStoryChange}
|
|
49
|
+
before={<Icon28NewsfeedOutline />}
|
|
50
|
+
>
|
|
51
|
+
feed
|
|
52
|
+
</Cell>
|
|
53
|
+
<Cell
|
|
54
|
+
disabled={activeStory === "services"}
|
|
55
|
+
style={
|
|
56
|
+
activeStory === "services"
|
|
57
|
+
? {
|
|
58
|
+
backgroundColor: "var(--button_secondary_background)",
|
|
59
|
+
borderRadius: 8,
|
|
60
|
+
}
|
|
61
|
+
: {}
|
|
62
|
+
}
|
|
63
|
+
data-story="services"
|
|
64
|
+
onClick={onStoryChange}
|
|
65
|
+
before={<Icon28ServicesOutline />}
|
|
66
|
+
>
|
|
67
|
+
services
|
|
68
|
+
</Cell>
|
|
69
|
+
<Cell
|
|
70
|
+
disabled={activeStory === "messages"}
|
|
71
|
+
style={
|
|
72
|
+
activeStory === "messages"
|
|
73
|
+
? {
|
|
74
|
+
backgroundColor: "var(--button_secondary_background)",
|
|
75
|
+
borderRadius: 8,
|
|
76
|
+
}
|
|
77
|
+
: {}
|
|
78
|
+
}
|
|
79
|
+
data-story="messages"
|
|
80
|
+
onClick={onStoryChange}
|
|
81
|
+
before={<Icon28MessageOutline />}
|
|
82
|
+
>
|
|
83
|
+
messages
|
|
84
|
+
</Cell>
|
|
85
|
+
<Cell
|
|
86
|
+
disabled={activeStory === "clips"}
|
|
87
|
+
style={
|
|
88
|
+
activeStory === "clips"
|
|
89
|
+
? {
|
|
90
|
+
backgroundColor: "var(--button_secondary_background)",
|
|
91
|
+
borderRadius: 8,
|
|
92
|
+
}
|
|
93
|
+
: {}
|
|
94
|
+
}
|
|
95
|
+
data-story="clips"
|
|
96
|
+
onClick={onStoryChange}
|
|
97
|
+
before={<Icon28ClipOutline />}
|
|
98
|
+
>
|
|
99
|
+
clips
|
|
100
|
+
</Cell>
|
|
101
|
+
<Cell
|
|
102
|
+
disabled={activeStory === "profile"}
|
|
103
|
+
style={
|
|
104
|
+
activeStory === "profile"
|
|
105
|
+
? {
|
|
106
|
+
backgroundColor: "var(--button_secondary_background)",
|
|
107
|
+
borderRadius: 8,
|
|
108
|
+
}
|
|
109
|
+
: {}
|
|
110
|
+
}
|
|
111
|
+
data-story="profile"
|
|
112
|
+
onClick={onStoryChange}
|
|
113
|
+
before={<Icon28UserCircleOutline />}
|
|
114
|
+
>
|
|
115
|
+
profile
|
|
116
|
+
</Cell>
|
|
117
|
+
</Group>
|
|
118
|
+
</Panel>
|
|
119
|
+
</SplitCol>
|
|
120
|
+
)}
|
|
121
|
+
|
|
122
|
+
<SplitCol
|
|
123
|
+
animate={!isDesktop}
|
|
124
|
+
spaced={isDesktop}
|
|
125
|
+
width={isDesktop ? "560px" : "100%"}
|
|
126
|
+
maxWidth={isDesktop ? "560px" : "100%"}
|
|
127
|
+
>
|
|
128
|
+
<Epic
|
|
129
|
+
activeStory={activeStory}
|
|
130
|
+
tabbar={
|
|
131
|
+
!isDesktop && (
|
|
132
|
+
<Tabbar>
|
|
133
|
+
<TabbarItem
|
|
134
|
+
onClick={onStoryChange}
|
|
135
|
+
selected={activeStory === "feed"}
|
|
136
|
+
data-story="feed"
|
|
137
|
+
text="Новости"
|
|
138
|
+
>
|
|
139
|
+
<Icon28NewsfeedOutline />
|
|
140
|
+
</TabbarItem>
|
|
141
|
+
<TabbarItem
|
|
142
|
+
onClick={onStoryChange}
|
|
143
|
+
selected={activeStory === "services"}
|
|
144
|
+
data-story="services"
|
|
145
|
+
text="Сервисы"
|
|
146
|
+
>
|
|
147
|
+
<Icon28ServicesOutline />
|
|
148
|
+
</TabbarItem>
|
|
149
|
+
<TabbarItem
|
|
150
|
+
onClick={onStoryChange}
|
|
151
|
+
selected={activeStory === "messages"}
|
|
152
|
+
data-story="messages"
|
|
153
|
+
label="12"
|
|
154
|
+
text="Сообщения"
|
|
155
|
+
>
|
|
156
|
+
<Icon28MessageOutline />
|
|
157
|
+
</TabbarItem>
|
|
158
|
+
<TabbarItem
|
|
159
|
+
onClick={onStoryChange}
|
|
160
|
+
selected={activeStory === "clips"}
|
|
161
|
+
data-story="clips"
|
|
162
|
+
text="Клипы"
|
|
163
|
+
>
|
|
164
|
+
<Icon28ClipOutline />
|
|
165
|
+
</TabbarItem>
|
|
166
|
+
<TabbarItem
|
|
167
|
+
onClick={onStoryChange}
|
|
168
|
+
selected={activeStory === "profile"}
|
|
169
|
+
data-story="profile"
|
|
170
|
+
indicator={<Badge mode="prominent" />}
|
|
171
|
+
text="Профиль"
|
|
172
|
+
>
|
|
173
|
+
<Icon28UserCircleOutline />
|
|
174
|
+
</TabbarItem>
|
|
175
|
+
</Tabbar>
|
|
176
|
+
)
|
|
177
|
+
}
|
|
178
|
+
>
|
|
179
|
+
<View id="feed" activePanel="feed">
|
|
180
|
+
<Panel id="feed">
|
|
181
|
+
<PanelHeader left={<PanelHeaderBack />}>Новости</PanelHeader>
|
|
182
|
+
<Group style={{ height: "1000px" }}>
|
|
183
|
+
<Placeholder
|
|
184
|
+
icon={<Icon56NewsfeedOutline width={56} height={56} />}
|
|
185
|
+
/>
|
|
186
|
+
</Group>
|
|
187
|
+
</Panel>
|
|
188
|
+
</View>
|
|
189
|
+
<View id="services" activePanel="services">
|
|
190
|
+
<Panel id="services">
|
|
191
|
+
<PanelHeader left={<PanelHeaderBack />}>Сервисы</PanelHeader>
|
|
192
|
+
<Group style={{ height: "1000px" }}>
|
|
193
|
+
<Placeholder
|
|
194
|
+
icon={<Icon28ServicesOutline width={56} height={56} />}
|
|
195
|
+
></Placeholder>
|
|
196
|
+
</Group>
|
|
197
|
+
</Panel>
|
|
198
|
+
</View>
|
|
199
|
+
<View id="messages" activePanel="messages">
|
|
200
|
+
<Panel id="messages">
|
|
201
|
+
<PanelHeader left={<PanelHeaderBack />}>Сообщения</PanelHeader>
|
|
202
|
+
<Group style={{ height: "1000px" }}>
|
|
203
|
+
<Placeholder
|
|
204
|
+
icon={<Icon28MessageOutline width={56} height={56} />}
|
|
205
|
+
></Placeholder>
|
|
206
|
+
</Group>
|
|
207
|
+
</Panel>
|
|
208
|
+
</View>
|
|
209
|
+
<View id="clips" activePanel="clips">
|
|
210
|
+
<Panel id="clips">
|
|
211
|
+
<PanelHeader left={<PanelHeaderBack />}>Клипы</PanelHeader>
|
|
212
|
+
<Group style={{ height: "1000px" }}>
|
|
213
|
+
<Placeholder
|
|
214
|
+
icon={<Icon28ClipOutline width={56} height={56} />}
|
|
215
|
+
></Placeholder>
|
|
216
|
+
</Group>
|
|
217
|
+
</Panel>
|
|
218
|
+
</View>
|
|
219
|
+
<View id="profile" activePanel="profile">
|
|
220
|
+
<Panel id="profile">
|
|
221
|
+
<PanelHeader left={<PanelHeaderBack />}>Профиль</PanelHeader>
|
|
222
|
+
<Group style={{ height: "1000px" }}>
|
|
223
|
+
<Placeholder
|
|
224
|
+
icon={<Icon28UserCircleOutline width={56} height={56} />}
|
|
225
|
+
></Placeholder>
|
|
226
|
+
</Group>
|
|
227
|
+
</Panel>
|
|
228
|
+
</View>
|
|
229
|
+
</Epic>
|
|
230
|
+
</SplitCol>
|
|
231
|
+
</SplitLayout>
|
|
232
|
+
);
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
viewWidth: true,
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
|
|
239
|
+
<Example />;
|
|
240
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ScrollContext } from "../AppRoot/ScrollContext";
|
|
3
|
+
import { useIsomorphicLayoutEffect } from "../../lib/useIsomorphicLayoutEffect";
|
|
4
|
+
|
|
5
|
+
export interface ScrollSaverProps {
|
|
6
|
+
initialScroll?: number;
|
|
7
|
+
saveScroll: (scroll: number) => any;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const ScrollSaver: React.FC<ScrollSaverProps> = ({
|
|
11
|
+
children,
|
|
12
|
+
initialScroll,
|
|
13
|
+
saveScroll,
|
|
14
|
+
}) => {
|
|
15
|
+
const { getScroll, scrollTo } = React.useContext(ScrollContext);
|
|
16
|
+
useIsomorphicLayoutEffect(() => {
|
|
17
|
+
if (typeof initialScroll === "number") {
|
|
18
|
+
scrollTo(0, initialScroll);
|
|
19
|
+
}
|
|
20
|
+
return () => saveScroll(getScroll().y);
|
|
21
|
+
}, []);
|
|
22
|
+
return <React.Fragment>{children}</React.Fragment>;
|
|
23
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { getClassName } from "../../helpers/getClassName";
|
|
3
|
+
import Button, { VKUIButtonProps } from "../Button/Button";
|
|
4
|
+
import { HasRef, HasRootRef } from "../../types";
|
|
5
|
+
import { usePlatform } from "../../hooks/usePlatform";
|
|
6
|
+
import { useExternRef } from "../../hooks/useExternRef";
|
|
7
|
+
import "./File.css";
|
|
8
|
+
|
|
9
|
+
export interface FileProps
|
|
10
|
+
extends Omit<VKUIButtonProps, "size" | "type">,
|
|
11
|
+
Omit<React.InputHTMLAttributes<HTMLInputElement>, "onClick" | "type">,
|
|
12
|
+
Pick<React.HTMLAttributes<HTMLElement>, "onClick">,
|
|
13
|
+
HasRef<HTMLInputElement>,
|
|
14
|
+
HasRootRef<HTMLElement> {
|
|
15
|
+
controlSize?: VKUIButtonProps["size"];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const File: React.FunctionComponent<FileProps> = (props: FileProps) => {
|
|
19
|
+
const {
|
|
20
|
+
children,
|
|
21
|
+
align,
|
|
22
|
+
controlSize,
|
|
23
|
+
mode,
|
|
24
|
+
stretched,
|
|
25
|
+
before,
|
|
26
|
+
className,
|
|
27
|
+
style,
|
|
28
|
+
getRef,
|
|
29
|
+
getRootRef,
|
|
30
|
+
onClick,
|
|
31
|
+
appearance,
|
|
32
|
+
...restProps
|
|
33
|
+
} = props;
|
|
34
|
+
|
|
35
|
+
const platform = usePlatform();
|
|
36
|
+
const inputRef = useExternRef(getRef);
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<Button
|
|
40
|
+
align={align}
|
|
41
|
+
vkuiClass={getClassName("File", platform)}
|
|
42
|
+
className={className}
|
|
43
|
+
stretched={stretched}
|
|
44
|
+
mode={mode}
|
|
45
|
+
appearance={appearance}
|
|
46
|
+
size={controlSize}
|
|
47
|
+
before={before}
|
|
48
|
+
style={style}
|
|
49
|
+
getRootRef={getRootRef}
|
|
50
|
+
disabled={restProps.disabled}
|
|
51
|
+
type="button"
|
|
52
|
+
onClick={(e) => {
|
|
53
|
+
inputRef.current?.click();
|
|
54
|
+
onClick && onClick(e);
|
|
55
|
+
}}
|
|
56
|
+
>
|
|
57
|
+
<input
|
|
58
|
+
{...restProps}
|
|
59
|
+
vkuiClass="File__input"
|
|
60
|
+
type="file"
|
|
61
|
+
ref={inputRef}
|
|
62
|
+
/>
|
|
63
|
+
{children}
|
|
64
|
+
</Button>
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
File.defaultProps = {
|
|
69
|
+
children: "Выберите файл",
|
|
70
|
+
align: "left",
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// eslint-disable-next-line import/no-default-export
|
|
74
|
+
export default File;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Надстройка над `<input type="file" />`. Компонент принимает все валидные для этого элемента свойства.
|
|
2
|
+
`File` под капотом использует `Button`. То есть все свойства, применимые к `Button`, применимы и к `File`.
|
|
3
|
+
|
|
4
|
+
```jsx
|
|
5
|
+
<View activePanel="panel">
|
|
6
|
+
<Panel id="panel">
|
|
7
|
+
<PanelHeader>File</PanelHeader>
|
|
8
|
+
<Group>
|
|
9
|
+
<FormItem top="Загрузите ваше фото">
|
|
10
|
+
<File before={<Icon24Camera />} controlSize="m">
|
|
11
|
+
Открыть галерею
|
|
12
|
+
</File>
|
|
13
|
+
</FormItem>
|
|
14
|
+
<FormItem top="Загрузите документы">
|
|
15
|
+
<File before={<Icon24Document />} controlSize="l" mode="secondary" />
|
|
16
|
+
</FormItem>
|
|
17
|
+
</Group>
|
|
18
|
+
</Panel>
|
|
19
|
+
</View>
|
|
20
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.FixedLayout {
|
|
2
|
+
position: fixed;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
left: auto;
|
|
5
|
+
z-index: 3;
|
|
6
|
+
padding-left: var(--safe-area-inset-left);
|
|
7
|
+
padding-right: var(--safe-area-inset-right);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.FixedLayout--filled {
|
|
11
|
+
background: var(--background_content);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.FixedLayout--top {
|
|
15
|
+
width: 100%;
|
|
16
|
+
top: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.FixedLayout--bottom {
|
|
20
|
+
width: 100%;
|
|
21
|
+
bottom: 0;
|
|
22
|
+
padding-bottom: var(--safe-area-inset-bottom);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.Epic .FixedLayout--bottom {
|
|
26
|
+
padding-bottom: calc(var(--tabbar_height) + var(--safe-area-inset-bottom));
|
|
27
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { getClassName } from "../../helpers/getClassName";
|
|
3
|
+
import { classNames } from "../../lib/classNames";
|
|
4
|
+
import { HasRef, HasRootRef } from "../../types";
|
|
5
|
+
import { SplitColContext } from "../SplitCol/SplitCol";
|
|
6
|
+
import { TooltipContainer } from "../Tooltip/TooltipContainer";
|
|
7
|
+
import { useDOM } from "../../lib/dom";
|
|
8
|
+
import { useGlobalEventListener } from "../../hooks/useGlobalEventListener";
|
|
9
|
+
import { usePlatform } from "../../hooks/usePlatform";
|
|
10
|
+
import "./FixedLayout.css";
|
|
11
|
+
|
|
12
|
+
export interface FixedLayoutProps
|
|
13
|
+
extends React.HTMLAttributes<HTMLDivElement>,
|
|
14
|
+
HasRootRef<HTMLDivElement>,
|
|
15
|
+
HasRef<HTMLDivElement> {
|
|
16
|
+
vertical?: "top" | "bottom";
|
|
17
|
+
/**
|
|
18
|
+
* Это свойство определяет, будет ли фон компонента окрашен в цвет фона контента.
|
|
19
|
+
* Это часто необходимо для фиксированных кнопок в нижней части экрана.
|
|
20
|
+
*/
|
|
21
|
+
filled?: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface FixedLayoutState {
|
|
25
|
+
position: "absolute" | null;
|
|
26
|
+
top: number;
|
|
27
|
+
bottom: number;
|
|
28
|
+
width: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const FixedLayout: React.FC<FixedLayoutProps> = ({
|
|
32
|
+
children,
|
|
33
|
+
style,
|
|
34
|
+
vertical,
|
|
35
|
+
getRootRef,
|
|
36
|
+
getRef,
|
|
37
|
+
filled,
|
|
38
|
+
...restProps
|
|
39
|
+
}: FixedLayoutProps) => {
|
|
40
|
+
const platform = usePlatform();
|
|
41
|
+
const [width, setWidth] = React.useState<string | undefined>(undefined);
|
|
42
|
+
const { window } = useDOM();
|
|
43
|
+
const { colRef } = React.useContext(SplitColContext);
|
|
44
|
+
const doResize = () =>
|
|
45
|
+
setWidth(colRef?.current ? `${colRef.current.offsetWidth}px` : undefined);
|
|
46
|
+
React.useEffect(doResize, [colRef]);
|
|
47
|
+
useGlobalEventListener(window, "resize", doResize);
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<TooltipContainer
|
|
51
|
+
{...restProps}
|
|
52
|
+
fixed
|
|
53
|
+
ref={getRootRef}
|
|
54
|
+
vkuiClass={classNames(
|
|
55
|
+
getClassName("FixedLayout", platform),
|
|
56
|
+
{
|
|
57
|
+
"FixedLayout--filled": filled,
|
|
58
|
+
},
|
|
59
|
+
`FixedLayout--${vertical}`
|
|
60
|
+
)}
|
|
61
|
+
style={{ ...style, width }}
|
|
62
|
+
>
|
|
63
|
+
<div vkuiClass="FixedLayout__in" ref={getRef}>
|
|
64
|
+
{children}
|
|
65
|
+
</div>
|
|
66
|
+
</TooltipContainer>
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// eslint-disable-next-line import/no-default-export
|
|
71
|
+
export default FixedLayout;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
`{ position: fixed }` не дружит с `{ transform: translate }` на родителе, поэтому для позиционирования фиксированных
|
|
2
|
+
блоков внутри панели, необходимо использовать `FixedLayout` в качестве обертки.
|
|
3
|
+
|
|
4
|
+
Для удобства есть свойство `vertical`, с помощью которого можно "прижать" контент к верху или низу.
|
|
5
|
+
При этому будут учитываться высота шапки и прочие системные отступы.
|
|
6
|
+
|
|
7
|
+
**Важно:** блок с `{ position: fixed }` находится не в потоке. В примере можно увидеть, что у блока с основным
|
|
8
|
+
контентом есть паддинги. Они там не случайны.
|
|
9
|
+
|
|
10
|
+
```jsx
|
|
11
|
+
class Example extends React.Component {
|
|
12
|
+
constructor(props) {
|
|
13
|
+
super(props);
|
|
14
|
+
|
|
15
|
+
this.state = {
|
|
16
|
+
activeTab: "groups",
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
render() {
|
|
21
|
+
return (
|
|
22
|
+
<View activePanel="fixedLayout">
|
|
23
|
+
<Panel id="fixedLayout">
|
|
24
|
+
<PanelHeader>Fixed layout</PanelHeader>
|
|
25
|
+
<Group>
|
|
26
|
+
<FixedLayout vertical="top">
|
|
27
|
+
<Search />
|
|
28
|
+
</FixedLayout>
|
|
29
|
+
<Div style={{ paddingTop: 60, paddingBottom: 60, color: "gray" }}>
|
|
30
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a
|
|
31
|
+
sollicitudin lectus, a commodo sapien. Vivamus a urna leo. Integer
|
|
32
|
+
iaculis dignissim urna, sit amet vestibulum diam bibendum a. Donec
|
|
33
|
+
eu arcu ut augue porttitor faucibus. Vestibulum nec pretium
|
|
34
|
+
tortor, sit amet congue nunc. Aenean ullamcorper ex sem, sed
|
|
35
|
+
interdum quam consequat et. Vestibulum a ex non diam fringilla
|
|
36
|
+
feugiat. Nunc eu tellus sed leo elementum cursus. Mauris blandit
|
|
37
|
+
porta egestas. Curabitur eget justo elementum, malesuada lacus ut,
|
|
38
|
+
congue mauris. Integer orci nisi, convallis vitae dapibus sit
|
|
39
|
+
amet, molestie a risus. Aenean ultricies lacus eros, sit amet
|
|
40
|
+
condimentum urna malesuada et. Sed quis dolor tempus orci
|
|
41
|
+
fringilla volutpat in sed velit. Aenean aliquet bibendum pretium.
|
|
42
|
+
<br />
|
|
43
|
+
<br />
|
|
44
|
+
Cras pulvinar lobortis purus. Donec placerat suscipit leo vitae sodales.
|
|
45
|
+
Phasellus convallis lorem vitae arcu finibus pellentesque. In imperdiet
|
|
46
|
+
vel leo a euismod. Nam sed odio a neque venenatis suscipit a placerat
|
|
47
|
+
magna. Mauris magna nisl, consequat nec augue vitae, ultricies scelerisque
|
|
48
|
+
ante. Phasellus pharetra risus eget imperdiet sodales. Integer dignissim
|
|
49
|
+
auctor semper. Nulla odio odio, euismod ut interdum in, bibendum sed
|
|
50
|
+
massa. Proin rutrum molestie massa in ultrices. Donec eu euismod turpis,
|
|
51
|
+
eget lobortis lorem. Nulla facilisi. Nam lacinia posuere turpis, sed
|
|
52
|
+
laoreet turpis auctor nec.
|
|
53
|
+
<br />
|
|
54
|
+
<br />
|
|
55
|
+
Curabitur eu fermentum mauris. Phasellus malesuada consectetur
|
|
56
|
+
mollis. Pellentesque pulvinar mauris turpis. Integer neque dolor,
|
|
57
|
+
semper quis neque et, gravida commodo eros. Duis efficitur ex a
|
|
58
|
+
turpis blandit tincidunt. Mauris sem mi, imperdiet quis ligula sit
|
|
59
|
+
amet, fermentum vulputate felis. Phasellus eu ullamcorper dolor,
|
|
60
|
+
porttitor pulvinar diam. Aliquam euismod, mauris nec varius
|
|
61
|
+
lacinia, ligula libero vulputate leo, ut tristique massa nisi
|
|
62
|
+
vitae tortor. Phasellus purus elit, gravida sit amet neque id,
|
|
63
|
+
aliquam rutrum dui. Maecenas luctus sem vitae molestie porttitor.
|
|
64
|
+
Cras viverra mauris risus, at sollicitudin ipsum interdum eu. Sed
|
|
65
|
+
sit amet tempor enim.
|
|
66
|
+
<br />
|
|
67
|
+
<br />
|
|
68
|
+
In hac habitasse platea dictumst. Etiam luctus erat metus, quis efficitur
|
|
69
|
+
quam vulputate quis. Duis ultricies non mauris condimentum molestie.
|
|
70
|
+
Maecenas sollicitudin ex sem, quis ultrices libero blandit eu. Vivamus
|
|
71
|
+
in turpis pulvinar, malesuada enim at, hendrerit magna. Proin eu nulla
|
|
72
|
+
eget arcu pretium pharetra. Sed ullamcorper pulvinar est eu dapibus.
|
|
73
|
+
Cras at varius justo. In ex odio, condimentum id pellentesque a, sodales
|
|
74
|
+
ut diam.
|
|
75
|
+
<br />
|
|
76
|
+
<br />
|
|
77
|
+
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices
|
|
78
|
+
posuere cubilia Curae; Nam aliquet tempor laoreet. Maecenas eu
|
|
79
|
+
pulvinar diam. Pellentesque habitant morbi tristique senectus et
|
|
80
|
+
netus et malesuada fames ac turpis egestas. Maecenas et elit eros.
|
|
81
|
+
Quisque ullamcorper sodales nisi, eleifend aliquet metus venenatis
|
|
82
|
+
in. Aliquam ornare a lacus in tincidunt. Cras vel tristique metus.
|
|
83
|
+
Sed vitae nisl at nisl imperdiet sollicitudin. Sed sit amet enim
|
|
84
|
+
in lectus imperdiet interdum condimentum et diam. Proin venenatis
|
|
85
|
+
sit amet diam ac vulputate. Donec mauris orci, semper volutpat
|
|
86
|
+
nunc ut, efficitur condimentum dolor. Vivamus in quam eget quam
|
|
87
|
+
lacinia pharetra. Phasellus ipsum magna, aliquet id elit eget,
|
|
88
|
+
cursus tincidunt ex. In rhoncus turpis turpis, et viverra ex
|
|
89
|
+
malesuada vel. Donec nisi tellus, mollis et posuere vel, dictum
|
|
90
|
+
eget neque.
|
|
91
|
+
</Div>
|
|
92
|
+
<FixedLayout filled vertical="bottom">
|
|
93
|
+
<Separator wide />
|
|
94
|
+
<Tabs>
|
|
95
|
+
<TabsItem
|
|
96
|
+
selected={this.state.activeTab === "groups"}
|
|
97
|
+
onClick={() => this.setState({ activeTab: "groups" })}
|
|
98
|
+
>
|
|
99
|
+
176 сообществ
|
|
100
|
+
</TabsItem>
|
|
101
|
+
<TabsItem
|
|
102
|
+
selected={this.state.activeTab === "events"}
|
|
103
|
+
onClick={() => this.setState({ activeTab: "events" })}
|
|
104
|
+
>
|
|
105
|
+
9 событий
|
|
106
|
+
</TabsItem>
|
|
107
|
+
</Tabs>
|
|
108
|
+
</FixedLayout>
|
|
109
|
+
</Group>
|
|
110
|
+
</Panel>
|
|
111
|
+
</View>
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
<Example />;
|
|
117
|
+
```
|