@vkontakte/vkui 4.27.2 → 4.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Button/Button.d.ts +1 -1
- package/dist/cjs/components/ButtonGroup/ButtonGroup.d.ts +20 -0
- package/dist/cjs/components/ButtonGroup/ButtonGroup.js +38 -0
- package/dist/cjs/components/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/cjs/components/Calendar/Calendar.d.ts +21 -0
- package/dist/cjs/components/Calendar/Calendar.js +160 -0
- package/dist/cjs/components/Calendar/Calendar.js.map +1 -0
- package/dist/cjs/components/CalendarDay/CalendarDay.d.ts +22 -0
- package/dist/cjs/components/CalendarDay/CalendarDay.js +109 -0
- package/dist/cjs/components/CalendarDay/CalendarDay.js.map +1 -0
- package/dist/cjs/components/CalendarDays/CalendarDays.d.ts +22 -0
- package/dist/cjs/components/CalendarDays/CalendarDays.js +118 -0
- package/dist/cjs/components/CalendarDays/CalendarDays.js.map +1 -0
- package/dist/cjs/components/CalendarHeader/CalendarHeader.d.ts +16 -0
- package/dist/cjs/components/CalendarHeader/CalendarHeader.js +143 -0
- package/dist/cjs/components/CalendarHeader/CalendarHeader.js.map +1 -0
- package/dist/cjs/components/CalendarRange/CalendarRange.d.ts +16 -0
- package/dist/cjs/components/CalendarRange/CalendarRange.js +219 -0
- package/dist/cjs/components/CalendarRange/CalendarRange.js.map +1 -0
- package/dist/cjs/components/CalendarTime/CalendarTime.d.ts +11 -0
- package/dist/cjs/components/CalendarTime/CalendarTime.js +92 -0
- package/dist/cjs/components/CalendarTime/CalendarTime.js.map +1 -0
- package/dist/cjs/components/ChipsSelect/ChipsSelect.d.ts +1 -2
- package/dist/cjs/components/ChipsSelect/ChipsSelect.js +5 -7
- package/dist/cjs/components/ChipsSelect/ChipsSelect.js.map +1 -1
- package/dist/cjs/components/ConfigProvider/ConfigProvider.d.ts +4 -0
- package/dist/cjs/components/ConfigProvider/ConfigProvider.js +8 -2
- package/dist/cjs/components/ConfigProvider/ConfigProvider.js.map +1 -1
- package/dist/cjs/components/CustomScrollView/CustomScrollView.d.ts +1 -1
- package/dist/cjs/components/CustomScrollView/CustomScrollView.js.map +1 -1
- package/dist/cjs/components/CustomSelect/CustomSelect.d.ts +10 -1
- package/dist/cjs/components/CustomSelect/CustomSelect.js +30 -8
- package/dist/cjs/components/CustomSelect/CustomSelect.js.map +1 -1
- package/dist/cjs/components/CustomSelectDropdown/CustomSelectDropdown.d.ts +4 -1
- package/dist/cjs/components/CustomSelectDropdown/CustomSelectDropdown.js +14 -5
- package/dist/cjs/components/CustomSelectDropdown/CustomSelectDropdown.js.map +1 -1
- package/dist/cjs/components/CustomSelectOption/CustomSelectOption.js +1 -1
- package/dist/cjs/components/CustomSelectOption/CustomSelectOption.js.map +1 -1
- package/dist/cjs/components/DateInput/DateInput.d.ts +12 -0
- package/dist/cjs/components/DateInput/DateInput.js +290 -0
- package/dist/cjs/components/DateInput/DateInput.js.map +1 -0
- package/dist/cjs/components/DateRangeInput/DateRangeInput.d.ts +18 -0
- package/dist/cjs/components/DateRangeInput/DateRangeInput.js +310 -0
- package/dist/cjs/components/DateRangeInput/DateRangeInput.js.map +1 -0
- package/dist/cjs/components/Div/Div.d.ts +1 -2
- package/dist/cjs/components/Div/Div.js +2 -5
- package/dist/cjs/components/Div/Div.js.map +1 -1
- package/dist/cjs/components/IconButton/IconButton.d.ts +1 -1
- package/dist/cjs/components/InputLike/InputLike.d.ts +10 -0
- package/dist/cjs/components/InputLike/InputLike.js +71 -0
- package/dist/cjs/components/InputLike/InputLike.js.map +1 -0
- package/dist/cjs/components/InputLike/InputLikeDivider.d.ts +3 -0
- package/dist/cjs/components/InputLike/InputLikeDivider.js +27 -0
- package/dist/cjs/components/InputLike/InputLikeDivider.js.map +1 -0
- package/dist/cjs/components/LocaleProviderContext/LocaleProviderContext.d.ts +2 -0
- package/dist/cjs/components/LocaleProviderContext/LocaleProviderContext.js +14 -0
- package/dist/cjs/components/LocaleProviderContext/LocaleProviderContext.js.map +1 -0
- package/dist/cjs/components/Pagination/Pagination.d.ts +42 -0
- package/dist/cjs/components/Pagination/Pagination.js +152 -0
- package/dist/cjs/components/Pagination/Pagination.js.map +1 -0
- package/dist/cjs/components/PanelHeaderBack/PanelHeaderBack.d.ts +1 -1
- package/dist/cjs/components/RichCell/RichCell.d.ts +3 -2
- package/dist/cjs/components/RichCell/RichCell.js.map +1 -1
- package/dist/cjs/components/Select/Select.d.ts +1 -1
- package/dist/cjs/components/SelectMimicry/SelectMimicry.d.ts +5 -1
- package/dist/cjs/components/SelectMimicry/SelectMimicry.js +11 -5
- package/dist/cjs/components/SelectMimicry/SelectMimicry.js.map +1 -1
- package/dist/cjs/components/SimpleCell/SimpleCell.d.ts +1 -1
- package/dist/cjs/components/SimpleCheckbox/SimpleCheckbox.d.ts +0 -1
- package/dist/cjs/components/SimpleCheckbox/SimpleCheckbox.js +2 -5
- package/dist/cjs/components/SimpleCheckbox/SimpleCheckbox.js.map +1 -1
- package/dist/cjs/components/Spacing/Spacing.js +2 -2
- package/dist/cjs/components/Spacing/Spacing.js.map +1 -1
- package/dist/cjs/components/Tappable/Tappable.d.ts +3 -1
- package/dist/cjs/components/Tappable/Tappable.js +11 -11
- package/dist/cjs/components/Tappable/Tappable.js.map +1 -1
- package/dist/cjs/components/View/ViewInfinite.d.ts +2 -2
- package/dist/cjs/components/View/ViewInfinite.js +12 -15
- package/dist/cjs/components/View/ViewInfinite.js.map +1 -1
- package/dist/cjs/hooks/useBooleanState.d.ts +6 -0
- package/dist/cjs/hooks/useBooleanState.js +42 -0
- package/dist/cjs/hooks/useBooleanState.js.map +1 -0
- package/dist/cjs/hooks/useCalendar.d.ts +18 -0
- package/dist/cjs/hooks/useCalendar.js +78 -0
- package/dist/cjs/hooks/useCalendar.js.map +1 -0
- package/dist/cjs/hooks/useDateInput.d.ts +30 -0
- package/dist/cjs/hooks/useDateInput.js +180 -0
- package/dist/cjs/hooks/useDateInput.js.map +1 -0
- package/dist/cjs/hooks/useKeyboardInputTracker.d.ts +2 -0
- package/dist/cjs/hooks/useKeyboardInputTracker.js +15 -4
- package/dist/cjs/hooks/useKeyboardInputTracker.js.map +1 -1
- package/dist/cjs/hooks/usePagination.d.ts +34 -0
- package/dist/cjs/hooks/usePagination.js +81 -0
- package/dist/cjs/hooks/usePagination.js.map +1 -0
- package/dist/cjs/index.d.ts +11 -1
- package/dist/cjs/index.js +66 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/calendar.d.ts +14 -0
- package/dist/cjs/lib/calendar.js +142 -0
- package/dist/cjs/lib/calendar.js.map +1 -0
- package/dist/cjs/lib/utils.d.ts +2 -1
- package/dist/cjs/lib/utils.js +7 -0
- package/dist/cjs/lib/utils.js.map +1 -1
- package/dist/cjs/tokenized/index.d.ts +8 -0
- package/dist/cjs/tokenized/index.js +32 -0
- package/dist/cjs/tokenized/index.js.map +1 -1
- package/dist/cjs/unstable/index.d.ts +6 -6
- package/dist/cjs/unstable/index.js +6 -8
- package/dist/cjs/unstable/index.js.map +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +20 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +23 -0
- package/dist/components/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/components/Calendar/Calendar.d.ts +21 -0
- package/dist/components/Calendar/Calendar.js +133 -0
- package/dist/components/Calendar/Calendar.js.map +1 -0
- package/dist/components/CalendarDay/CalendarDay.d.ts +22 -0
- package/dist/components/CalendarDay/CalendarDay.js +91 -0
- package/dist/components/CalendarDay/CalendarDay.js.map +1 -0
- package/dist/components/CalendarDays/CalendarDays.d.ts +22 -0
- package/dist/components/CalendarDays/CalendarDays.js +94 -0
- package/dist/components/CalendarDays/CalendarDays.js.map +1 -0
- package/dist/components/CalendarHeader/CalendarHeader.d.ts +16 -0
- package/dist/components/CalendarHeader/CalendarHeader.js +118 -0
- package/dist/components/CalendarHeader/CalendarHeader.js.map +1 -0
- package/dist/components/CalendarRange/CalendarRange.d.ts +16 -0
- package/dist/components/CalendarRange/CalendarRange.js +196 -0
- package/dist/components/CalendarRange/CalendarRange.js.map +1 -0
- package/dist/components/CalendarTime/CalendarTime.d.ts +11 -0
- package/dist/components/CalendarTime/CalendarTime.js +73 -0
- package/dist/components/CalendarTime/CalendarTime.js.map +1 -0
- package/dist/components/ChipsSelect/ChipsSelect.d.ts +1 -2
- package/dist/components/ChipsSelect/ChipsSelect.js +3 -4
- package/dist/components/ChipsSelect/ChipsSelect.js.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +4 -0
- package/dist/components/ConfigProvider/ConfigProvider.js +7 -2
- package/dist/components/ConfigProvider/ConfigProvider.js.map +1 -1
- package/dist/components/CustomScrollView/CustomScrollView.d.ts +1 -1
- package/dist/components/CustomScrollView/CustomScrollView.js.map +1 -1
- package/dist/components/CustomSelect/CustomSelect.d.ts +10 -1
- package/dist/components/CustomSelect/CustomSelect.js +28 -7
- package/dist/components/CustomSelect/CustomSelect.js.map +1 -1
- package/dist/components/CustomSelectDropdown/CustomSelectDropdown.d.ts +4 -1
- package/dist/components/CustomSelectDropdown/CustomSelectDropdown.js +14 -5
- package/dist/components/CustomSelectDropdown/CustomSelectDropdown.js.map +1 -1
- package/dist/components/CustomSelectOption/CustomSelectOption.js +1 -1
- package/dist/components/CustomSelectOption/CustomSelectOption.js.map +1 -1
- package/dist/components/DateInput/DateInput.d.ts +12 -0
- package/dist/components/DateInput/DateInput.js +261 -0
- package/dist/components/DateInput/DateInput.js.map +1 -0
- package/dist/components/DateRangeInput/DateRangeInput.d.ts +18 -0
- package/dist/components/DateRangeInput/DateRangeInput.js +281 -0
- package/dist/components/DateRangeInput/DateRangeInput.js.map +1 -0
- package/dist/components/Div/Div.d.ts +1 -2
- package/dist/components/Div/Div.js +1 -3
- package/dist/components/Div/Div.js.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/InputLike/InputLike.d.ts +10 -0
- package/dist/components/InputLike/InputLike.js +52 -0
- package/dist/components/InputLike/InputLike.js.map +1 -0
- package/dist/components/InputLike/InputLikeDivider.d.ts +3 -0
- package/dist/components/InputLike/InputLikeDivider.js +13 -0
- package/dist/components/InputLike/InputLikeDivider.js.map +1 -0
- package/dist/components/LocaleProviderContext/LocaleProviderContext.d.ts +2 -0
- package/dist/components/LocaleProviderContext/LocaleProviderContext.js +3 -0
- package/dist/components/LocaleProviderContext/LocaleProviderContext.js.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +42 -0
- package/dist/components/Pagination/Pagination.js +129 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/PanelHeaderBack/PanelHeaderBack.d.ts +1 -1
- package/dist/components/RichCell/RichCell.d.ts +3 -2
- package/dist/components/RichCell/RichCell.js.map +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/SelectMimicry/SelectMimicry.d.ts +5 -1
- package/dist/components/SelectMimicry/SelectMimicry.js +10 -5
- package/dist/components/SelectMimicry/SelectMimicry.js.map +1 -1
- package/dist/components/SimpleCell/SimpleCell.d.ts +1 -1
- package/dist/components/SimpleCheckbox/SimpleCheckbox.d.ts +0 -1
- package/dist/components/SimpleCheckbox/SimpleCheckbox.js +1 -3
- package/dist/components/SimpleCheckbox/SimpleCheckbox.js.map +1 -1
- package/dist/components/Spacing/Spacing.js +2 -2
- package/dist/components/Spacing/Spacing.js.map +1 -1
- package/dist/components/Tappable/Tappable.d.ts +3 -1
- package/dist/components/Tappable/Tappable.js +10 -11
- package/dist/components/Tappable/Tappable.js.map +1 -1
- package/dist/components/View/ViewInfinite.d.ts +2 -2
- package/dist/components/View/ViewInfinite.js +10 -11
- package/dist/components/View/ViewInfinite.js.map +1 -1
- package/dist/components.css +4 -4
- package/dist/components.css.map +1 -1
- package/dist/components.js.tmp +24 -0
- package/dist/cssm/components/Button/Button.css +1 -1
- package/dist/cssm/components/Button/Button.d.ts +1 -1
- package/dist/cssm/components/ButtonGroup/ButtonGroup.css +1 -0
- package/dist/cssm/components/ButtonGroup/ButtonGroup.d.ts +20 -0
- package/dist/cssm/components/ButtonGroup/ButtonGroup.js +24 -0
- package/dist/cssm/components/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/cssm/components/Calendar/Calendar.css +1 -0
- package/dist/cssm/components/Calendar/Calendar.d.ts +21 -0
- package/dist/cssm/components/Calendar/Calendar.js +134 -0
- package/dist/cssm/components/Calendar/Calendar.js.map +1 -0
- package/dist/cssm/components/CalendarDay/CalendarDay.css +1 -0
- package/dist/cssm/components/CalendarDay/CalendarDay.d.ts +22 -0
- package/dist/cssm/components/CalendarDay/CalendarDay.js +92 -0
- package/dist/cssm/components/CalendarDay/CalendarDay.js.map +1 -0
- package/dist/cssm/components/CalendarDays/CalendarDays.css +1 -0
- package/dist/cssm/components/CalendarDays/CalendarDays.d.ts +22 -0
- package/dist/cssm/components/CalendarDays/CalendarDays.js +95 -0
- package/dist/cssm/components/CalendarDays/CalendarDays.js.map +1 -0
- package/dist/cssm/components/CalendarHeader/CalendarHeader.css +1 -0
- package/dist/cssm/components/CalendarHeader/CalendarHeader.d.ts +16 -0
- package/dist/cssm/components/CalendarHeader/CalendarHeader.js +119 -0
- package/dist/cssm/components/CalendarHeader/CalendarHeader.js.map +1 -0
- package/dist/cssm/components/CalendarRange/CalendarRange.css +1 -0
- package/dist/cssm/components/CalendarRange/CalendarRange.d.ts +16 -0
- package/dist/cssm/components/CalendarRange/CalendarRange.js +197 -0
- package/dist/cssm/components/CalendarRange/CalendarRange.js.map +1 -0
- package/dist/cssm/components/CalendarTime/CalendarTime.css +1 -0
- package/dist/cssm/components/CalendarTime/CalendarTime.d.ts +11 -0
- package/dist/cssm/components/CalendarTime/CalendarTime.js +74 -0
- package/dist/cssm/components/CalendarTime/CalendarTime.js.map +1 -0
- package/dist/cssm/components/ChipsSelect/ChipsSelect.d.ts +1 -2
- package/dist/cssm/components/ChipsSelect/ChipsSelect.js +3 -4
- package/dist/cssm/components/ChipsSelect/ChipsSelect.js.map +1 -1
- package/dist/cssm/components/ConfigProvider/ConfigProvider.d.ts +4 -0
- package/dist/cssm/components/ConfigProvider/ConfigProvider.js +7 -2
- package/dist/cssm/components/ConfigProvider/ConfigProvider.js.map +1 -1
- package/dist/cssm/components/CustomScrollView/CustomScrollView.d.ts +1 -1
- package/dist/cssm/components/CustomScrollView/CustomScrollView.js.map +1 -1
- package/dist/cssm/components/CustomSelect/CustomSelect.css +1 -1
- package/dist/cssm/components/CustomSelect/CustomSelect.d.ts +10 -1
- package/dist/cssm/components/CustomSelect/CustomSelect.js +28 -7
- package/dist/cssm/components/CustomSelect/CustomSelect.js.map +1 -1
- package/dist/cssm/components/CustomSelectDropdown/CustomSelectDropdown.css +1 -1
- package/dist/cssm/components/CustomSelectDropdown/CustomSelectDropdown.d.ts +4 -1
- package/dist/cssm/components/CustomSelectDropdown/CustomSelectDropdown.js +14 -5
- package/dist/cssm/components/CustomSelectDropdown/CustomSelectDropdown.js.map +1 -1
- package/dist/cssm/components/CustomSelectOption/CustomSelectOption.js +1 -1
- package/dist/cssm/components/CustomSelectOption/CustomSelectOption.js.map +1 -1
- package/dist/cssm/components/DateInput/DateInput.css +1 -0
- package/dist/cssm/components/DateInput/DateInput.d.ts +12 -0
- package/dist/cssm/components/DateInput/DateInput.js +262 -0
- package/dist/cssm/components/DateInput/DateInput.js.map +1 -0
- package/dist/cssm/components/DateRangeInput/DateRangeInput.css +1 -0
- package/dist/cssm/components/DateRangeInput/DateRangeInput.d.ts +18 -0
- package/dist/cssm/components/DateRangeInput/DateRangeInput.js +282 -0
- package/dist/cssm/components/DateRangeInput/DateRangeInput.js.map +1 -0
- package/dist/cssm/components/Div/Div.css +1 -1
- package/dist/cssm/components/Div/Div.d.ts +1 -2
- package/dist/cssm/components/Div/Div.js +1 -3
- package/dist/cssm/components/Div/Div.js.map +1 -1
- package/dist/cssm/components/FormField/FormField.css +1 -1
- package/dist/cssm/components/IconButton/IconButton.d.ts +1 -1
- package/dist/cssm/components/InputLike/InputLike.css +1 -0
- package/dist/cssm/components/InputLike/InputLike.d.ts +10 -0
- package/dist/cssm/components/InputLike/InputLike.js +53 -0
- package/dist/cssm/components/InputLike/InputLike.js.map +1 -0
- package/dist/cssm/components/InputLike/InputLikeDivider.css +1 -0
- package/dist/cssm/components/InputLike/InputLikeDivider.d.ts +3 -0
- package/dist/cssm/components/InputLike/InputLikeDivider.js +14 -0
- package/dist/cssm/components/InputLike/InputLikeDivider.js.map +1 -0
- package/dist/cssm/components/LocaleProviderContext/LocaleProviderContext.d.ts +2 -0
- package/dist/cssm/components/LocaleProviderContext/LocaleProviderContext.js +3 -0
- package/dist/cssm/components/LocaleProviderContext/LocaleProviderContext.js.map +1 -0
- package/dist/cssm/components/Pagination/Pagination.css +1 -0
- package/dist/cssm/components/Pagination/Pagination.d.ts +42 -0
- package/dist/cssm/components/Pagination/Pagination.js +130 -0
- package/dist/cssm/components/Pagination/Pagination.js.map +1 -0
- package/dist/cssm/components/PanelHeaderBack/PanelHeaderBack.d.ts +1 -1
- package/dist/cssm/components/RichCell/RichCell.d.ts +3 -2
- package/dist/cssm/components/RichCell/RichCell.js.map +1 -1
- package/dist/cssm/components/Select/Select.css +1 -1
- package/dist/cssm/components/Select/Select.d.ts +1 -1
- package/dist/cssm/components/SelectMimicry/SelectMimicry.css +1 -0
- package/dist/cssm/components/SelectMimicry/SelectMimicry.d.ts +5 -1
- package/dist/cssm/components/SelectMimicry/SelectMimicry.js +11 -5
- package/dist/cssm/components/SelectMimicry/SelectMimicry.js.map +1 -1
- package/dist/cssm/components/SimpleCell/SimpleCell.d.ts +1 -1
- package/dist/cssm/components/SimpleCheckbox/SimpleCheckbox.d.ts +0 -1
- package/dist/cssm/components/SimpleCheckbox/SimpleCheckbox.js +1 -3
- package/dist/cssm/components/SimpleCheckbox/SimpleCheckbox.js.map +1 -1
- package/dist/cssm/components/Spacing/Spacing.js +2 -2
- package/dist/cssm/components/Spacing/Spacing.js.map +1 -1
- package/dist/cssm/components/Tappable/Tappable.d.ts +3 -1
- package/dist/cssm/components/Tappable/Tappable.js +10 -11
- package/dist/cssm/components/Tappable/Tappable.js.map +1 -1
- package/dist/cssm/components/View/ViewInfinite.d.ts +2 -2
- package/dist/cssm/components/View/ViewInfinite.js +10 -11
- package/dist/cssm/components/View/ViewInfinite.js.map +1 -1
- package/dist/cssm/hooks/useBooleanState.d.ts +6 -0
- package/dist/cssm/hooks/useBooleanState.js +27 -0
- package/dist/cssm/hooks/useBooleanState.js.map +1 -0
- package/dist/cssm/hooks/useCalendar.d.ts +18 -0
- package/dist/cssm/hooks/useCalendar.js +64 -0
- package/dist/cssm/hooks/useCalendar.js.map +1 -0
- package/dist/cssm/hooks/useDateInput.d.ts +30 -0
- package/dist/cssm/hooks/useDateInput.js +163 -0
- package/dist/cssm/hooks/useDateInput.js.map +1 -0
- package/dist/cssm/hooks/useKeyboardInputTracker.d.ts +2 -0
- package/dist/cssm/hooks/useKeyboardInputTracker.js +11 -4
- package/dist/cssm/hooks/useKeyboardInputTracker.js.map +1 -1
- package/dist/cssm/hooks/usePagination.d.ts +34 -0
- package/dist/cssm/hooks/usePagination.js +67 -0
- package/dist/cssm/hooks/usePagination.js.map +1 -0
- package/dist/cssm/index.d.ts +11 -1
- package/dist/cssm/index.js +10 -2
- package/dist/cssm/index.js.map +1 -1
- package/dist/cssm/lib/calendar.d.ts +14 -0
- package/dist/cssm/lib/calendar.js +111 -0
- package/dist/cssm/lib/calendar.js.map +1 -0
- package/dist/cssm/lib/utils.d.ts +2 -1
- package/dist/cssm/lib/utils.js +3 -0
- package/dist/cssm/lib/utils.js.map +1 -1
- package/dist/cssm/styles/components.css +4 -4
- package/dist/cssm/styles/themes.css +1 -1
- package/dist/cssm/tokenized/index.d.ts +8 -0
- package/dist/cssm/tokenized/index.js +4 -0
- package/dist/cssm/tokenized/index.js.map +1 -1
- package/dist/cssm/unstable/index.d.ts +6 -6
- package/dist/cssm/unstable/index.js +3 -3
- package/dist/cssm/unstable/index.js.map +1 -1
- package/dist/default_scheme.js.tmp +24 -0
- package/dist/fonts.js.tmp +24 -0
- package/dist/hooks/useBooleanState.d.ts +6 -0
- package/dist/hooks/useBooleanState.js +27 -0
- package/dist/hooks/useBooleanState.js.map +1 -0
- package/dist/hooks/useCalendar.d.ts +18 -0
- package/dist/hooks/useCalendar.js +64 -0
- package/dist/hooks/useCalendar.js.map +1 -0
- package/dist/hooks/useDateInput.d.ts +30 -0
- package/dist/hooks/useDateInput.js +163 -0
- package/dist/hooks/useDateInput.js.map +1 -0
- package/dist/hooks/useKeyboardInputTracker.d.ts +2 -0
- package/dist/hooks/useKeyboardInputTracker.js +11 -4
- package/dist/hooks/useKeyboardInputTracker.js.map +1 -1
- package/dist/hooks/usePagination.d.ts +34 -0
- package/dist/hooks/usePagination.js +67 -0
- package/dist/hooks/usePagination.js.map +1 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/calendar.d.ts +14 -0
- package/dist/lib/calendar.js +111 -0
- package/dist/lib/calendar.js.map +1 -0
- package/dist/lib/utils.d.ts +2 -1
- package/dist/lib/utils.js +3 -0
- package/dist/lib/utils.js.map +1 -1
- package/dist/stable.js.tmp +166 -0
- package/dist/tokenized/index.d.ts +8 -0
- package/dist/tokenized/index.js +4 -0
- package/dist/tokenized/index.js.map +1 -1
- package/dist/unstable/index.d.ts +6 -6
- package/dist/unstable/index.js +3 -3
- package/dist/unstable/index.js.map +1 -1
- package/dist/unstable.js.tmp +24 -0
- package/dist/vkui.css +5 -5
- package/dist/vkui.css.map +1 -1
- package/package.json +14 -8
- package/.browserslistrc +0 -2
- package/.cache/.eslintcache +0 -1
- package/.cache/.stylelintcache +0 -1
- package/.cache/.tsbuildinfo +0 -51207
- package/.cache/ts/src/appearance/constants.d.ts +0 -1
- package/.cache/ts/src/components/ActionSheet/ActionSheet.d.ts +0 -26
- package/.cache/ts/src/components/ActionSheet/ActionSheetContext.d.ts +0 -8
- package/.cache/ts/src/components/ActionSheet/ActionSheetDropdown.d.ts +0 -4
- package/.cache/ts/src/components/ActionSheet/ActionSheetDropdownDesktop.d.ts +0 -4
- package/.cache/ts/src/components/ActionSheet/types.d.ts +0 -9
- package/.cache/ts/src/components/ActionSheetItem/ActionSheetItem.d.ts +0 -20
- package/.cache/ts/src/components/AdaptivityProvider/AdaptivityContext.d.ts +0 -46
- package/.cache/ts/src/components/AdaptivityProvider/AdaptivityProvider.d.ts +0 -10
- package/.cache/ts/src/components/Alert/Alert.d.ts +0 -24
- package/.cache/ts/src/components/AppRoot/AppRoot.d.ts +0 -14
- package/.cache/ts/src/components/AppRoot/AppRootContext.d.ts +0 -9
- package/.cache/ts/src/components/AppRoot/AppRootPortal.d.ts +0 -5
- package/.cache/ts/src/components/AppRoot/ScrollContext.d.ts +0 -23
- package/.cache/ts/src/components/AppearanceProvider/AppearanceProvider.d.ts +0 -7
- package/.cache/ts/src/components/AppearanceProvider/AppearanceProviderContext.d.ts +0 -3
- package/.cache/ts/src/components/Avatar/Avatar.d.ts +0 -22
- package/.cache/ts/src/components/Badge/Badge.d.ts +0 -6
- package/.cache/ts/src/components/Banner/Banner.d.ts +0 -65
- package/.cache/ts/src/components/Button/Button.d.ts +0 -20
- package/.cache/ts/src/components/Card/Card.d.ts +0 -7
- package/.cache/ts/src/components/CardGrid/CardGrid.d.ts +0 -8
- package/.cache/ts/src/components/CardScroll/CardScroll.d.ts +0 -12
- package/.cache/ts/src/components/Cell/Cell.d.ts +0 -47
- package/.cache/ts/src/components/Cell/CellCheckbox/CellCheckbox.d.ts +0 -5
- package/.cache/ts/src/components/Cell/CellDragger/CellDragger.d.ts +0 -6
- package/.cache/ts/src/components/Cell/useDraggable.d.ts +0 -13
- package/.cache/ts/src/components/CellButton/CellButton.d.ts +0 -9
- package/.cache/ts/src/components/Checkbox/Checkbox.d.ts +0 -10
- package/.cache/ts/src/components/Chip/Chip.d.ts +0 -16
- package/.cache/ts/src/components/ChipsInput/ChipsInput.d.ts +0 -30
- package/.cache/ts/src/components/ChipsInput/useChipsInput.d.ts +0 -14
- package/.cache/ts/src/components/ChipsSelect/ChipsSelect.d.ts +0 -41
- package/.cache/ts/src/components/ChipsSelect/useChipsSelect.d.ts +0 -22
- package/.cache/ts/src/components/ClickPopper/ClickPopper.d.ts +0 -21
- package/.cache/ts/src/components/ConfigProvider/ConfigProvider.d.ts +0 -12
- package/.cache/ts/src/components/ConfigProvider/ConfigProviderContext.d.ts +0 -36
- package/.cache/ts/src/components/ContentCard/ContentCard.d.ts +0 -34
- package/.cache/ts/src/components/Counter/Counter.d.ts +0 -11
- package/.cache/ts/src/components/CustomScrollView/CustomScrollView.d.ts +0 -10
- package/.cache/ts/src/components/CustomSelect/CustomSelect.d.ts +0 -56
- package/.cache/ts/src/components/CustomSelectDropdown/CustomSelectDropdown.d.ts +0 -12
- package/.cache/ts/src/components/CustomSelectOption/CustomSelectOption.d.ts +0 -15
- package/.cache/ts/src/components/DatePicker/DatePicker.d.ts +0 -24
- package/.cache/ts/src/components/Div/Div.d.ts +0 -7
- package/.cache/ts/src/components/Dropdown/Dropdown.d.ts +0 -8
- package/.cache/ts/src/components/DropdownIcon/DropdownIcon.d.ts +0 -3
- package/.cache/ts/src/components/Epic/Epic.d.ts +0 -10
- package/.cache/ts/src/components/Epic/ScrollSaver.d.ts +0 -6
- package/.cache/ts/src/components/File/File.d.ts +0 -9
- package/.cache/ts/src/components/FixedLayout/FixedLayout.d.ts +0 -19
- package/.cache/ts/src/components/FocusTrap/FocusTrap.d.ts +0 -8
- package/.cache/ts/src/components/FocusVisible/FocusVisible.d.ts +0 -8
- package/.cache/ts/src/components/Footer/Footer.d.ts +0 -5
- package/.cache/ts/src/components/FormField/FormField.d.ts +0 -14
- package/.cache/ts/src/components/FormItem/FormItem.d.ts +0 -14
- package/.cache/ts/src/components/FormLayout/FormLayout.d.ts +0 -6
- package/.cache/ts/src/components/FormLayoutGroup/FormLayoutGroup.d.ts +0 -13
- package/.cache/ts/src/components/FormStatus/FormStatus.d.ts +0 -7
- package/.cache/ts/src/components/Gallery/Gallery.d.ts +0 -39
- package/.cache/ts/src/components/Gradient/Gradient.d.ts +0 -7
- package/.cache/ts/src/components/GridAvatar/GridAvatar.d.ts +0 -8
- package/.cache/ts/src/components/Group/Group.d.ts +0 -23
- package/.cache/ts/src/components/Header/Header.d.ts +0 -18
- package/.cache/ts/src/components/HorizontalCell/HorizontalCell.d.ts +0 -10
- package/.cache/ts/src/components/HorizontalScroll/HorizontalScroll.d.ts +0 -19
- package/.cache/ts/src/components/HorizontalScroll/HorizontalScrollArrow.d.ts +0 -8
- package/.cache/ts/src/components/HoverPopper/HoverPopper.d.ts +0 -29
- package/.cache/ts/src/components/IconButton/IconButton.d.ts +0 -11
- package/.cache/ts/src/components/InfoRow/InfoRow.d.ts +0 -7
- package/.cache/ts/src/components/InitialsAvatar/InitialsAvatar.d.ts +0 -32
- package/.cache/ts/src/components/Input/Input.d.ts +0 -9
- package/.cache/ts/src/components/Link/Link.d.ts +0 -6
- package/.cache/ts/src/components/List/List.d.ts +0 -4
- package/.cache/ts/src/components/List/ListContext.d.ts +0 -4
- package/.cache/ts/src/components/MiniInfoCell/MiniInfoCell.d.ts +0 -39
- package/.cache/ts/src/components/ModalCard/ModalCard.d.ts +0 -10
- package/.cache/ts/src/components/ModalCardBase/ModalCardBase.d.ts +0 -32
- package/.cache/ts/src/components/ModalDismissButton/ModalDismissButton.d.ts +0 -5
- package/.cache/ts/src/components/ModalPage/ModalPage.d.ts +0 -22
- package/.cache/ts/src/components/ModalPageHeader/ModalPageHeader.d.ts +0 -8
- package/.cache/ts/src/components/ModalRoot/ModalRoot.d.ts +0 -16
- package/.cache/ts/src/components/ModalRoot/ModalRootAdaptive.d.ts +0 -10
- package/.cache/ts/src/components/ModalRoot/ModalRootContext.d.ts +0 -20
- package/.cache/ts/src/components/ModalRoot/ModalRootDesktop.d.ts +0 -16
- package/.cache/ts/src/components/ModalRoot/constants.d.ts +0 -3
- package/.cache/ts/src/components/ModalRoot/types.d.ts +0 -45
- package/.cache/ts/src/components/ModalRoot/useModalManager.d.ts +0 -37
- package/.cache/ts/src/components/ModalRoot/withModalRootContext.d.ts +0 -5
- package/.cache/ts/src/components/NativeSelect/NativeSelect.d.ts +0 -15
- package/.cache/ts/src/components/NavTransitionContext/NavTransitionContext.d.ts +0 -7
- package/.cache/ts/src/components/Panel/Panel.d.ts +0 -9
- package/.cache/ts/src/components/PanelHeader/PanelHeader.d.ts +0 -21
- package/.cache/ts/src/components/PanelHeaderBack/PanelHeaderBack.d.ts +0 -9
- package/.cache/ts/src/components/PanelHeaderButton/PanelHeaderButton.d.ts +0 -8
- package/.cache/ts/src/components/PanelHeaderClose/PanelHeaderClose.d.ts +0 -4
- package/.cache/ts/src/components/PanelHeaderContent/PanelHeaderContent.d.ts +0 -9
- package/.cache/ts/src/components/PanelHeaderContext/PanelHeaderContext.d.ts +0 -7
- package/.cache/ts/src/components/PanelHeaderEdit/PanelHeaderEdit.d.ts +0 -18
- package/.cache/ts/src/components/PanelHeaderSubmit/PanelHeaderSubmit.d.ts +0 -4
- package/.cache/ts/src/components/PanelSpinner/PanelSpinner.d.ts +0 -7
- package/.cache/ts/src/components/Placeholder/Placeholder.d.ts +0 -23
- package/.cache/ts/src/components/PopoutRoot/PopoutRoot.d.ts +0 -10
- package/.cache/ts/src/components/PopoutWrapper/PopoutWrapper.d.ts +0 -10
- package/.cache/ts/src/components/Popper/Popper.d.ts +0 -32
- package/.cache/ts/src/components/Progress/Progress.d.ts +0 -8
- package/.cache/ts/src/components/PromoBanner/PromoBanner.d.ts +0 -40
- package/.cache/ts/src/components/PullToRefresh/PullToRefresh.d.ts +0 -37
- package/.cache/ts/src/components/PullToRefresh/PullToRefreshSpinner.d.ts +0 -11
- package/.cache/ts/src/components/Radio/Radio.d.ts +0 -9
- package/.cache/ts/src/components/RadioGroup/RadioGroup.d.ts +0 -6
- package/.cache/ts/src/components/RangeSlider/RangeSlider.d.ts +0 -6
- package/.cache/ts/src/components/RangeSlider/UniversalSlider.d.ts +0 -16
- package/.cache/ts/src/components/Removable/Removable.d.ts +0 -21
- package/.cache/ts/src/components/RichCell/RichCell.d.ts +0 -36
- package/.cache/ts/src/components/RichTooltip/RichTooltip.d.ts +0 -5
- package/.cache/ts/src/components/Root/Root.d.ts +0 -31
- package/.cache/ts/src/components/ScreenSpinner/ScreenSpinner.d.ts +0 -6
- package/.cache/ts/src/components/Search/Search.d.ts +0 -17
- package/.cache/ts/src/components/SegmentedControl/SegmentedControl.d.ts +0 -17
- package/.cache/ts/src/components/SegmentedControl/SegmentedControlOption/SegmentedControlOption.d.ts +0 -4
- package/.cache/ts/src/components/Select/Select.d.ts +0 -7
- package/.cache/ts/src/components/SelectMimicry/SelectMimicry.d.ts +0 -10
- package/.cache/ts/src/components/Separator/Separator.d.ts +0 -11
- package/.cache/ts/src/components/SimpleCell/SimpleCell.d.ts +0 -39
- package/.cache/ts/src/components/SimpleCheckbox/SimpleCheckbox.d.ts +0 -9
- package/.cache/ts/src/components/Slider/Slider.d.ts +0 -5
- package/.cache/ts/src/components/SliderSwitch/SliderSwitch.d.ts +0 -47
- package/.cache/ts/src/components/SliderSwitch/SliderSwitchButton.d.ts +0 -11
- package/.cache/ts/src/components/Snackbar/Snackbar.d.ts +0 -35
- package/.cache/ts/src/components/Spacing/Spacing.d.ts +0 -18
- package/.cache/ts/src/components/Spinner/Spinner.d.ts +0 -7
- package/.cache/ts/src/components/SplitCol/SplitCol.d.ts +0 -22
- package/.cache/ts/src/components/SplitLayout/SplitLayout.d.ts +0 -15
- package/.cache/ts/src/components/SubnavigationBar/SubnavigationBar.d.ts +0 -7
- package/.cache/ts/src/components/SubnavigationButton/SubnavigationButton.d.ts +0 -21
- package/.cache/ts/src/components/Switch/Switch.d.ts +0 -7
- package/.cache/ts/src/components/Tabbar/Tabbar.d.ts +0 -11
- package/.cache/ts/src/components/TabbarItem/TabbarItem.d.ts +0 -21
- package/.cache/ts/src/components/Tabs/Tabs.d.ts +0 -10
- package/.cache/ts/src/components/TabsItem/TabsItem.d.ts +0 -8
- package/.cache/ts/src/components/Tappable/Tappable.d.ts +0 -40
- package/.cache/ts/src/components/TextTooltip/TextTooltip.d.ts +0 -14
- package/.cache/ts/src/components/Textarea/Textarea.d.ts +0 -11
- package/.cache/ts/src/components/Tooltip/Tooltip.d.ts +0 -55
- package/.cache/ts/src/components/Tooltip/TooltipContainer.d.ts +0 -5
- package/.cache/ts/src/components/Touch/Touch.d.ts +0 -49
- package/.cache/ts/src/components/Touch/TouchContext.d.ts +0 -7
- package/.cache/ts/src/components/Typography/Caption/Caption.d.ts +0 -10
- package/.cache/ts/src/components/Typography/Headline/Headline.d.ts +0 -8
- package/.cache/ts/src/components/Typography/Subhead/Subhead.d.ts +0 -11
- package/.cache/ts/src/components/Typography/Text/Text.d.ts +0 -8
- package/.cache/ts/src/components/Typography/Title/Title.d.ts +0 -12
- package/.cache/ts/src/components/UsersStack/UsersStack.d.ts +0 -23
- package/.cache/ts/src/components/UsersStack/masks.d.ts +0 -1
- package/.cache/ts/src/components/View/View.d.ts +0 -80
- package/.cache/ts/src/components/View/ViewInfinite.d.ts +0 -66
- package/.cache/ts/src/components/View/utils.d.ts +0 -2
- package/.cache/ts/src/components/VisuallyHiddenInput/VisuallyHiddenInput.d.ts +0 -12
- package/.cache/ts/src/components/WriteBar/WriteBar.d.ts +0 -23
- package/.cache/ts/src/components/WriteBarIcon/WriteBarIcon.d.ts +0 -18
- package/.cache/ts/src/helpers/avatar.d.ts +0 -5
- package/.cache/ts/src/helpers/getClassName.d.ts +0 -2
- package/.cache/ts/src/helpers/getScheme.d.ts +0 -8
- package/.cache/ts/src/helpers/math.d.ts +0 -5
- package/.cache/ts/src/helpers/scheme.d.ts +0 -34
- package/.cache/ts/src/hoc/withAdaptivity.d.ts +0 -13
- package/.cache/ts/src/hoc/withContext.d.ts +0 -2
- package/.cache/ts/src/hoc/withInsets.d.ts +0 -3
- package/.cache/ts/src/hoc/withPlatform.d.ts +0 -3
- package/.cache/ts/src/hooks/useAdaptivity.d.ts +0 -3
- package/.cache/ts/src/hooks/useAppearance.d.ts +0 -1
- package/.cache/ts/src/hooks/useBrowserInfo.d.ts +0 -2
- package/.cache/ts/src/hooks/useEffectDev.d.ts +0 -2
- package/.cache/ts/src/hooks/useEnsuredControl.d.ts +0 -6
- package/.cache/ts/src/hooks/useEventListener.d.ts +0 -7
- package/.cache/ts/src/hooks/useExternRef.d.ts +0 -2
- package/.cache/ts/src/hooks/useFocusVisible.d.ts +0 -6
- package/.cache/ts/src/hooks/useGlobalEventListener.d.ts +0 -2
- package/.cache/ts/src/hooks/useInsets.d.ts +0 -8
- package/.cache/ts/src/hooks/useKeyboard.d.ts +0 -11
- package/.cache/ts/src/hooks/useKeyboardInputTracker.d.ts +0 -1
- package/.cache/ts/src/hooks/useObjectMemo.d.ts +0 -2
- package/.cache/ts/src/hooks/usePatchChildrenRef.d.ts +0 -6
- package/.cache/ts/src/hooks/usePlatform.d.ts +0 -2
- package/.cache/ts/src/hooks/useTimeout.d.ts +0 -4
- package/.cache/ts/src/hooks/useWaitTransitionFinish.d.ts +0 -3
- package/.cache/ts/src/index.d.ts +0 -279
- package/.cache/ts/src/lib/SSR.d.ts +0 -14
- package/.cache/ts/src/lib/accessibility.d.ts +0 -10
- package/.cache/ts/src/lib/animate.d.ts +0 -15
- package/.cache/ts/src/lib/browser.d.ts +0 -11
- package/.cache/ts/src/lib/callMultiple.d.ts +0 -1
- package/.cache/ts/src/lib/classNames.d.ts +0 -6
- package/.cache/ts/src/lib/classScopingMode.d.ts +0 -8
- package/.cache/ts/src/lib/dom.d.ts +0 -21
- package/.cache/ts/src/lib/fx.d.ts +0 -5
- package/.cache/ts/src/lib/getNavId.d.ts +0 -6
- package/.cache/ts/src/lib/is.d.ts +0 -1
- package/.cache/ts/src/lib/isRefObject.d.ts +0 -2
- package/.cache/ts/src/lib/jsxRuntime.d.ts +0 -8
- package/.cache/ts/src/lib/offset.d.ts +0 -7
- package/.cache/ts/src/lib/platform.d.ts +0 -19
- package/.cache/ts/src/lib/polyfills.d.ts +0 -6
- package/.cache/ts/src/lib/prefixClass.d.ts +0 -1
- package/.cache/ts/src/lib/removeObjectKeys.d.ts +0 -1
- package/.cache/ts/src/lib/select.d.ts +0 -7
- package/.cache/ts/src/lib/styles.d.ts +0 -1
- package/.cache/ts/src/lib/supportEvents.d.ts +0 -9
- package/.cache/ts/src/lib/taptic.d.ts +0 -2
- package/.cache/ts/src/lib/testing.d.ts +0 -1
- package/.cache/ts/src/lib/touch.d.ts +0 -9
- package/.cache/ts/src/lib/useIsomorphicLayoutEffect.d.ts +0 -2
- package/.cache/ts/src/lib/utils.d.ts +0 -15
- package/.cache/ts/src/lib/warnOnce.d.ts +0 -1
- package/.cache/ts/src/testing/setup.d.ts +0 -1
- package/.cache/ts/src/testing/utils.d.ts +0 -30
- package/.cache/ts/src/tokenized/index.d.ts +0 -14
- package/.cache/ts/src/types.d.ts +0 -34
- package/.cache/ts/src/unstable/index.d.ts +0 -17
- package/.codesandbox/ci.json +0 -5
- package/.editorconfig +0 -14
- package/.eslintignore +0 -6
- package/.eslintrc.json +0 -145
- package/.gitattributes +0 -1
- package/.gitmodules +0 -0
- package/.prettierignore +0 -14
- package/.prettierrc.json +0 -1
- package/.stylelintignore +0 -2
- package/CSS_GUIDE.md +0 -145
- package/TESTING.md +0 -58
- package/babel.cjs.config.js +0 -15
- package/babel.config.js +0 -72
- package/jest.unit.config.js +0 -14
- package/postcss.config.js +0 -54
- package/src/appearance/constants.ts +0 -1
- package/src/components/ActionSheet/ActionSheet.css +0 -145
- package/src/components/ActionSheet/ActionSheet.tsx +0 -161
- package/src/components/ActionSheet/ActionSheetContext.ts +0 -18
- package/src/components/ActionSheet/ActionSheetDropdown.tsx +0 -33
- package/src/components/ActionSheet/ActionSheetDropdownDesktop.tsx +0 -97
- package/src/components/ActionSheet/Readme.md +0 -256
- package/src/components/ActionSheet/types.ts +0 -16
- package/src/components/ActionSheetItem/ActionSheetItem.css +0 -306
- package/src/components/ActionSheetItem/ActionSheetItem.tsx +0 -188
- package/src/components/ActionSheetItem/Readme.md +0 -2
- package/src/components/AdaptivityProvider/AdaptivityContext.tsx +0 -62
- package/src/components/AdaptivityProvider/AdaptivityProvider.tsx +0 -138
- package/src/components/AdaptivityProvider/Readme.md +0 -3
- package/src/components/Alert/Alert.css +0 -297
- package/src/components/Alert/Alert.tsx +0 -292
- package/src/components/Alert/Readme.md +0 -133
- package/src/components/AppRoot/AppRoot.css +0 -20
- package/src/components/AppRoot/AppRoot.tsx +0 -205
- package/src/components/AppRoot/AppRootContext.ts +0 -13
- package/src/components/AppRoot/AppRootPortal.tsx +0 -24
- package/src/components/AppRoot/Readme.md +0 -9
- package/src/components/AppRoot/ScrollContext.ts +0 -44
- package/src/components/AppearanceProvider/AppearanceProvider.tsx +0 -61
- package/src/components/AppearanceProvider/AppearanceProviderContext.tsx +0 -7
- package/src/components/Avatar/Avatar.css +0 -192
- package/src/components/Avatar/Avatar.tsx +0 -183
- package/src/components/Avatar/Readme.md +0 -838
- package/src/components/Badge/Badge.css +0 -21
- package/src/components/Badge/Badge.tsx +0 -27
- package/src/components/Badge/Readme.md +0 -55
- package/src/components/Banner/Banner.css +0 -154
- package/src/components/Banner/Banner.tsx +0 -220
- package/src/components/Banner/Readme.md +0 -215
- package/src/components/Button/Button.css +0 -569
- package/src/components/Button/Button.tsx +0 -225
- package/src/components/Button/Readme.md +0 -186
- package/src/components/Card/Card.css +0 -83
- package/src/components/Card/Card.tsx +0 -31
- package/src/components/Card/Readme.md +0 -39
- package/src/components/CardGrid/CardGrid.css +0 -82
- package/src/components/CardGrid/CardGrid.tsx +0 -41
- package/src/components/CardGrid/Readme.md +0 -41
- package/src/components/CardScroll/CardScroll.css +0 -47
- package/src/components/CardScroll/CardScroll.tsx +0 -116
- package/src/components/CardScroll/Readme.md +0 -62
- package/src/components/Cell/Cell.css +0 -56
- package/src/components/Cell/Cell.tsx +0 -204
- package/src/components/Cell/CellCheckbox/CellCheckbox.css +0 -17
- package/src/components/Cell/CellCheckbox/CellCheckbox.tsx +0 -41
- package/src/components/Cell/CellDragger/CellDragger.css +0 -4
- package/src/components/Cell/CellDragger/CellDragger.tsx +0 -37
- package/src/components/Cell/Readme.md +0 -163
- package/src/components/Cell/useDraggable.tsx +0 -126
- package/src/components/CellButton/CellButton.css +0 -46
- package/src/components/CellButton/CellButton.tsx +0 -35
- package/src/components/CellButton/Readme.md +0 -53
- package/src/components/Checkbox/Checkbox.css +0 -127
- package/src/components/Checkbox/Checkbox.tsx +0 -109
- package/src/components/Checkbox/Readme.md +0 -20
- package/src/components/Chip/Chip.css +0 -56
- package/src/components/Chip/Chip.tsx +0 -75
- package/src/components/Chip/Readme.md +0 -81
- package/src/components/ChipsInput/ChipsInput.css +0 -72
- package/src/components/ChipsInput/ChipsInput.tsx +0 -238
- package/src/components/ChipsInput/Readme.md +0 -94
- package/src/components/ChipsInput/useChipsInput.ts +0 -90
- package/src/components/ChipsSelect/ChipsSelect.css +0 -23
- package/src/components/ChipsSelect/ChipsSelect.tsx +0 -453
- package/src/components/ChipsSelect/Readme.md +0 -115
- package/src/components/ChipsSelect/useChipsSelect.ts +0 -72
- package/src/components/ClickPopper/ClickPopper.tsx +0 -86
- package/src/components/ConfigProvider/ConfigProvider.tsx +0 -136
- package/src/components/ConfigProvider/ConfigProviderContext.tsx +0 -48
- package/src/components/ConfigProvider/Readme.md +0 -1
- package/src/components/ContentCard/ContentCard.css +0 -39
- package/src/components/ContentCard/ContentCard.tsx +0 -159
- package/src/components/ContentCard/Readme.md +0 -65
- package/src/components/Counter/Counter.css +0 -161
- package/src/components/Counter/Counter.tsx +0 -76
- package/src/components/Counter/Readme.md +0 -114
- package/src/components/CustomScrollView/CustomScrollView.css +0 -62
- package/src/components/CustomScrollView/CustomScrollView.tsx +0 -168
- package/src/components/CustomSelect/CustomSelect.css +0 -39
- package/src/components/CustomSelect/CustomSelect.tsx +0 -739
- package/src/components/CustomSelect/Readme.md +0 -248
- package/src/components/CustomSelectDropdown/CustomSelectDropdown.css +0 -26
- package/src/components/CustomSelectDropdown/CustomSelectDropdown.tsx +0 -66
- package/src/components/CustomSelectOption/CustomSelectOption.css +0 -63
- package/src/components/CustomSelectOption/CustomSelectOption.tsx +0 -92
- package/src/components/CustomSelectOption/Readme.md +0 -33
- package/src/components/DatePicker/DatePicker.css +0 -30
- package/src/components/DatePicker/DatePicker.tsx +0 -238
- package/src/components/DatePicker/Readme.md +0 -40
- package/src/components/Div/Div.css +0 -14
- package/src/components/Div/Div.tsx +0 -29
- package/src/components/Div/Readme.md +0 -17
- package/src/components/Dropdown/Dropdown.css +0 -19
- package/src/components/Dropdown/Dropdown.tsx +0 -42
- package/src/components/Dropdown/Readme.md +0 -49
- package/src/components/DropdownIcon/DropdownIcon.css +0 -3
- package/src/components/DropdownIcon/DropdownIcon.tsx +0 -18
- package/src/components/Epic/Epic.css +0 -4
- package/src/components/Epic/Epic.tsx +0 -61
- package/src/components/Epic/Readme.md +0 -240
- package/src/components/Epic/ScrollSaver.tsx +0 -23
- package/src/components/File/File.css +0 -6
- package/src/components/File/File.tsx +0 -74
- package/src/components/File/Readme.md +0 -20
- package/src/components/FixedLayout/FixedLayout.css +0 -27
- package/src/components/FixedLayout/FixedLayout.tsx +0 -71
- package/src/components/FixedLayout/Readme.md +0 -117
- package/src/components/FocusTrap/FocusTrap.tsx +0 -144
- package/src/components/FocusVisible/FocusVisible.css +0 -72
- package/src/components/FocusVisible/FocusVisible.tsx +0 -18
- package/src/components/Footer/Footer.css +0 -8
- package/src/components/Footer/Footer.tsx +0 -23
- package/src/components/Footer/Readme.md +0 -23
- package/src/components/FormField/FormField.css +0 -119
- package/src/components/FormField/FormField.tsx +0 -76
- package/src/components/FormField/Readme.md +0 -42
- package/src/components/FormItem/FormItem.css +0 -83
- package/src/components/FormItem/FormItem.tsx +0 -87
- package/src/components/FormItem/Readme.md +0 -183
- package/src/components/FormLayout/FormLayout.css +0 -16
- package/src/components/FormLayout/FormLayout.tsx +0 -39
- package/src/components/FormLayout/Readme.md +0 -2
- package/src/components/FormLayoutGroup/FormLayoutGroup.css +0 -22
- package/src/components/FormLayoutGroup/FormLayoutGroup.tsx +0 -71
- package/src/components/FormLayoutGroup/Readme.md +0 -63
- package/src/components/FormStatus/FormStatus.css +0 -34
- package/src/components/FormStatus/FormStatus.tsx +0 -51
- package/src/components/FormStatus/Readme.md +0 -23
- package/src/components/Gallery/Gallery.css +0 -71
- package/src/components/Gallery/Gallery.tsx +0 -562
- package/src/components/Gallery/Readme.md +0 -99
- package/src/components/Gradient/Gradient.css +0 -83
- package/src/components/Gradient/Gradient.tsx +0 -29
- package/src/components/Gradient/Readme.md +0 -55
- package/src/components/GridAvatar/GridAvatar.css +0 -37
- package/src/components/GridAvatar/GridAvatar.tsx +0 -53
- package/src/components/GridAvatar/Readme.md +0 -24
- package/src/components/Group/Group.css +0 -86
- package/src/components/Group/Group.tsx +0 -96
- package/src/components/Group/Readme.md +0 -156
- package/src/components/Header/Header.css +0 -152
- package/src/components/Header/Header.tsx +0 -174
- package/src/components/Header/Readme.md +0 -114
- package/src/components/HorizontalCell/HorizontalCell.css +0 -95
- package/src/components/HorizontalCell/HorizontalCell.tsx +0 -92
- package/src/components/HorizontalCell/Readme.md +0 -236
- package/src/components/HorizontalScroll/HorizontalScroll.css +0 -31
- package/src/components/HorizontalScroll/HorizontalScroll.tsx +0 -217
- package/src/components/HorizontalScroll/HorizontalScrollArrow.css +0 -69
- package/src/components/HorizontalScroll/HorizontalScrollArrow.tsx +0 -35
- package/src/components/HorizontalScroll/Readme.md +0 -67
- package/src/components/HoverPopper/HoverPopper.tsx +0 -102
- package/src/components/IconButton/IconButton.css +0 -93
- package/src/components/IconButton/IconButton.tsx +0 -57
- package/src/components/InfoRow/InfoRow.css +0 -14
- package/src/components/InfoRow/InfoRow.tsx +0 -37
- package/src/components/InfoRow/Readme.md +0 -27
- package/src/components/InitialsAvatar/InitialsAvatar.css +0 -55
- package/src/components/InitialsAvatar/InitialsAvatar.tsx +0 -95
- package/src/components/InitialsAvatar/Readme.md +0 -20
- package/src/components/Input/Input.css +0 -52
- package/src/components/Input/Input.tsx +0 -54
- package/src/components/Input/Readme.md +0 -46
- package/src/components/Link/Link.css +0 -18
- package/src/components/Link/Link.tsx +0 -27
- package/src/components/Link/Readme.md +0 -8
- package/src/components/List/List.css +0 -2
- package/src/components/List/List.tsx +0 -31
- package/src/components/List/ListContext.ts +0 -6
- package/src/components/List/Readme.md +0 -22
- package/src/components/MiniInfoCell/MiniInfoCell.css +0 -67
- package/src/components/MiniInfoCell/MiniInfoCell.tsx +0 -94
- package/src/components/MiniInfoCell/Readme.md +0 -150
- package/src/components/ModalCard/ModalCard.css +0 -77
- package/src/components/ModalCard/ModalCard.tsx +0 -93
- package/src/components/ModalCard/Readme.md +0 -9
- package/src/components/ModalCardBase/ModalCardBase.css +0 -94
- package/src/components/ModalCardBase/ModalCardBase.tsx +0 -141
- package/src/components/ModalCardBase/Readme.md +0 -38
- package/src/components/ModalDismissButton/ModalDismissButton.css +0 -37
- package/src/components/ModalDismissButton/ModalDismissButton.tsx +0 -32
- package/src/components/ModalDismissButton/Readme.md +0 -53
- package/src/components/ModalPage/ModalPage.css +0 -146
- package/src/components/ModalPage/ModalPage.tsx +0 -125
- package/src/components/ModalPage/Readme.md +0 -9
- package/src/components/ModalPageHeader/ModalPageHeader.css +0 -24
- package/src/components/ModalPageHeader/ModalPageHeader.tsx +0 -57
- package/src/components/ModalPageHeader/Readme.md +0 -46
- package/src/components/ModalRoot/ModalRoot.css +0 -67
- package/src/components/ModalRoot/ModalRoot.tsx +0 -816
- package/src/components/ModalRoot/ModalRootAdaptive.tsx +0 -42
- package/src/components/ModalRoot/ModalRootContext.tsx +0 -51
- package/src/components/ModalRoot/ModalRootDesktop.tsx +0 -261
- package/src/components/ModalRoot/Readme.md +0 -662
- package/src/components/ModalRoot/constants.ts +0 -4
- package/src/components/ModalRoot/types.ts +0 -53
- package/src/components/ModalRoot/useModalManager.tsx +0 -203
- package/src/components/ModalRoot/withModalRootContext.tsx +0 -19
- package/src/components/NativeSelect/NativeSelect.tsx +0 -113
- package/src/components/NativeSelect/Readme.md +0 -17
- package/src/components/NavTransitionContext/NavTransitionContext.tsx +0 -24
- package/src/components/Panel/Panel.css +0 -116
- package/src/components/Panel/Panel.tsx +0 -58
- package/src/components/Panel/Readme.md +0 -97
- package/src/components/PanelHeader/PanelHeader.css +0 -271
- package/src/components/PanelHeader/PanelHeader.tsx +0 -142
- package/src/components/PanelHeader/Readme.md +0 -244
- package/src/components/PanelHeaderBack/PanelHeaderBack.css +0 -7
- package/src/components/PanelHeaderBack/PanelHeaderBack.tsx +0 -60
- package/src/components/PanelHeaderBack/Readme.md +0 -9
- package/src/components/PanelHeaderButton/PanelHeaderButton.css +0 -102
- package/src/components/PanelHeaderButton/PanelHeaderButton.tsx +0 -109
- package/src/components/PanelHeaderButton/Readme.md +0 -47
- package/src/components/PanelHeaderClose/PanelHeaderClose.tsx +0 -35
- package/src/components/PanelHeaderClose/Readme.md +0 -9
- package/src/components/PanelHeaderContent/PanelHeaderContent.css +0 -107
- package/src/components/PanelHeaderContent/PanelHeaderContent.tsx +0 -111
- package/src/components/PanelHeaderContent/Readme.md +0 -33
- package/src/components/PanelHeaderContext/PanelHeaderContext.css +0 -143
- package/src/components/PanelHeaderContext/PanelHeaderContext.tsx +0 -85
- package/src/components/PanelHeaderContext/Readme.md +0 -110
- package/src/components/PanelHeaderEdit/PanelHeaderEdit.tsx +0 -49
- package/src/components/PanelHeaderEdit/Readme.md +0 -1
- package/src/components/PanelHeaderSubmit/PanelHeaderSubmit.tsx +0 -37
- package/src/components/PanelHeaderSubmit/Readme.md +0 -13
- package/src/components/PanelSpinner/PanelSpinner.tsx +0 -21
- package/src/components/PanelSpinner/Readme.md +0 -15
- package/src/components/Placeholder/Placeholder.css +0 -50
- package/src/components/Placeholder/Placeholder.tsx +0 -70
- package/src/components/Placeholder/Readme.md +0 -104
- package/src/components/PopoutRoot/PopoutRoot.css +0 -36
- package/src/components/PopoutRoot/PopoutRoot.tsx +0 -72
- package/src/components/PopoutRoot/Readme.md +0 -50
- package/src/components/PopoutWrapper/PopoutWrapper.css +0 -109
- package/src/components/PopoutWrapper/PopoutWrapper.tsx +0 -77
- package/src/components/PopoutWrapper/Readme.md +0 -12
- package/src/components/Popper/Popper.css +0 -39
- package/src/components/Popper/Popper.tsx +0 -231
- package/src/components/Popper/Readme.md +0 -33
- package/src/components/Progress/Progress.css +0 -12
- package/src/components/Progress/Progress.tsx +0 -49
- package/src/components/Progress/Readme.md +0 -14
- package/src/components/PromoBanner/PromoBanner.css +0 -55
- package/src/components/PromoBanner/PromoBanner.tsx +0 -137
- package/src/components/PromoBanner/Readme.md +0 -25
- package/src/components/PullToRefresh/PullToRefresh.css +0 -98
- package/src/components/PullToRefresh/PullToRefresh.tsx +0 -353
- package/src/components/PullToRefresh/PullToRefreshSpinner.tsx +0 -78
- package/src/components/PullToRefresh/Readme.md +0 -71
- package/src/components/Radio/Radio.css +0 -187
- package/src/components/Radio/Radio.tsx +0 -89
- package/src/components/Radio/Readme.md +0 -29
- package/src/components/RadioGroup/RadioGroup.css +0 -12
- package/src/components/RadioGroup/RadioGroup.tsx +0 -29
- package/src/components/RadioGroup/Readme.md +0 -56
- package/src/components/RangeSlider/RangeSlider.tsx +0 -54
- package/src/components/RangeSlider/Readme.md +0 -32
- package/src/components/RangeSlider/UniversalSlider.tsx +0 -162
- package/src/components/Removable/Removable.css +0 -125
- package/src/components/Removable/Removable.tsx +0 -176
- package/src/components/RichCell/Readme.md +0 -65
- package/src/components/RichCell/RichCell.css +0 -115
- package/src/components/RichCell/RichCell.tsx +0 -103
- package/src/components/RichTooltip/Readme.md +0 -59
- package/src/components/RichTooltip/RichTooltip.css +0 -10
- package/src/components/RichTooltip/RichTooltip.tsx +0 -32
- package/src/components/Root/Readme.md +0 -36
- package/src/components/Root/Root.css +0 -184
- package/src/components/Root/Root.tsx +0 -209
- package/src/components/ScreenSpinner/Readme.md +0 -43
- package/src/components/ScreenSpinner/ScreenSpinner.css +0 -31
- package/src/components/ScreenSpinner/ScreenSpinner.tsx +0 -37
- package/src/components/Search/Readme.md +0 -235
- package/src/components/Search/Search.css +0 -359
- package/src/components/Search/Search.tsx +0 -196
- package/src/components/SegmentedControl/Readme.md +0 -94
- package/src/components/SegmentedControl/SegmentedControl.css +0 -42
- package/src/components/SegmentedControl/SegmentedControl.tsx +0 -105
- package/src/components/SegmentedControl/SegmentedControlOption/SegmentedControlOption.css +0 -30
- package/src/components/SegmentedControl/SegmentedControlOption/SegmentedControlOption.tsx +0 -42
- package/src/components/Select/Readme.md +0 -27
- package/src/components/Select/Select.css +0 -59
- package/src/components/Select/Select.tsx +0 -39
- package/src/components/SelectMimicry/Readme.md +0 -87
- package/src/components/SelectMimicry/SelectMimicry.tsx +0 -84
- package/src/components/Separator/Readme.md +0 -23
- package/src/components/Separator/Separator.css +0 -48
- package/src/components/Separator/Separator.tsx +0 -40
- package/src/components/SimpleCell/Readme.md +0 -136
- package/src/components/SimpleCell/SimpleCell.css +0 -258
- package/src/components/SimpleCell/SimpleCell.tsx +0 -132
- package/src/components/SimpleCheckbox/Readme.md +0 -25
- package/src/components/SimpleCheckbox/SimpleCheckbox.css +0 -129
- package/src/components/SimpleCheckbox/SimpleCheckbox.tsx +0 -146
- package/src/components/Slider/Readme.md +0 -83
- package/src/components/Slider/Slider.css +0 -145
- package/src/components/Slider/Slider.tsx +0 -54
- package/src/components/SliderSwitch/Readme.md +0 -27
- package/src/components/SliderSwitch/SliderSwitch.css +0 -87
- package/src/components/SliderSwitch/SliderSwitch.tsx +0 -209
- package/src/components/SliderSwitch/SliderSwitchButton.tsx +0 -53
- package/src/components/Snackbar/Readme.md +0 -145
- package/src/components/Snackbar/Snackbar.css +0 -159
- package/src/components/Snackbar/Snackbar.tsx +0 -254
- package/src/components/Spacing/Readme.md +0 -98
- package/src/components/Spacing/Spacing.css +0 -46
- package/src/components/Spacing/Spacing.tsx +0 -53
- package/src/components/Spinner/Readme.md +0 -11
- package/src/components/Spinner/Spinner.css +0 -33
- package/src/components/Spinner/Spinner.tsx +0 -53
- package/src/components/SplitCol/Readme.md +0 -1
- package/src/components/SplitCol/SplitCol.css +0 -28
- package/src/components/SplitCol/SplitCol.tsx +0 -75
- package/src/components/SplitLayout/Readme.md +0 -154
- package/src/components/SplitLayout/SplitLayout.css +0 -52
- package/src/components/SplitLayout/SplitLayout.tsx +0 -54
- package/src/components/SubnavigationBar/Readme.md +0 -264
- package/src/components/SubnavigationBar/SubnavigationBar.css +0 -32
- package/src/components/SubnavigationBar/SubnavigationBar.tsx +0 -66
- package/src/components/SubnavigationButton/Readme.md +0 -128
- package/src/components/SubnavigationButton/SubnavigationButton.css +0 -103
- package/src/components/SubnavigationButton/SubnavigationButton.tsx +0 -105
- package/src/components/Switch/Readme.md +0 -57
- package/src/components/Switch/Switch.css +0 -198
- package/src/components/Switch/Switch.tsx +0 -56
- package/src/components/Tabbar/Readme.md +0 -7
- package/src/components/Tabbar/Tabbar.css +0 -53
- package/src/components/Tabbar/Tabbar.tsx +0 -50
- package/src/components/TabbarItem/Readme.md +0 -102
- package/src/components/TabbarItem/TabbarItem.css +0 -127
- package/src/components/TabbarItem/TabbarItem.tsx +0 -94
- package/src/components/Tabs/Readme.md +0 -274
- package/src/components/Tabs/Tabs.css +0 -102
- package/src/components/Tabs/Tabs.tsx +0 -57
- package/src/components/TabsItem/Readme.md +0 -0
- package/src/components/TabsItem/TabsItem.css +0 -178
- package/src/components/TabsItem/TabsItem.tsx +0 -62
- package/src/components/Tappable/Tappable.css +0 -141
- package/src/components/Tappable/Tappable.tsx +0 -340
- package/src/components/TextTooltip/Readme.md +0 -11
- package/src/components/TextTooltip/TextTooltip.css +0 -18
- package/src/components/TextTooltip/TextTooltip.tsx +0 -58
- package/src/components/Textarea/Readme.md +0 -24
- package/src/components/Textarea/Textarea.css +0 -39
- package/src/components/Textarea/Textarea.tsx +0 -80
- package/src/components/Tooltip/Readme.md +0 -263
- package/src/components/Tooltip/Tooltip.css +0 -73
- package/src/components/Tooltip/Tooltip.tsx +0 -314
- package/src/components/Tooltip/TooltipContainer.tsx +0 -10
- package/src/components/Touch/Readme.md +0 -116
- package/src/components/Touch/Touch.tsx +0 -285
- package/src/components/Touch/TouchContext.ts +0 -11
- package/src/components/Typography/Caption/Caption.css +0 -55
- package/src/components/Typography/Caption/Caption.tsx +0 -44
- package/src/components/Typography/Caption/Readme.md +0 -51
- package/src/components/Typography/Headline/Headline.css +0 -25
- package/src/components/Typography/Headline/Headline.tsx +0 -36
- package/src/components/Typography/Headline/Readme.md +0 -24
- package/src/components/Typography/Subhead/Readme.md +0 -21
- package/src/components/Typography/Subhead/Subhead.css +0 -43
- package/src/components/Typography/Subhead/Subhead.tsx +0 -52
- package/src/components/Typography/Text/Readme.md +0 -22
- package/src/components/Typography/Text/Text.css +0 -25
- package/src/components/Typography/Text/Text.tsx +0 -49
- package/src/components/Typography/Title/Readme.md +0 -31
- package/src/components/Typography/Title/Title.css +0 -59
- package/src/components/Typography/Title/Title.tsx +0 -61
- package/src/components/UsersStack/Readme.md +0 -94
- package/src/components/UsersStack/UsersStack.css +0 -99
- package/src/components/UsersStack/UsersStack.tsx +0 -103
- package/src/components/UsersStack/masks.tsx +0 -46
- package/src/components/View/Readme.md +0 -98
- package/src/components/View/View.css +0 -125
- package/src/components/View/View.tsx +0 -673
- package/src/components/View/ViewIOS.css +0 -155
- package/src/components/View/ViewInfinite.tsx +0 -732
- package/src/components/View/utils.ts +0 -9
- package/src/components/VisuallyHiddenInput/VisuallyHiddenInput.css +0 -9
- package/src/components/VisuallyHiddenInput/VisuallyHiddenInput.tsx +0 -25
- package/src/components/WriteBar/Readme.md +0 -224
- package/src/components/WriteBar/WriteBar.css +0 -106
- package/src/components/WriteBar/WriteBar.tsx +0 -137
- package/src/components/WriteBarIcon/Readme.md +0 -11
- package/src/components/WriteBarIcon/WriteBarIcon.css +0 -75
- package/src/components/WriteBarIcon/WriteBarIcon.tsx +0 -104
- 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 +0 -7
- package/src/helpers/avatar.ts +0 -10
- package/src/helpers/getClassName.ts +0 -8
- package/src/helpers/getScheme.ts +0 -27
- package/src/helpers/math.ts +0 -40
- package/src/helpers/scheme.ts +0 -86
- package/src/hoc/withAdaptivity.tsx +0 -86
- package/src/hoc/withContext.tsx +0 -14
- package/src/hoc/withInsets.tsx +0 -12
- package/src/hoc/withPlatform.tsx +0 -17
- package/src/hooks/useAdaptivity.ts +0 -12
- package/src/hooks/useAppearance.ts +0 -4
- package/src/hooks/useBrowserInfo.ts +0 -11
- package/src/hooks/useEffectDev.ts +0 -5
- package/src/hooks/useEnsuredControl.ts +0 -17
- package/src/hooks/useEventListener.ts +0 -62
- package/src/hooks/useExternRef.ts +0 -26
- package/src/hooks/useFocusVisible.ts +0 -31
- package/src/hooks/useGlobalEventListener.ts +0 -35
- package/src/hooks/useInsets.ts +0 -69
- package/src/hooks/useKeyboard.ts +0 -75
- package/src/hooks/useKeyboardInputTracker.ts +0 -47
- package/src/hooks/useObjectMemo.ts +0 -16
- package/src/hooks/usePatchChildrenRef.ts +0 -39
- package/src/hooks/usePlatform.ts +0 -10
- package/src/hooks/useTimeout.ts +0 -33
- package/src/hooks/useWaitTransitionFinish.ts +0 -28
- package/src/index.ts +0 -324
- package/src/lib/SSR.tsx +0 -45
- package/src/lib/accessibility.ts +0 -87
- package/src/lib/animate.ts +0 -47
- package/src/lib/browser.ts +0 -44
- package/src/lib/callMultiple.ts +0 -4
- package/src/lib/classNames.ts +0 -44
- package/src/lib/classScopingMode.ts +0 -21
- package/src/lib/dom.tsx +0 -45
- package/src/lib/fx.ts +0 -7
- package/src/lib/getNavId.ts +0 -13
- package/src/lib/is.ts +0 -10
- package/src/lib/isRefObject.ts +0 -11
- package/src/lib/jsxRuntime.d.ts +0 -6
- package/src/lib/jsxRuntime.ts +0 -43
- package/src/lib/offset.ts +0 -17
- package/src/lib/platform.ts +0 -36
- package/src/lib/polyfills.ts +0 -96
- package/src/lib/prefixClass.ts +0 -34
- package/src/lib/removeObjectKeys.ts +0 -10
- package/src/lib/select.ts +0 -54
- package/src/lib/styles.ts +0 -12
- package/src/lib/supportEvents.ts +0 -38
- package/src/lib/taptic.ts +0 -9
- package/src/lib/testing.ts +0 -4
- package/src/lib/touch.ts +0 -59
- package/src/lib/useIsomorphicLayoutEffect.ts +0 -7
- package/src/lib/utils.ts +0 -96
- package/src/lib/warnOnce.ts +0 -9
- package/src/styles/animations.css +0 -19
- package/src/styles/bright_light.css +0 -244
- package/src/styles/common.css +0 -39
- package/src/styles/components.css +0 -138
- package/src/styles/constants.css +0 -72
- package/src/styles/space_gray.css +0 -243
- package/src/styles/themes.css +0 -10
- package/src/styles/unstable.css +0 -6
- package/src/styles/vkcom_dark.css +0 -249
- package/src/styles/vkcom_light.css +0 -254
- package/src/testing/setup.ts +0 -1
- package/src/testing/utils.tsx +0 -192
- package/src/tokenized/index.ts +0 -24
- package/src/types.ts +0 -43
- package/src/unstable/index.ts +0 -23
- package/src/vkui.js +0 -1
- package/stylelint.config.js +0 -46
- package/tasks/generate_scheme.js +0 -13
- package/tasks/postcss-check-keyframes.js +0 -36
- package/tasks/postcss-scope-root.js +0 -9
- package/tasks/styleint-atomic.js +0 -57
- package/tokenized/index.d.ts +0 -1
- package/tokenized/package.json +0 -4
- package/tsconfig.dist.json +0 -16
- package/tsconfig.json +0 -38
- package/types/global.d.ts +0 -7
- package/unstable/index.d.ts +0 -1
- package/unstable/package.json +0 -4
- package/webpack.config.js +0 -86
- package/webpack.styles.config.js +0 -67
package/postcss.config.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
const cssCustomProperties = require("postcss-custom-properties");
|
|
3
|
-
const scopeRoot = require("./tasks/postcss-scope-root.js");
|
|
4
|
-
const cssImport = require("postcss-import");
|
|
5
|
-
const autoprefixer = require("autoprefixer");
|
|
6
|
-
const cssModules = require("postcss-modules");
|
|
7
|
-
const csso = require("postcss-csso");
|
|
8
|
-
const checkKeyframes = require("./tasks/postcss-check-keyframes");
|
|
9
|
-
const { defaultSchemeId } = require("./package.json");
|
|
10
|
-
|
|
11
|
-
const animationsSource = path.join(__dirname, "src/styles/animations.css");
|
|
12
|
-
const cssPropSources = [
|
|
13
|
-
path.join(
|
|
14
|
-
__dirname,
|
|
15
|
-
"node_modules/@vkontakte/vkui-tokens/themes/vkBase/cssVars/declarations/onlyVariables.css"
|
|
16
|
-
),
|
|
17
|
-
path.join(__dirname, "src/styles/bright_light.css"),
|
|
18
|
-
path.join(__dirname, "src/styles/constants.css"),
|
|
19
|
-
animationsSource,
|
|
20
|
-
];
|
|
21
|
-
|
|
22
|
-
let plugins = [
|
|
23
|
-
cssImport(),
|
|
24
|
-
checkKeyframes({
|
|
25
|
-
importFrom: animationsSource,
|
|
26
|
-
}),
|
|
27
|
-
cssCustomProperties({
|
|
28
|
-
importFrom: cssPropSources,
|
|
29
|
-
preserve: true,
|
|
30
|
-
}),
|
|
31
|
-
// postcss-custom-properties only works with :root
|
|
32
|
-
scopeRoot({
|
|
33
|
-
customPropRoot: ".vkui__root, .vkui__portal-root",
|
|
34
|
-
except: [
|
|
35
|
-
path.resolve(`./src/styles/${defaultSchemeId}.css`),
|
|
36
|
-
path.resolve(
|
|
37
|
-
"./node_modules/@vkontakte/vkui-tokens/themes/vkBase/cssVars/declarations/onlyVariables.css"
|
|
38
|
-
),
|
|
39
|
-
],
|
|
40
|
-
}),
|
|
41
|
-
autoprefixer(),
|
|
42
|
-
cssModules({
|
|
43
|
-
generateScopedName: (name) =>
|
|
44
|
-
name.startsWith("vkui") || name === "mount" ? name : `vkui${name}`,
|
|
45
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
46
|
-
getJSON: () => {},
|
|
47
|
-
}),
|
|
48
|
-
];
|
|
49
|
-
|
|
50
|
-
if (process.env.NODE_ENV === "production") {
|
|
51
|
-
plugins.push(csso({ restructure: false }));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
module.exports = { plugins, cssPropSources };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const tabbarHeight = 48;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
.ActionSheet {
|
|
2
|
-
position: relative;
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.ActionSheet__header {
|
|
7
|
-
color: var(--text_secondary);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* iOS
|
|
12
|
-
*/
|
|
13
|
-
.ActionSheet--ios {
|
|
14
|
-
width: 100%;
|
|
15
|
-
animation: vkui-animation-actionsheet-intro 0.3s var(--ios-easing);
|
|
16
|
-
padding: 10px;
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
align-items: stretch;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ActionSheet--ios.ActionSheet--closing {
|
|
24
|
-
transform: translateY(100%);
|
|
25
|
-
transition: transform 0.3s var(--ios-easing);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.ActionSheet--ios .ActionSheet__header {
|
|
29
|
-
padding: 15px 10px;
|
|
30
|
-
position: relative;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
border-radius: 14px 14px 0 0;
|
|
33
|
-
text-align: center;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.ActionSheet--ios .ActionSheet__title {
|
|
37
|
-
position: relative;
|
|
38
|
-
z-index: 2;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.ActionSheet--ios .ActionSheet__title + .ActionSheet__text {
|
|
42
|
-
margin-top: 9px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.ActionSheet--ios .ActionSheet__text {
|
|
46
|
-
position: relative;
|
|
47
|
-
z-index: 2;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.ActionSheet--ios .ActionSheet__header::before {
|
|
51
|
-
position: absolute;
|
|
52
|
-
left: 0;
|
|
53
|
-
top: 0;
|
|
54
|
-
width: 100%;
|
|
55
|
-
height: 100%;
|
|
56
|
-
background-color: var(--modal_card_background);
|
|
57
|
-
z-index: 1;
|
|
58
|
-
content: "";
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Android
|
|
63
|
-
*/
|
|
64
|
-
.ActionSheet--android,
|
|
65
|
-
.ActionSheet--vkcom {
|
|
66
|
-
width: calc(100% - 20px);
|
|
67
|
-
margin: 10px;
|
|
68
|
-
animation: vkui-animation-actionsheet-intro 0.2s var(--android-easing);
|
|
69
|
-
box-sizing: border-box;
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-direction: column;
|
|
72
|
-
align-items: stretch;
|
|
73
|
-
border-radius: 12px;
|
|
74
|
-
box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.16), 0 0 4px 0 rgba(0, 0, 0, 0.08);
|
|
75
|
-
padding: 8px 0;
|
|
76
|
-
background: var(--modal_card_background);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.ActionSheet--android.ActionSheet--closing {
|
|
80
|
-
transform: translateY(calc(100% + 20px));
|
|
81
|
-
transition: transform 0.2s var(--android-easing);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.ActionSheet--android .ActionSheet__header,
|
|
85
|
-
.ActionSheet--vkcom .ActionSheet__header {
|
|
86
|
-
padding: 16px 20px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.ActionSheet--android .ActionSheet__title + .ActionSheet__text,
|
|
90
|
-
.ActionSheet--vkcom .ActionSheet__title + .ActionSheet__text {
|
|
91
|
-
margin-top: 8px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Desktop version
|
|
96
|
-
*/
|
|
97
|
-
|
|
98
|
-
.ActionSheet--desktop {
|
|
99
|
-
width: auto;
|
|
100
|
-
height: auto;
|
|
101
|
-
background: var(--modal_card_background);
|
|
102
|
-
animation: none;
|
|
103
|
-
padding: 0;
|
|
104
|
-
margin: 0;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.ActionSheet--desktop.ActionSheet--sizeY-compact {
|
|
108
|
-
padding-top: 8px;
|
|
109
|
-
padding-bottom: 8px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.ActionSheet--desktop.ActionSheet--ios {
|
|
113
|
-
border-radius: 14px;
|
|
114
|
-
box-shadow: 0 0 96px rgba(0, 0, 0, 0.16), 0 0 2px rgba(0, 0, 0, 0.12);
|
|
115
|
-
padding: 0;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.ActionSheet--desktop.ActionSheet--android {
|
|
119
|
-
min-width: 112px;
|
|
120
|
-
border-radius: 12px;
|
|
121
|
-
padding: 8px 0;
|
|
122
|
-
box-shadow: 0 8px 8px rgba(0, 0, 0, 0.16), 0 0 4px rgba(0, 0, 0, 0.08);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.ActionSheet--desktop.ActionSheet--vkcom {
|
|
126
|
-
border-radius: 12px;
|
|
127
|
-
box-shadow: 0 0 2px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.ActionSheet--desktop.ActionSheet--vkcom .ActionSheet__header {
|
|
131
|
-
padding: 14px 20px;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Animations
|
|
136
|
-
*/
|
|
137
|
-
@keyframes vkui-animation-actionsheet-intro {
|
|
138
|
-
from {
|
|
139
|
-
transform: translateY(100%);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
to {
|
|
143
|
-
transform: translateY(0);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { PopoutWrapper } from "../PopoutWrapper/PopoutWrapper";
|
|
3
|
-
import { ViewWidth, ViewHeight } from "../../hoc/withAdaptivity";
|
|
4
|
-
import { IOS } from "../../lib/platform";
|
|
5
|
-
import { ActionSheetDropdownDesktop } from "./ActionSheetDropdownDesktop";
|
|
6
|
-
import { ActionSheetDropdown } from "./ActionSheetDropdown";
|
|
7
|
-
import { hasReactNode, noop } from "../../lib/utils";
|
|
8
|
-
import { ActionSheetContext, ItemClickHandler } from "./ActionSheetContext";
|
|
9
|
-
import Caption from "../Typography/Caption/Caption";
|
|
10
|
-
import { usePlatform } from "../../hooks/usePlatform";
|
|
11
|
-
import { useTimeout } from "../../hooks/useTimeout";
|
|
12
|
-
import { useAdaptivity } from "../../hooks/useAdaptivity";
|
|
13
|
-
import { useObjectMemo } from "../../hooks/useObjectMemo";
|
|
14
|
-
import { warnOnce } from "../../lib/warnOnce";
|
|
15
|
-
import { SharedDropdownProps, PopupDirection, ToggleRef } from "./types";
|
|
16
|
-
import "./ActionSheet.css";
|
|
17
|
-
|
|
18
|
-
export interface ActionSheetProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
19
|
-
header?: React.ReactNode;
|
|
20
|
-
text?: React.ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Закрыть попап по клику снаружи. В v5 будет обязательным.
|
|
23
|
-
*/
|
|
24
|
-
onClose?: VoidFunction;
|
|
25
|
-
/**
|
|
26
|
-
* Элемент, рядом с которым вылезает попап на десктопе.
|
|
27
|
-
* Лучше передавать RefObject c current.
|
|
28
|
-
* В v5 будет обязательным.
|
|
29
|
-
*/
|
|
30
|
-
toggleRef?: ToggleRef;
|
|
31
|
-
/**
|
|
32
|
-
* Направление на десктопе
|
|
33
|
-
*/
|
|
34
|
-
popupDirection?: PopupDirection;
|
|
35
|
-
/**
|
|
36
|
-
* Только iOS. В v5 будет обязательным.
|
|
37
|
-
*/
|
|
38
|
-
iosCloseItem?: React.ReactNode;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const warn = warnOnce("ActionSheet");
|
|
42
|
-
|
|
43
|
-
export const ActionSheet: React.FC<ActionSheetProps> = ({
|
|
44
|
-
children,
|
|
45
|
-
className,
|
|
46
|
-
header,
|
|
47
|
-
text,
|
|
48
|
-
style,
|
|
49
|
-
iosCloseItem,
|
|
50
|
-
...restProps
|
|
51
|
-
}) => {
|
|
52
|
-
const platform = usePlatform();
|
|
53
|
-
const [closing, setClosing] = React.useState(false);
|
|
54
|
-
const onClose = () => setClosing(true);
|
|
55
|
-
const _action = React.useRef(noop);
|
|
56
|
-
|
|
57
|
-
const afterClose = () => {
|
|
58
|
-
restProps.onClose?.();
|
|
59
|
-
_action.current();
|
|
60
|
-
_action.current = noop;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
if (process.env.NODE_ENV === "development" && !restProps.onClose) {
|
|
64
|
-
warn("can't close on outer click without onClose");
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const { viewWidth, viewHeight, hasMouse } = useAdaptivity();
|
|
68
|
-
const isDesktop =
|
|
69
|
-
viewWidth >= ViewWidth.SMALL_TABLET &&
|
|
70
|
-
(hasMouse || viewHeight >= ViewHeight.MEDIUM);
|
|
71
|
-
|
|
72
|
-
let timeout = platform === IOS ? 300 : 200;
|
|
73
|
-
|
|
74
|
-
if (isDesktop) {
|
|
75
|
-
timeout = 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
const fallbackTransitionFinish = useTimeout(afterClose, timeout);
|
|
79
|
-
React.useEffect(() => {
|
|
80
|
-
if (closing) {
|
|
81
|
-
fallbackTransitionFinish.set();
|
|
82
|
-
} else {
|
|
83
|
-
fallbackTransitionFinish.clear();
|
|
84
|
-
}
|
|
85
|
-
}, [closing, fallbackTransitionFinish]);
|
|
86
|
-
|
|
87
|
-
const onItemClick = React.useCallback<ItemClickHandler>(
|
|
88
|
-
(action, immediateAction, autoclose) => (event) => {
|
|
89
|
-
event.persist();
|
|
90
|
-
immediateAction && immediateAction(event);
|
|
91
|
-
if (autoclose) {
|
|
92
|
-
_action.current = () => action && action(event);
|
|
93
|
-
setClosing(true);
|
|
94
|
-
} else {
|
|
95
|
-
action && action(event);
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
[]
|
|
99
|
-
);
|
|
100
|
-
const contextValue = useObjectMemo({ onItemClick, isDesktop });
|
|
101
|
-
|
|
102
|
-
const DropdownComponent = isDesktop
|
|
103
|
-
? ActionSheetDropdownDesktop
|
|
104
|
-
: ActionSheetDropdown;
|
|
105
|
-
|
|
106
|
-
const actionSheet = (
|
|
107
|
-
<ActionSheetContext.Provider value={contextValue}>
|
|
108
|
-
<DropdownComponent
|
|
109
|
-
closing={closing}
|
|
110
|
-
timeout={timeout}
|
|
111
|
-
{...(restProps as Omit<SharedDropdownProps, "closing">)}
|
|
112
|
-
onClose={onClose}
|
|
113
|
-
className={isDesktop ? className : undefined}
|
|
114
|
-
style={isDesktop ? style : undefined}
|
|
115
|
-
>
|
|
116
|
-
{(hasReactNode(header) || hasReactNode(text)) && (
|
|
117
|
-
<header vkuiClass="ActionSheet__header">
|
|
118
|
-
{hasReactNode(header) && (
|
|
119
|
-
<Caption
|
|
120
|
-
level="1"
|
|
121
|
-
weight={platform === IOS ? "semibold" : "medium"}
|
|
122
|
-
vkuiClass="ActionSheet__title"
|
|
123
|
-
>
|
|
124
|
-
{header}
|
|
125
|
-
</Caption>
|
|
126
|
-
)}
|
|
127
|
-
{hasReactNode(text) && (
|
|
128
|
-
<Caption level="1" weight="regular" vkuiClass="ActionSheet__text">
|
|
129
|
-
{text}
|
|
130
|
-
</Caption>
|
|
131
|
-
)}
|
|
132
|
-
</header>
|
|
133
|
-
)}
|
|
134
|
-
{children}
|
|
135
|
-
{platform === IOS && !isDesktop && iosCloseItem}
|
|
136
|
-
</DropdownComponent>
|
|
137
|
-
</ActionSheetContext.Provider>
|
|
138
|
-
);
|
|
139
|
-
|
|
140
|
-
if (isDesktop) {
|
|
141
|
-
return actionSheet;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
return (
|
|
145
|
-
<PopoutWrapper
|
|
146
|
-
closing={closing}
|
|
147
|
-
alignY="bottom"
|
|
148
|
-
className={className}
|
|
149
|
-
style={style}
|
|
150
|
-
onClick={onClose}
|
|
151
|
-
hasMask
|
|
152
|
-
fixed
|
|
153
|
-
>
|
|
154
|
-
{actionSheet}
|
|
155
|
-
</PopoutWrapper>
|
|
156
|
-
);
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
ActionSheet.defaultProps = {
|
|
160
|
-
popupDirection: "bottom",
|
|
161
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
export type ActionType<T> = (event: React.MouseEvent<T>) => void;
|
|
4
|
-
|
|
5
|
-
export type ItemClickHandler<T extends Element = Element> = (
|
|
6
|
-
action: ActionType<T> | undefined,
|
|
7
|
-
immediateAction: ActionType<T> | undefined,
|
|
8
|
-
autoclose: boolean
|
|
9
|
-
) => (event: React.MouseEvent) => void;
|
|
10
|
-
|
|
11
|
-
export type ActionSheetContextType<T extends Element = Element> = {
|
|
12
|
-
onItemClick?: ItemClickHandler<T>;
|
|
13
|
-
isDesktop?: boolean;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export const ActionSheetContext = React.createContext<
|
|
17
|
-
ActionSheetContextType<any>
|
|
18
|
-
>({});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { getClassName } from "../../helpers/getClassName";
|
|
3
|
-
import { classNames } from "../../lib/classNames";
|
|
4
|
-
import { usePlatform } from "../../hooks/usePlatform";
|
|
5
|
-
import { SharedDropdownProps } from "./types";
|
|
6
|
-
import { FocusTrap } from "../FocusTrap/FocusTrap";
|
|
7
|
-
import "./ActionSheet.css";
|
|
8
|
-
|
|
9
|
-
const stopPropagation: React.MouseEventHandler = (e) => e.stopPropagation();
|
|
10
|
-
|
|
11
|
-
export const ActionSheetDropdown: React.FC<SharedDropdownProps> = ({
|
|
12
|
-
children,
|
|
13
|
-
closing,
|
|
14
|
-
// these 2 props are only omitted - ActionSheetDesktop compat
|
|
15
|
-
toggleRef,
|
|
16
|
-
popupDirection,
|
|
17
|
-
...restProps
|
|
18
|
-
}) => {
|
|
19
|
-
const platform = usePlatform();
|
|
20
|
-
const baseClaseName = getClassName("ActionSheet", platform);
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<FocusTrap
|
|
24
|
-
{...restProps}
|
|
25
|
-
onClick={stopPropagation}
|
|
26
|
-
vkuiClass={classNames(baseClaseName, {
|
|
27
|
-
"ActionSheet--closing": closing,
|
|
28
|
-
})}
|
|
29
|
-
>
|
|
30
|
-
{children}
|
|
31
|
-
</FocusTrap>
|
|
32
|
-
);
|
|
33
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { getClassName } from "../../helpers/getClassName";
|
|
3
|
-
import { classNames } from "../../lib/classNames";
|
|
4
|
-
import { useDOM } from "../../lib/dom";
|
|
5
|
-
import { usePlatform } from "../../hooks/usePlatform";
|
|
6
|
-
import { useEffectDev } from "../../hooks/useEffectDev";
|
|
7
|
-
import { useAdaptivity } from "../../hooks/useAdaptivity";
|
|
8
|
-
import { isRefObject } from "../../lib/isRefObject";
|
|
9
|
-
import { warnOnce } from "../../lib/warnOnce";
|
|
10
|
-
import { useEventListener } from "../../hooks/useEventListener";
|
|
11
|
-
import { SharedDropdownProps } from "./types";
|
|
12
|
-
import { FocusTrap } from "../FocusTrap/FocusTrap";
|
|
13
|
-
import { Popper } from "../Popper/Popper";
|
|
14
|
-
import "./ActionSheet.css";
|
|
15
|
-
|
|
16
|
-
const warn = warnOnce("ActionSheet");
|
|
17
|
-
function getEl(
|
|
18
|
-
ref: SharedDropdownProps["toggleRef"]
|
|
19
|
-
): Element | null | undefined {
|
|
20
|
-
return ref && "current" in ref ? ref.current : ref;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const ActionSheetDropdownDesktop: React.FC<SharedDropdownProps> = ({
|
|
24
|
-
children,
|
|
25
|
-
toggleRef,
|
|
26
|
-
closing,
|
|
27
|
-
popupDirection,
|
|
28
|
-
onClose,
|
|
29
|
-
className,
|
|
30
|
-
style,
|
|
31
|
-
...restProps
|
|
32
|
-
}) => {
|
|
33
|
-
const { document } = useDOM();
|
|
34
|
-
const platform = usePlatform();
|
|
35
|
-
const { sizeY } = useAdaptivity();
|
|
36
|
-
const elementRef = React.useRef<HTMLDivElement | null>(null);
|
|
37
|
-
|
|
38
|
-
useEffectDev(() => {
|
|
39
|
-
const toggleEl = getEl(toggleRef);
|
|
40
|
-
if (!toggleEl) {
|
|
41
|
-
warn("toggleRef not passed");
|
|
42
|
-
}
|
|
43
|
-
}, [toggleRef]);
|
|
44
|
-
|
|
45
|
-
const isPopupDirectionTop = React.useMemo(
|
|
46
|
-
() =>
|
|
47
|
-
popupDirection === "top" ||
|
|
48
|
-
(typeof popupDirection === "function" &&
|
|
49
|
-
popupDirection(elementRef) === "top"),
|
|
50
|
-
[popupDirection, elementRef]
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
const bodyClickListener = useEventListener("click", (e: MouseEvent) => {
|
|
54
|
-
const dropdownElement = elementRef?.current;
|
|
55
|
-
if (dropdownElement && !dropdownElement.contains(e.target as Node)) {
|
|
56
|
-
onClose?.();
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
React.useEffect(() => {
|
|
61
|
-
setTimeout(() => {
|
|
62
|
-
bodyClickListener.add(document!.body);
|
|
63
|
-
});
|
|
64
|
-
}, [bodyClickListener, document]);
|
|
65
|
-
|
|
66
|
-
const onClick = React.useCallback((e) => e.stopPropagation(), []);
|
|
67
|
-
|
|
68
|
-
const targetRef = React.useMemo(() => {
|
|
69
|
-
if (isRefObject<SharedDropdownProps["toggleRef"], HTMLElement>(toggleRef)) {
|
|
70
|
-
return toggleRef;
|
|
71
|
-
}
|
|
72
|
-
const refObject = { current: toggleRef as HTMLElement };
|
|
73
|
-
|
|
74
|
-
return refObject;
|
|
75
|
-
}, [toggleRef]);
|
|
76
|
-
|
|
77
|
-
return (
|
|
78
|
-
<Popper
|
|
79
|
-
targetRef={targetRef}
|
|
80
|
-
offsetDistance={0}
|
|
81
|
-
placement={isPopupDirectionTop ? "top-end" : "bottom-end"}
|
|
82
|
-
vkuiClass={classNames(
|
|
83
|
-
getClassName("ActionSheet", platform),
|
|
84
|
-
"ActionSheet--desktop",
|
|
85
|
-
`ActionSheet--sizeY-${sizeY}`
|
|
86
|
-
)}
|
|
87
|
-
className={className}
|
|
88
|
-
style={style}
|
|
89
|
-
getRef={elementRef}
|
|
90
|
-
forcePortal={false}
|
|
91
|
-
>
|
|
92
|
-
<FocusTrap onClose={onClose} {...restProps} onClick={onClick}>
|
|
93
|
-
{children}
|
|
94
|
-
</FocusTrap>
|
|
95
|
-
</Popper>
|
|
96
|
-
);
|
|
97
|
-
};
|