@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,254 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
/*
|
|
3
|
+
* Этот файл сгенерирован автоматически. Не надо править его руками.
|
|
4
|
+
*/
|
|
5
|
+
body[scheme="vkcom_light"],
|
|
6
|
+
[scheme="vkcom_light"],
|
|
7
|
+
.vkuivkcom_light {
|
|
8
|
+
--accent: #5181b8;
|
|
9
|
+
--accent_alternate: #0077ff;
|
|
10
|
+
--action_sheet_action_foreground: #5181b8;
|
|
11
|
+
--action_sheet_separator: rgba(0, 0, 0, 0.12);
|
|
12
|
+
--activity_indicator_tint: #aeb7c2;
|
|
13
|
+
--attach_picker_tab_active_background: #5181b8;
|
|
14
|
+
--attach_picker_tab_active_icon: #ffffff;
|
|
15
|
+
--attach_picker_tab_active_text: #5181b8;
|
|
16
|
+
--attach_picker_tab_inactive_background: #f5f5f5;
|
|
17
|
+
--attach_picker_tab_inactive_icon: #818c99;
|
|
18
|
+
--attach_picker_tab_inactive_text: #818c99;
|
|
19
|
+
--background_content: #ffffff;
|
|
20
|
+
--background_highlighted: rgba(174, 183, 194, 0.16);
|
|
21
|
+
--background_hover: rgba(174, 183, 194, 0.12);
|
|
22
|
+
--background_keyboard: #dce1e6;
|
|
23
|
+
--background_light: #fafbfc;
|
|
24
|
+
--background_page: #edeef0;
|
|
25
|
+
--background_suggestions: #ffffff;
|
|
26
|
+
--background_text_highlighted: rgba(81, 129, 184, 0.2);
|
|
27
|
+
--button_bot_shadow: #cccccc;
|
|
28
|
+
--button_commerce_background: #4bb34b;
|
|
29
|
+
--button_commerce_foreground: #ffffff;
|
|
30
|
+
--button_muted_background: #e5ebf1;
|
|
31
|
+
--button_muted_foreground: #55677d;
|
|
32
|
+
--button_outline_border: #2a5885;
|
|
33
|
+
--button_outline_foreground: #2a5885;
|
|
34
|
+
--button_primary_background: #5181b8;
|
|
35
|
+
--button_primary_foreground: #ffffff;
|
|
36
|
+
--button_secondary_background: #e5ebf1;
|
|
37
|
+
--button_secondary_background_highlighted: #dae2ea;
|
|
38
|
+
--button_secondary_destructive_background: rgba(230, 70, 70, 0.16);
|
|
39
|
+
--button_secondary_destructive_background_highlighted: rgba(
|
|
40
|
+
230,
|
|
41
|
+
70,
|
|
42
|
+
70,
|
|
43
|
+
0.12
|
|
44
|
+
);
|
|
45
|
+
--button_secondary_destructive_foreground: #e64646;
|
|
46
|
+
--button_secondary_destructive_foreground_highlighted: rgba(
|
|
47
|
+
230,
|
|
48
|
+
70,
|
|
49
|
+
70,
|
|
50
|
+
0.12
|
|
51
|
+
);
|
|
52
|
+
--button_secondary_foreground: #55677d;
|
|
53
|
+
--button_secondary_foreground_highlighted: #55677d;
|
|
54
|
+
--button_tertiary_background: rgba(0, 0, 0, 0);
|
|
55
|
+
--button_tertiary_foreground: #2a5885;
|
|
56
|
+
--cell_button_foreground: #2a5885;
|
|
57
|
+
--content_negative_background: #ff5c5c;
|
|
58
|
+
--content_placeholder_icon: #99a2ad;
|
|
59
|
+
--content_placeholder_text: #818c99;
|
|
60
|
+
--content_positive_background: #def0d3;
|
|
61
|
+
--content_tint_background: #f0f2f5;
|
|
62
|
+
--content_tint_foreground: #828282;
|
|
63
|
+
--content_warning_background: #faefd2;
|
|
64
|
+
--control_background: #edeef0;
|
|
65
|
+
--control_foreground: #5181b8;
|
|
66
|
+
--control_tint: #ffffff;
|
|
67
|
+
--control_tint_muted: #828282;
|
|
68
|
+
--counter_primary_background: #5181b8;
|
|
69
|
+
--counter_primary_text: #ffffff;
|
|
70
|
+
--counter_prominent_background: #ff3347;
|
|
71
|
+
--counter_prominent_text: #ffffff;
|
|
72
|
+
--counter_secondary_background: #99a2ad;
|
|
73
|
+
--counter_secondary_text: #ffffff;
|
|
74
|
+
--destructive: #e64646;
|
|
75
|
+
--dynamic_blue: #5181b8;
|
|
76
|
+
--dynamic_gray: #aeb7c2;
|
|
77
|
+
--dynamic_green: #1b7a1b;
|
|
78
|
+
--dynamic_orange: #ffa000;
|
|
79
|
+
--dynamic_purple: #735ce6;
|
|
80
|
+
--dynamic_raspberry_pink: #e03fab;
|
|
81
|
+
--dynamic_red: #ff3347;
|
|
82
|
+
--dynamic_violet: #792ec0;
|
|
83
|
+
--feed_recommended_friend_promo_background: #5181b8;
|
|
84
|
+
--field_background: #f7f8fa;
|
|
85
|
+
--field_border: #dce1e6;
|
|
86
|
+
--field_error_background: #faebeb;
|
|
87
|
+
--field_error_border: #e64646;
|
|
88
|
+
--field_text_placeholder: #818c99;
|
|
89
|
+
--field_valid_border: #4bb34b;
|
|
90
|
+
--float_button_background: #f7f8fa;
|
|
91
|
+
--float_button_background_highlighted: #edeef0;
|
|
92
|
+
--float_button_border: rgba(0, 0, 0, 0.08);
|
|
93
|
+
--float_button_foreground: #99a2ad;
|
|
94
|
+
--header_alternate_background: #ffffff;
|
|
95
|
+
--header_alternate_tab_active_indicator: #5181b8;
|
|
96
|
+
--header_alternate_tab_active_text: #000000;
|
|
97
|
+
--header_alternate_tab_inactive_text: #99a2ad;
|
|
98
|
+
--header_background: #ffffff;
|
|
99
|
+
--header_background_before_blur: #ffffff;
|
|
100
|
+
--header_background_before_blur_alternate: #ffffff;
|
|
101
|
+
--header_search_field_background: #edeef0;
|
|
102
|
+
--header_search_field_tint: #818c99;
|
|
103
|
+
--header_tab_active_background: rgba(0, 0, 0, 0);
|
|
104
|
+
--header_tab_active_indicator: #5181b8;
|
|
105
|
+
--header_tab_active_text: #000000;
|
|
106
|
+
--header_tab_inactive_text: #99a2ad;
|
|
107
|
+
--header_text: #000000;
|
|
108
|
+
--header_text_alternate: #000000;
|
|
109
|
+
--header_text_secondary: #818c99;
|
|
110
|
+
--header_tint: #aeb7c2;
|
|
111
|
+
--header_tint_alternate: #0077ff;
|
|
112
|
+
--icon_alpha_placeholder: #ffffff;
|
|
113
|
+
--icon_medium: #6f7985;
|
|
114
|
+
--icon_medium_alpha: rgba(0, 0, 0, 0.48);
|
|
115
|
+
--icon_name: #8fadc8;
|
|
116
|
+
--icon_outline_medium: #818c99;
|
|
117
|
+
--icon_outline_secondary: #99a2ad;
|
|
118
|
+
--icon_secondary: #99a2ad;
|
|
119
|
+
--icon_secondary_alpha: rgba(0, 0, 0, 0.36);
|
|
120
|
+
--icon_tertiary: #aeb7c2;
|
|
121
|
+
--icon_tertiary_alpha: rgba(0, 0, 0, 0.24);
|
|
122
|
+
--im_attach_tint: #5181b8;
|
|
123
|
+
--im_bubble_border_alternate: #dce1e6;
|
|
124
|
+
--im_bubble_border_alternate_highlighted: #cccccc;
|
|
125
|
+
--im_bubble_button_background: #f7f8fa;
|
|
126
|
+
--im_bubble_button_background_highlighted: #cccccc;
|
|
127
|
+
--im_bubble_button_foreground: #000000;
|
|
128
|
+
--im_bubble_button_outgoing_background: rgba(255, 255, 255, 0.72);
|
|
129
|
+
--im_bubble_gift_background: #f4e7c3;
|
|
130
|
+
--im_bubble_gift_background_highlighted: #e3d3ac;
|
|
131
|
+
--im_bubble_gift_text: #857250;
|
|
132
|
+
--im_bubble_gift_text_secondary: #ab9871;
|
|
133
|
+
--im_bubble_incoming: #edeef0;
|
|
134
|
+
--im_bubble_incoming_alternate: #ffffff;
|
|
135
|
+
--im_bubble_incoming_alternate_highlighted: #f7f8fa;
|
|
136
|
+
--im_bubble_incoming_expiring: #e6e9ff;
|
|
137
|
+
--im_bubble_incoming_expiring_highlighted: #ccd3ff;
|
|
138
|
+
--im_bubble_incoming_highlighted: #d3d9de;
|
|
139
|
+
--im_bubble_outgoing: #cce4ff;
|
|
140
|
+
--im_bubble_outgoing_alternate: #ffffff;
|
|
141
|
+
--im_bubble_outgoing_alternate_highlighted: #f0f2f5;
|
|
142
|
+
--im_bubble_outgoing_expiring: #ccd3ff;
|
|
143
|
+
--im_bubble_outgoing_expiring_highlighted: #adb8ff;
|
|
144
|
+
--im_bubble_outgoing_highlighted: #add3ff;
|
|
145
|
+
--im_bubble_wallpaper_button_background: #f0f2f5;
|
|
146
|
+
--im_bubble_wallpaper_button_background_highlighted: #e7e8ec;
|
|
147
|
+
--im_bubble_wallpaper_button_foreground: #000000;
|
|
148
|
+
--im_bubble_wallpaper_incoming: #ffffff;
|
|
149
|
+
--im_bubble_wallpaper_incoming_highlighted: #edeef0;
|
|
150
|
+
--im_bubble_wallpaper_outgoing: #cce4ff;
|
|
151
|
+
--im_bubble_wallpaper_outgoing_highlighted: #add3ff;
|
|
152
|
+
--im_forward_line_tint: rgba(0, 20, 51, 0.12);
|
|
153
|
+
--im_reply_separator: #2a5885;
|
|
154
|
+
--im_service_message_text: #818c99;
|
|
155
|
+
--im_text_name: #2a5885;
|
|
156
|
+
--im_toolbar_separator: #001c3d;
|
|
157
|
+
--im_toolbar_voice_msg_background: #99a2ad;
|
|
158
|
+
--image_border: rgba(0, 0, 0, 0.08);
|
|
159
|
+
--input_background: #ffffff;
|
|
160
|
+
--input_border: #d3d9de;
|
|
161
|
+
--landing_background: #ffffff;
|
|
162
|
+
--landing_field_background: #f7f8fa;
|
|
163
|
+
--landing_field_border: rgba(0, 0, 0, 0);
|
|
164
|
+
--landing_field_placeholder: #818c99;
|
|
165
|
+
--landing_login_button_background: #5181b8;
|
|
166
|
+
--landing_login_button_foreground: #ffffff;
|
|
167
|
+
--landing_primary_button_background: #5181b8;
|
|
168
|
+
--landing_primary_button_foreground: #ffffff;
|
|
169
|
+
--landing_secondary_button_background: rgba(0, 57, 115, 0.1);
|
|
170
|
+
--landing_secondary_button_foreground: #5181b8;
|
|
171
|
+
--landing_snippet_border: rgba(0, 0, 0, 0.12);
|
|
172
|
+
--landing_tertiary_button_background: rgba(0, 0, 0, 0);
|
|
173
|
+
--landing_tertiary_button_foreground: #5181b8;
|
|
174
|
+
--landing_text_primary: #000000;
|
|
175
|
+
--landing_text_secondary: #818c99;
|
|
176
|
+
--landing_text_title: #5181b8;
|
|
177
|
+
--like_text_tint: #ff3347;
|
|
178
|
+
--link_alternate: #2a5885;
|
|
179
|
+
--loader_background: #edeef0;
|
|
180
|
+
--loader_tint: #c5d0db;
|
|
181
|
+
--loader_track_fill: #d3d9de;
|
|
182
|
+
--loader_track_value_fill: #5181b8;
|
|
183
|
+
--media_overlay_button_background: #ffffff;
|
|
184
|
+
--media_overlay_button_foreground: #333333;
|
|
185
|
+
--modal_card_background: #ffffff;
|
|
186
|
+
--modal_card_border: rgba(0, 0, 0, 0);
|
|
187
|
+
--modal_card_header_close: #000000;
|
|
188
|
+
--music_playback_icon: #000000;
|
|
189
|
+
--overlay_status_background: #edeef0;
|
|
190
|
+
--overlay_status_foreground: #6f7985;
|
|
191
|
+
--overlay_status_icon: #818c99;
|
|
192
|
+
--panel_tab_active_background: #edeef0;
|
|
193
|
+
--panel_tab_active_text: #4e5966;
|
|
194
|
+
--panel_tab_inactive_text: #6f7985;
|
|
195
|
+
--placeholder_icon_background: rgba(0, 28, 61, 0.08);
|
|
196
|
+
--placeholder_icon_background_opaque: #f0f2f5;
|
|
197
|
+
--placeholder_icon_foreground_primary: #99a2ad;
|
|
198
|
+
--placeholder_icon_foreground_secondary: #aeb7c2;
|
|
199
|
+
--placeholder_icon_tint: #1d3a5c;
|
|
200
|
+
--poll_option_background: #5181b8;
|
|
201
|
+
--primary_overlay_badge: rgba(0, 0, 0, 0.56);
|
|
202
|
+
--search_bar_background: rgba(0, 0, 0, 0);
|
|
203
|
+
--search_bar_field_background: #edeef0;
|
|
204
|
+
--search_bar_field_tint: #818c99;
|
|
205
|
+
--search_bar_segmented_control_tint: #818c99;
|
|
206
|
+
--secondary_overlay_badge: rgba(0, 0, 0, 0.24);
|
|
207
|
+
--segmented_control_bar_background: rgba(0, 0, 0, 0);
|
|
208
|
+
--segmented_control_tint: #99a2ad;
|
|
209
|
+
--selection_off_icon: #c5d0db;
|
|
210
|
+
--separator_alpha: rgba(0, 0, 0, 0.12);
|
|
211
|
+
--separator_alternate: #e7e8ec;
|
|
212
|
+
--separator_common: #dce1e6;
|
|
213
|
+
--skeleton_foreground_from: #f0f2f5;
|
|
214
|
+
--skeleton_foreground_to: #e7e8ec;
|
|
215
|
+
--skeleton_shimmer_from: #ffffff;
|
|
216
|
+
--skeleton_shimmer_to: rgba(255, 255, 255, 0);
|
|
217
|
+
--snippet_background: #ffffff;
|
|
218
|
+
--snippet_border: rgba(0, 0, 0, 0.12);
|
|
219
|
+
--snippet_icon_tertiary: #aeb7c2;
|
|
220
|
+
--splashscreen_icon: #dce1e6;
|
|
221
|
+
--statusbar_alternate_legacy_background: rgba(0, 0, 0, 0.24);
|
|
222
|
+
--stories_create_button_background_from: #f0f2f5;
|
|
223
|
+
--stories_create_button_background_to: #dce1e6;
|
|
224
|
+
--stories_create_button_foreground: #6f7985;
|
|
225
|
+
--stories_create_button_icon_background: #ffffff;
|
|
226
|
+
--stories_skeleton_loader_background: #cccccc;
|
|
227
|
+
--switch_ios_off_border: #dce1e6;
|
|
228
|
+
--tabbar_active_icon: #5181b8;
|
|
229
|
+
--tabbar_background: #f7f8fa;
|
|
230
|
+
--tabbar_inactive_icon: #99a2ad;
|
|
231
|
+
--tabbar_tablet_active_icon: #5181b8;
|
|
232
|
+
--tabbar_tablet_background: #f7f8fa;
|
|
233
|
+
--tabbar_tablet_inactive_icon: #99a2ad;
|
|
234
|
+
--tabbar_tablet_text_primary: #000000;
|
|
235
|
+
--tabbar_tablet_text_secondary: #818c99;
|
|
236
|
+
--text_action_counter: #818c99;
|
|
237
|
+
--text_link: #2a5885;
|
|
238
|
+
--text_link_highlighted_background: #000000;
|
|
239
|
+
--text_muted: #333333;
|
|
240
|
+
--text_name: #2a5885;
|
|
241
|
+
--text_placeholder: #818c99;
|
|
242
|
+
--text_primary: #000000;
|
|
243
|
+
--text_secondary: #818c99;
|
|
244
|
+
--text_subhead: #626d7a;
|
|
245
|
+
--text_tertiary: #99a2ad;
|
|
246
|
+
--toolbar_attach_background_from: #dce1e6;
|
|
247
|
+
--toolbar_attach_background_to: #aeb7c2;
|
|
248
|
+
--vk_connect_button_primary_background: #222222;
|
|
249
|
+
--vk_connect_button_primary_foreground: #ffffff;
|
|
250
|
+
--vk_connect_button_secondary_background: #f5f5f5;
|
|
251
|
+
--vk_connect_button_secondary_foreground: #222222;
|
|
252
|
+
--writebar_icon: #818c99;
|
|
253
|
+
}
|
|
254
|
+
/* stylelint-enable */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { render, RenderResult, screen } from "@testing-library/react";
|
|
3
|
+
import { AdaptivityProvider } from "../components/AdaptivityProvider/AdaptivityProvider";
|
|
4
|
+
import { AdaptivityProps } from "../components/AdaptivityProvider/AdaptivityContext";
|
|
5
|
+
import { ImgOnlyAttributes } from "../lib/utils";
|
|
6
|
+
import { ScrollContext } from "../components/AppRoot/ScrollContext";
|
|
7
|
+
import { act } from "react-dom/test-utils";
|
|
8
|
+
|
|
9
|
+
export function fakeTimers() {
|
|
10
|
+
beforeEach(() => jest.useFakeTimers());
|
|
11
|
+
afterEach(() => jest.useRealTimers());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const runAllTimers = () =>
|
|
15
|
+
act(() => {
|
|
16
|
+
jest.runAllTimers();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export const imgOnlyAttributes: ImgOnlyAttributes = {
|
|
20
|
+
alt: "test",
|
|
21
|
+
crossOrigin: "anonymous",
|
|
22
|
+
decoding: "async",
|
|
23
|
+
height: 100,
|
|
24
|
+
width: 100,
|
|
25
|
+
loading: "eager",
|
|
26
|
+
referrerPolicy: "no-referrer",
|
|
27
|
+
sizes: "test",
|
|
28
|
+
src: "test",
|
|
29
|
+
srcSet: "test",
|
|
30
|
+
useMap: "test",
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type ComponentTestOptions = {
|
|
34
|
+
defaultProps?: any;
|
|
35
|
+
forward?: boolean;
|
|
36
|
+
domAttr?: boolean;
|
|
37
|
+
className?: boolean;
|
|
38
|
+
style?: boolean;
|
|
39
|
+
adaptivity?: AdaptivityProps;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
type BasicProps = { style?: any; className?: string };
|
|
43
|
+
|
|
44
|
+
export function mountTest(Component: React.ComponentType<any>) {
|
|
45
|
+
it("renders", () => {
|
|
46
|
+
let api: RenderResult;
|
|
47
|
+
// mount
|
|
48
|
+
expect(() => (api = render(<Component />))).not.toThrow();
|
|
49
|
+
// update
|
|
50
|
+
expect(() => api.rerender(<Component />)).not.toThrow();
|
|
51
|
+
// unmount
|
|
52
|
+
expect(() => api.unmount()).not.toThrow();
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function baselineComponent<Props extends BasicProps>(
|
|
57
|
+
RawComponent: React.ComponentType<Props>,
|
|
58
|
+
{
|
|
59
|
+
forward = true,
|
|
60
|
+
style = true,
|
|
61
|
+
className = true,
|
|
62
|
+
domAttr = true,
|
|
63
|
+
adaptivity,
|
|
64
|
+
}: ComponentTestOptions = {}
|
|
65
|
+
) {
|
|
66
|
+
const Component: React.ComponentType<any> = adaptivity
|
|
67
|
+
? (p: Props) => (
|
|
68
|
+
<AdaptivityProvider {...adaptivity}>
|
|
69
|
+
<RawComponent {...p} />
|
|
70
|
+
</AdaptivityProvider>
|
|
71
|
+
)
|
|
72
|
+
: RawComponent;
|
|
73
|
+
mountTest(Component);
|
|
74
|
+
forward &&
|
|
75
|
+
it("forwards attributes", () => {
|
|
76
|
+
const cls = "Custom";
|
|
77
|
+
const { rerender } = render(
|
|
78
|
+
<Component
|
|
79
|
+
data-testid="__cmp__"
|
|
80
|
+
className={cls}
|
|
81
|
+
style={{ background: "red" }}
|
|
82
|
+
/>
|
|
83
|
+
);
|
|
84
|
+
// forward DOM attributes
|
|
85
|
+
domAttr && expect(screen.queryByTestId("__cmp__")).toBeTruthy();
|
|
86
|
+
|
|
87
|
+
if (className || style) {
|
|
88
|
+
const styledNode = document.getElementsByClassName(
|
|
89
|
+
cls
|
|
90
|
+
)[0] as HTMLElement;
|
|
91
|
+
// forwards className
|
|
92
|
+
className && expect(styledNode).toBeTruthy();
|
|
93
|
+
const customClassList = Array.from(styledNode.classList).filter(
|
|
94
|
+
(item) => item !== cls
|
|
95
|
+
);
|
|
96
|
+
// forwards style
|
|
97
|
+
style && expect(styledNode.style.background).toBe("red");
|
|
98
|
+
const customStyleCount = styledNode.style.length;
|
|
99
|
+
|
|
100
|
+
rerender(<Component />);
|
|
101
|
+
|
|
102
|
+
// does not replace default className
|
|
103
|
+
className &&
|
|
104
|
+
expect(Array.from(styledNode.classList)).toEqual(customClassList);
|
|
105
|
+
// does not replace default styles
|
|
106
|
+
style &&
|
|
107
|
+
expect(styledNode.style.length).toEqual(
|
|
108
|
+
styledNode.style.background
|
|
109
|
+
? customStyleCount
|
|
110
|
+
: customStyleCount - 1
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
type RectOptions = { x?: number; y?: number; w?: number; h?: number };
|
|
117
|
+
export function mockRect(
|
|
118
|
+
el: HTMLElement | ({} & any),
|
|
119
|
+
{ x = 0, y = 0, w = 0, h = 0 }: RectOptions
|
|
120
|
+
) {
|
|
121
|
+
if (!el) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
el.getBoundingClientRect = () => ({
|
|
125
|
+
x,
|
|
126
|
+
y,
|
|
127
|
+
width: w,
|
|
128
|
+
height: h,
|
|
129
|
+
left: x,
|
|
130
|
+
top: y,
|
|
131
|
+
right: x + w,
|
|
132
|
+
bottom: y + h,
|
|
133
|
+
toJSON() {
|
|
134
|
+
JSON.stringify(this);
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export const mockScrollContext = (
|
|
140
|
+
getY: () => number
|
|
141
|
+
): [React.FC, jest.Mock] => {
|
|
142
|
+
const getScroll = () => ({ x: 0, y: getY() });
|
|
143
|
+
const scrollTo = jest.fn();
|
|
144
|
+
return [
|
|
145
|
+
(props) => (
|
|
146
|
+
<ScrollContext.Provider value={{ getScroll, scrollTo }}>
|
|
147
|
+
{props.children}
|
|
148
|
+
</ScrollContext.Provider>
|
|
149
|
+
),
|
|
150
|
+
scrollTo,
|
|
151
|
+
];
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
const isNullOrUndefined = (val: any) => val === null || val === undefined;
|
|
155
|
+
|
|
156
|
+
// Согласно спеке, offsetParent в ряде случаев будет null
|
|
157
|
+
Object.defineProperty(HTMLElement.prototype, "offsetParent", {
|
|
158
|
+
get() {
|
|
159
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
160
|
+
let element: HTMLElement = this;
|
|
161
|
+
while (
|
|
162
|
+
!isNullOrUndefined(element) &&
|
|
163
|
+
(isNullOrUndefined(element.style) ||
|
|
164
|
+
isNullOrUndefined(element.style.display) ||
|
|
165
|
+
element.style.display.toLowerCase() !== "none")
|
|
166
|
+
) {
|
|
167
|
+
// @ts-ignore
|
|
168
|
+
element = element.parentNode;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (!isNullOrUndefined(element)) {
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (
|
|
176
|
+
!isNullOrUndefined(this.style) &&
|
|
177
|
+
!isNullOrUndefined(this.style.position) &&
|
|
178
|
+
this.style.position.toLowerCase() === "fixed"
|
|
179
|
+
) {
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (
|
|
184
|
+
this.tagName.toLowerCase() === "html" ||
|
|
185
|
+
this.tagName.toLowerCase() === "body"
|
|
186
|
+
) {
|
|
187
|
+
return null;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return this.parentNode;
|
|
191
|
+
},
|
|
192
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export { default as Button } from "../components/Button/Button";
|
|
2
|
+
export type { ButtonProps } from "../components/Button/Button";
|
|
3
|
+
|
|
4
|
+
export { Card } from "../components/Card/Card";
|
|
5
|
+
export type { CardProps } from "../components/Card/Card";
|
|
6
|
+
|
|
7
|
+
export { CardScroll } from "../components/CardScroll/CardScroll";
|
|
8
|
+
export type { CardScrollProps } from "../components/CardScroll/CardScroll";
|
|
9
|
+
|
|
10
|
+
export { default as HorizontalScroll } from "../components/HorizontalScroll/HorizontalScroll";
|
|
11
|
+
export type { HorizontalScrollProps } from "../components/HorizontalScroll/HorizontalScroll";
|
|
12
|
+
|
|
13
|
+
export { ButtonGroup } from "../components/ButtonGroup/ButtonGroup";
|
|
14
|
+
export type { ButtonGroupProps } from "../components/ButtonGroup/ButtonGroup";
|
|
15
|
+
|
|
16
|
+
export { SegmentedControl } from "../components/SegmentedControl/SegmentedControl";
|
|
17
|
+
export type {
|
|
18
|
+
SegmentedControlProps,
|
|
19
|
+
SegmentedControlOptionInterface,
|
|
20
|
+
SegmentedControlValue,
|
|
21
|
+
} from "../components/SegmentedControl/SegmentedControl";
|
|
22
|
+
|
|
23
|
+
export { default as Title } from "../components/Typography/Title/Title";
|
|
24
|
+
export type { TitleProps } from "../components/Typography/Title/Title";
|
|
25
|
+
|
|
26
|
+
export { default as Subhead } from "../components/Typography/Subhead/Subhead";
|
|
27
|
+
export type { SubheadProps } from "../components/Typography/Subhead/Subhead";
|
|
28
|
+
|
|
29
|
+
export { Pagination } from "../components/Pagination/Pagination";
|
|
30
|
+
export type { PaginationProps } from "../components/Pagination/Pagination";
|
|
31
|
+
|
|
32
|
+
export { Calendar } from "../components/Calendar/Calendar";
|
|
33
|
+
export type { CalendarProps } from "../components/Calendar/Calendar";
|
|
34
|
+
|
|
35
|
+
export { CalendarRange } from "../components/CalendarRange/CalendarRange";
|
|
36
|
+
export type { CalendarRangeProps } from "../components/CalendarRange/CalendarRange";
|
|
37
|
+
|
|
38
|
+
export { Caption } from "../components/Typography/Caption/Caption";
|
|
39
|
+
export type { CaptionProps } from "../components/Typography/Caption/Caption";
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PlatformType } from "./lib/platform";
|
|
3
|
+
import { Insets } from "@vkontakte/vk-bridge";
|
|
4
|
+
|
|
5
|
+
export type AnyFunction = (...args: any[]) => any;
|
|
6
|
+
|
|
7
|
+
export type AlignType = "left" | "center" | "right";
|
|
8
|
+
|
|
9
|
+
export interface HasRootRef<T> {
|
|
10
|
+
getRootRef?: React.Ref<T>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface HasRef<T> {
|
|
14
|
+
getRef?: React.Ref<T>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface HasComponent {
|
|
18
|
+
Component?: React.ElementType;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface HasAlign {
|
|
22
|
+
align?: AlignType;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface HasPlatform {
|
|
26
|
+
/**
|
|
27
|
+
* @ignore
|
|
28
|
+
*/
|
|
29
|
+
platform?: PlatformType;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface HasInsets {
|
|
33
|
+
/**
|
|
34
|
+
* @ignore
|
|
35
|
+
*/
|
|
36
|
+
insets?: Partial<Insets>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface Version {
|
|
40
|
+
major: number;
|
|
41
|
+
minor?: number;
|
|
42
|
+
patch?: number;
|
|
43
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Forms
|
|
3
|
+
*/
|
|
4
|
+
export { ChipsSelect } from "../components/ChipsSelect/ChipsSelect";
|
|
5
|
+
export type { ChipsSelectProps } from "../components/ChipsSelect/ChipsSelect";
|
|
6
|
+
|
|
7
|
+
export { Dropdown } from "../components/Dropdown/Dropdown";
|
|
8
|
+
export type { DropdownProps } from "../components/Dropdown/Dropdown";
|
|
9
|
+
|
|
10
|
+
export { TextTooltip } from "../components/TextTooltip/TextTooltip";
|
|
11
|
+
export type { TextTooltipProps } from "../components/TextTooltip/TextTooltip";
|
|
12
|
+
|
|
13
|
+
export { RichTooltip } from "../components/RichTooltip/RichTooltip";
|
|
14
|
+
export type { RichTooltipProps } from "../components/RichTooltip/RichTooltip";
|
|
15
|
+
|
|
16
|
+
export { Popper } from "../components/Popper/Popper";
|
|
17
|
+
export type { PopperProps } from "../components/Popper/Popper";
|
|
18
|
+
|
|
19
|
+
export { ViewInfinite } from "../components/View/ViewInfinite";
|
|
20
|
+
export type { ViewInfiniteProps } from "../components/View/ViewInfinite";
|
|
21
|
+
|
|
22
|
+
export { SimpleCheckbox } from "../components/SimpleCheckbox/SimpleCheckbox";
|
|
23
|
+
export type { SimpleCheckboxProps } from "../components/SimpleCheckbox/SimpleCheckbox";
|
package/src/vkui.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const { cssPropSources } = require("./postcss.config");
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
extends: ["stylelint-config-standard", "stylelint-config-prettier"],
|
|
6
|
+
plugins: [
|
|
7
|
+
"stylelint-value-no-unknown-custom-properties",
|
|
8
|
+
"./tasks/styleint-atomic",
|
|
9
|
+
],
|
|
10
|
+
rules: {
|
|
11
|
+
indentation: null,
|
|
12
|
+
"block-no-empty": null,
|
|
13
|
+
"declaration-block-no-redundant-longhand-properties": null,
|
|
14
|
+
"comment-empty-line-before": null,
|
|
15
|
+
"comment-whitespace-inside": null,
|
|
16
|
+
"no-descending-specificity": null,
|
|
17
|
+
"no-duplicate-selectors": null,
|
|
18
|
+
"value-keyword-case": null,
|
|
19
|
+
"length-zero-no-unit": [
|
|
20
|
+
true,
|
|
21
|
+
{
|
|
22
|
+
ignore: ["custom-properties"],
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
"keyframes-name-pattern": "vkui-.+",
|
|
26
|
+
"csstools/value-no-unknown-custom-properties": [
|
|
27
|
+
true,
|
|
28
|
+
{
|
|
29
|
+
importFrom: [
|
|
30
|
+
...cssPropSources,
|
|
31
|
+
path.join(
|
|
32
|
+
__dirname,
|
|
33
|
+
"node_modules/@vkontakte/vkui-tokens/themes/vkBase/cssVars/declarations/index.css"
|
|
34
|
+
),
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
// Skip reporting in pprecommit run, highlight in editor
|
|
39
|
+
"vkui/atomic": [
|
|
40
|
+
process.env.LINT_PRECOMMIT_RUN ? null : true,
|
|
41
|
+
{
|
|
42
|
+
severity: "warning",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const path = require("path");
|
|
3
|
+
const schemeVKUI = require("@vkontakte/appearance/main.valette/scheme");
|
|
4
|
+
const paletteVKUI = require("@vkontakte/appearance/main.valette/palette");
|
|
5
|
+
const schemeWeb = require("@vkontakte/appearance/main.valette/scheme_web");
|
|
6
|
+
const paletteWeb = require("@vkontakte/appearance/main.valette/palette_web");
|
|
7
|
+
const pkg = require("../package.json");
|
|
8
|
+
const generateScheme = require("@vkontakte/vkjs/build/tasks/generate_scheme");
|
|
9
|
+
|
|
10
|
+
const stylesDir = path.resolve(__dirname, "../src/styles");
|
|
11
|
+
|
|
12
|
+
generateScheme(schemeVKUI, paletteVKUI, pkg.defaultSchemeId, stylesDir);
|
|
13
|
+
generateScheme(schemeWeb, paletteWeb, pkg.defaultSchemeId, stylesDir);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const { readFileSync } = require("fs");
|
|
2
|
+
const postcss = require("postcss");
|
|
3
|
+
const findAnimationName = require("stylelint/lib/utils/findAnimationName");
|
|
4
|
+
|
|
5
|
+
function getAnimations(root) {
|
|
6
|
+
const animations = {};
|
|
7
|
+
root.walkAtRules("keyframes", (atrule) => {
|
|
8
|
+
if (animations[atrule.params]) {
|
|
9
|
+
throw atrule.error(`duplicate @keyframes ${atrule.params}`);
|
|
10
|
+
}
|
|
11
|
+
animations[atrule.params] = true;
|
|
12
|
+
});
|
|
13
|
+
return animations;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = ({ importFrom } = {}) => {
|
|
17
|
+
const sharedAnimations = importFrom
|
|
18
|
+
? getAnimations(
|
|
19
|
+
postcss.parse(readFileSync(importFrom), { from: importFrom })
|
|
20
|
+
)
|
|
21
|
+
: {};
|
|
22
|
+
return {
|
|
23
|
+
postcssPlugin: "postcss-scope-keyframes",
|
|
24
|
+
Once: (root) => {
|
|
25
|
+
const animations = { ...sharedAnimations, ...getAnimations(root) };
|
|
26
|
+
root.walkDecls(/^animation(-name)?/, (decl) => {
|
|
27
|
+
findAnimationName(decl.value).forEach(({ value }) => {
|
|
28
|
+
if (value !== "none" && !animations[value]) {
|
|
29
|
+
throw decl.error(`@keyframes ${value} not found`, { word: value });
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
module.exports.postcss = true;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
module.exports = ({ customPropRoot, except = [] }) => ({
|
|
2
|
+
postcssPlugin: "postcss-scope-root",
|
|
3
|
+
Rule: (rule) => {
|
|
4
|
+
if (rule.selector === ":root" && !except.includes(rule.source.input.file)) {
|
|
5
|
+
rule.selector = customPropRoot;
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
});
|
|
9
|
+
module.exports.postcss = true;
|