@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
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { getClassName } from "../../helpers/getClassName";
|
|
3
|
-
import { usePlatform } from "../../hooks/usePlatform";
|
|
4
|
-
import Tappable, { TappableProps } from "../Tappable/Tappable";
|
|
5
|
-
import "./Link.css";
|
|
6
|
-
|
|
7
|
-
export type LinkProps = TappableProps;
|
|
8
|
-
|
|
9
|
-
const Link: React.FC<LinkProps> = ({ children, ...restProps }: LinkProps) => {
|
|
10
|
-
const platform = usePlatform();
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<Tappable
|
|
14
|
-
Component={restProps.href ? "a" : "button"}
|
|
15
|
-
{...restProps}
|
|
16
|
-
vkuiClass={getClassName("Link", platform)}
|
|
17
|
-
hasActive={false}
|
|
18
|
-
hoverMode="opacity"
|
|
19
|
-
focusVisibleMode="outside"
|
|
20
|
-
>
|
|
21
|
-
{children}
|
|
22
|
-
</Tappable>
|
|
23
|
-
);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
// eslint-disable-next-line import/no-default-export
|
|
27
|
-
export default Link;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { classNames } from "../../lib/classNames";
|
|
3
|
-
import { getClassName } from "../../helpers/getClassName";
|
|
4
|
-
import { usePlatform } from "../../hooks/usePlatform";
|
|
5
|
-
import { ListContext } from "./ListContext";
|
|
6
|
-
import "./List.css";
|
|
7
|
-
|
|
8
|
-
const List: React.FunctionComponent<React.HTMLAttributes<HTMLDivElement>> = ({
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: React.HTMLAttributes<HTMLDivElement>) => {
|
|
12
|
-
const platform = usePlatform();
|
|
13
|
-
const [isDragging, toggleDrag] = React.useState(false);
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<div
|
|
17
|
-
role="list"
|
|
18
|
-
{...restProps}
|
|
19
|
-
vkuiClass={classNames(getClassName("List", platform), {
|
|
20
|
-
"List--dragging": isDragging,
|
|
21
|
-
})}
|
|
22
|
-
>
|
|
23
|
-
<ListContext.Provider value={React.useMemo(() => ({ toggleDrag }), [])}>
|
|
24
|
-
{children}
|
|
25
|
-
</ListContext.Provider>
|
|
26
|
-
</div>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
// eslint-disable-next-line import/no-default-export
|
|
31
|
-
export default List;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Контейнер для однородных [Cell](#!/Cell).
|
|
2
|
-
|
|
3
|
-
```jsx
|
|
4
|
-
<View activePanel="list">
|
|
5
|
-
<Panel id="list">
|
|
6
|
-
<PanelHeader>List</PanelHeader>
|
|
7
|
-
<Group>
|
|
8
|
-
<List>
|
|
9
|
-
<Cell expandable before={<Icon28UserOutline />}>
|
|
10
|
-
Учетная запись
|
|
11
|
-
</Cell>
|
|
12
|
-
<Cell expandable before={<Icon28SettingsOutline />}>
|
|
13
|
-
Основные
|
|
14
|
-
</Cell>
|
|
15
|
-
<Cell expandable before={<Icon28PrivacyOutline />}>
|
|
16
|
-
Приватность
|
|
17
|
-
</Cell>
|
|
18
|
-
</List>
|
|
19
|
-
</Group>
|
|
20
|
-
</Panel>
|
|
21
|
-
</View>
|
|
22
|
-
```
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
.MiniInfoCell {
|
|
2
|
-
display: flex;
|
|
3
|
-
padding: 6px 12px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.MiniInfoCell--lvl-primary {
|
|
7
|
-
color: var(--text_primary);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.MiniInfoCell--lvl-secondary {
|
|
11
|
-
color: var(--text_subhead);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.MiniInfoCell__icon {
|
|
15
|
-
margin-right: 12px;
|
|
16
|
-
color: var(--icon_outline_secondary);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.MiniInfoCell__content {
|
|
20
|
-
flex: 1;
|
|
21
|
-
min-width: 0;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
text-overflow: ellipsis;
|
|
24
|
-
white-space: nowrap;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.MiniInfoCell--wr-short .MiniInfoCell__content {
|
|
28
|
-
white-space: initial;
|
|
29
|
-
display: -webkit-box;
|
|
30
|
-
max-height: 60px;
|
|
31
|
-
-webkit-line-clamp: 3;
|
|
32
|
-
-webkit-box-orient: vertical;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.MiniInfoCell--wr-full .MiniInfoCell__content {
|
|
36
|
-
overflow: inherit;
|
|
37
|
-
white-space: initial;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.MiniInfoCell__after {
|
|
41
|
-
margin-left: 12px;
|
|
42
|
-
margin-top: -2px;
|
|
43
|
-
margin-bottom: -2px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.MiniInfoCell--md-add,
|
|
47
|
-
.MiniInfoCell--md-add .MiniInfoCell__icon {
|
|
48
|
-
color: var(--accent);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.MiniInfoCell--md-more,
|
|
52
|
-
.MiniInfoCell--md-more .MiniInfoCell__icon {
|
|
53
|
-
color: var(--link_alternate);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.MiniInfoCell--md-more {
|
|
57
|
-
padding-top: 10px;
|
|
58
|
-
padding-bottom: 10px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* ANDROID
|
|
63
|
-
*/
|
|
64
|
-
.MiniInfoCell--android {
|
|
65
|
-
padding-left: 16px;
|
|
66
|
-
padding-right: 16px;
|
|
67
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { classNames } from "../../lib/classNames";
|
|
3
|
-
import { usePlatform } from "../../hooks/usePlatform";
|
|
4
|
-
import { getClassName } from "../../helpers/getClassName";
|
|
5
|
-
import Text from "../Typography/Text/Text";
|
|
6
|
-
import Tappable from "../../components/Tappable/Tappable";
|
|
7
|
-
import { hasReactNode } from "../../lib/utils";
|
|
8
|
-
import "./MiniInfoCell.css";
|
|
9
|
-
|
|
10
|
-
export interface MiniInfoCellProps
|
|
11
|
-
extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
-
/**
|
|
13
|
-
* Иконка слева.<br />
|
|
14
|
-
* Рекомендуется использовать иконки размера 20.
|
|
15
|
-
*/
|
|
16
|
-
before: React.ReactNode;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Содержимое справа.<br />
|
|
20
|
-
* `<UsersStack size="s" />` или `<Avatar size={24} />`
|
|
21
|
-
*/
|
|
22
|
-
after?: React.ReactNode;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Тип ячейки:
|
|
26
|
-
*
|
|
27
|
-
* - `base` – базовая ячейка с серой иконкой и серым текстом.<br />
|
|
28
|
-
* В компонент можно передать `Link`, чтобы визуально сделать часть текста ссылкой.
|
|
29
|
-
* - `add` – тип ячейки, который показывает, что взаимодействие с ней должно вызывать действие добавления чего-то.
|
|
30
|
-
* - `more` – взаимодействие с такой ячейкой должно открывать какую-то подробную информацию.
|
|
31
|
-
*/
|
|
32
|
-
mode?: "base" | "add" | "more";
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Тип отображения текста:
|
|
36
|
-
*
|
|
37
|
-
* - `nowrap` – в одну строку, текст не переносится и обрезается.
|
|
38
|
-
* - `short` – максимально отображается 3 строки, остальное обрезается.
|
|
39
|
-
* - `full` – текст отображается полностью.
|
|
40
|
-
*/
|
|
41
|
-
textWrap?: "nowrap" | "short" | "full";
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Стиль текста:
|
|
45
|
-
*
|
|
46
|
-
* - `primary` – используйте этот стиль, если хотите выделить информацию в общем списке.<br />Пример использования: подробная информация на странице сообщества
|
|
47
|
-
* - `secondary` – стиль по-умолчанию.
|
|
48
|
-
*/
|
|
49
|
-
textLevel?: "primary" | "secondary";
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export const MiniInfoCell: React.FC<MiniInfoCellProps> = (
|
|
53
|
-
props: MiniInfoCellProps
|
|
54
|
-
) => {
|
|
55
|
-
const platform = usePlatform();
|
|
56
|
-
const { before, after, mode, textWrap, textLevel, children, ...restProps } =
|
|
57
|
-
props;
|
|
58
|
-
|
|
59
|
-
const isClickable = !!restProps.onClick;
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<Tappable
|
|
63
|
-
Component="div"
|
|
64
|
-
disabled={!isClickable}
|
|
65
|
-
role={isClickable ? "button" : undefined}
|
|
66
|
-
{...restProps}
|
|
67
|
-
vkuiClass={classNames(
|
|
68
|
-
getClassName("MiniInfoCell", platform),
|
|
69
|
-
{
|
|
70
|
-
[`MiniInfoCell--md-${mode}`]: mode !== "base",
|
|
71
|
-
[`MiniInfoCell--wr-${textWrap}`]: textWrap !== "nowrap",
|
|
72
|
-
},
|
|
73
|
-
`MiniInfoCell--lvl-${textLevel}`
|
|
74
|
-
)}
|
|
75
|
-
>
|
|
76
|
-
<span vkuiClass="MiniInfoCell__icon">{before}</span>
|
|
77
|
-
<Text
|
|
78
|
-
vkuiClass="MiniInfoCell__content"
|
|
79
|
-
weight={mode === "more" ? "medium" : "regular"}
|
|
80
|
-
>
|
|
81
|
-
{children}
|
|
82
|
-
</Text>
|
|
83
|
-
{hasReactNode(after) && (
|
|
84
|
-
<span vkuiClass="MiniInfoCell__after">{after}</span>
|
|
85
|
-
)}
|
|
86
|
-
</Tappable>
|
|
87
|
-
);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
MiniInfoCell.defaultProps = {
|
|
91
|
-
mode: "base",
|
|
92
|
-
textWrap: "nowrap",
|
|
93
|
-
textLevel: "secondary",
|
|
94
|
-
};
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
```jsx { "props": { "layout": false, "adaptivity": true } }
|
|
2
|
-
function MiniInfoCellExample() {
|
|
3
|
-
const platform = usePlatform();
|
|
4
|
-
const [activeModal, setActiveModal] = React.useState(null);
|
|
5
|
-
|
|
6
|
-
const handleExtendedInfoClick = () => {
|
|
7
|
-
setActiveModal("extended_info");
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const closeModal = () => {
|
|
11
|
-
setActiveModal(null);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const modal = (
|
|
15
|
-
<ModalRoot activeModal={activeModal} onClose={closeModal}>
|
|
16
|
-
<ModalPage
|
|
17
|
-
header={
|
|
18
|
-
<ModalPageHeader
|
|
19
|
-
left={
|
|
20
|
-
(platform === ANDROID || platform === VKCOM) && (
|
|
21
|
-
<PanelHeaderButton onClick={closeModal}>
|
|
22
|
-
<Icon24Cancel />
|
|
23
|
-
</PanelHeaderButton>
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
right={
|
|
27
|
-
platform === IOS && (
|
|
28
|
-
<PanelHeaderButton onClick={closeModal}>
|
|
29
|
-
<Icon24Dismiss />
|
|
30
|
-
</PanelHeaderButton>
|
|
31
|
-
)
|
|
32
|
-
}
|
|
33
|
-
noShadow
|
|
34
|
-
>
|
|
35
|
-
Подробнее
|
|
36
|
-
</ModalPageHeader>
|
|
37
|
-
}
|
|
38
|
-
id="extended_info"
|
|
39
|
-
>
|
|
40
|
-
<Separator style={{ marginBottom: 12 }} />
|
|
41
|
-
|
|
42
|
-
<MiniInfoCell
|
|
43
|
-
before={<Icon20CommunityName />}
|
|
44
|
-
textWrap="full"
|
|
45
|
-
textLevel="primary"
|
|
46
|
-
>
|
|
47
|
-
Команда вконтакте
|
|
48
|
-
</MiniInfoCell>
|
|
49
|
-
|
|
50
|
-
<MiniInfoCell
|
|
51
|
-
before={<Icon20MessageOutline />}
|
|
52
|
-
textWrap="full"
|
|
53
|
-
textLevel="primary"
|
|
54
|
-
>
|
|
55
|
-
Официальная страница Команды ВКонтакте.
|
|
56
|
-
</MiniInfoCell>
|
|
57
|
-
|
|
58
|
-
<MiniInfoCell
|
|
59
|
-
before={<Icon20ArticleOutline />}
|
|
60
|
-
textWrap="full"
|
|
61
|
-
textLevel="primary"
|
|
62
|
-
>
|
|
63
|
-
ВКонтакте начинался как сайт для выпускников вузов, а сейчас это
|
|
64
|
-
огромная экосистема с безграничными возможностями и миллионами
|
|
65
|
-
пользователей.
|
|
66
|
-
</MiniInfoCell>
|
|
67
|
-
|
|
68
|
-
<Separator style={{ marginTop: 12, marginBottom: 12 }} />
|
|
69
|
-
|
|
70
|
-
<MiniInfoCell before={<Icon20PlaceOutline />}>
|
|
71
|
-
Санкт-Петербург, Россия
|
|
72
|
-
</MiniInfoCell>
|
|
73
|
-
|
|
74
|
-
<MiniInfoCell before={<Icon20MentionOutline />}>team</MiniInfoCell>
|
|
75
|
-
|
|
76
|
-
<div style={{ height: 24 }} />
|
|
77
|
-
</ModalPage>
|
|
78
|
-
</ModalRoot>
|
|
79
|
-
);
|
|
80
|
-
|
|
81
|
-
return (
|
|
82
|
-
<SplitLayout modal={modal}>
|
|
83
|
-
<SplitCol>
|
|
84
|
-
<View activePanel="information_cell">
|
|
85
|
-
<Panel id="information_cell">
|
|
86
|
-
<PanelHeader>Ячейка информации</PanelHeader>
|
|
87
|
-
|
|
88
|
-
<Group>
|
|
89
|
-
<MiniInfoCell before={<Icon20ArticleOutline />} textWrap="short">
|
|
90
|
-
ВКонтакте начинался как сайт для выпускников вузов, а сейчас это
|
|
91
|
-
огромная экосистема с безграничными возможностями и миллионами
|
|
92
|
-
пользователей.
|
|
93
|
-
</MiniInfoCell>
|
|
94
|
-
|
|
95
|
-
<MiniInfoCell
|
|
96
|
-
before={<Icon20FollowersOutline />}
|
|
97
|
-
after={
|
|
98
|
-
<UsersStack
|
|
99
|
-
photos={[
|
|
100
|
-
getAvatarUrl("user_mm"),
|
|
101
|
-
getAvatarUrl("user_arthurstam"),
|
|
102
|
-
getAvatarUrl("user_xyz"),
|
|
103
|
-
]}
|
|
104
|
-
/>
|
|
105
|
-
}
|
|
106
|
-
>
|
|
107
|
-
514,7K подписчиков · 77 друзей
|
|
108
|
-
</MiniInfoCell>
|
|
109
|
-
|
|
110
|
-
<MiniInfoCell before={<Icon20GlobeOutline />}>
|
|
111
|
-
<Link href="https://vk.com/team">vk.com/team</Link>
|
|
112
|
-
</MiniInfoCell>
|
|
113
|
-
|
|
114
|
-
<MiniInfoCell
|
|
115
|
-
before={<Icon20WorkOutline />}
|
|
116
|
-
after={
|
|
117
|
-
<Avatar
|
|
118
|
-
size={24}
|
|
119
|
-
src="https://sun9-29.userapi.com/c623616/v623616034/1c184/MnbEYczHxSY.jpg?ava=1"
|
|
120
|
-
/>
|
|
121
|
-
}
|
|
122
|
-
>
|
|
123
|
-
Место работы: Команда ВКонтакте
|
|
124
|
-
</MiniInfoCell>
|
|
125
|
-
|
|
126
|
-
<MiniInfoCell
|
|
127
|
-
before={<Icon20WorkOutline />}
|
|
128
|
-
mode="add"
|
|
129
|
-
onClick={() => console.log("Указать место учёбы")}
|
|
130
|
-
>
|
|
131
|
-
Укажите место учёбы
|
|
132
|
-
</MiniInfoCell>
|
|
133
|
-
|
|
134
|
-
<MiniInfoCell
|
|
135
|
-
before={<Icon20Info />}
|
|
136
|
-
mode="more"
|
|
137
|
-
onClick={handleExtendedInfoClick}
|
|
138
|
-
>
|
|
139
|
-
Подробная информация
|
|
140
|
-
</MiniInfoCell>
|
|
141
|
-
</Group>
|
|
142
|
-
</Panel>
|
|
143
|
-
</View>
|
|
144
|
-
</SplitCol>
|
|
145
|
-
</SplitLayout>
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
<MiniInfoCellExample />;
|
|
150
|
-
```
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
.ModalCard {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
position: absolute;
|
|
4
|
-
top: 0;
|
|
5
|
-
left: 0;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: flex-end;
|
|
10
|
-
z-index: 1;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ModalCard__in {
|
|
14
|
-
width: 100%;
|
|
15
|
-
margin-left: auto;
|
|
16
|
-
margin-right: auto;
|
|
17
|
-
padding: 8px;
|
|
18
|
-
transform: translateY(100%);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ModalCard__dismiss {
|
|
22
|
-
position: absolute;
|
|
23
|
-
top: 4px;
|
|
24
|
-
right: 4px;
|
|
25
|
-
width: 48px;
|
|
26
|
-
height: 48px;
|
|
27
|
-
color: var(--placeholder_icon_foreground_primary);
|
|
28
|
-
justify-content: center;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* iOS
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
.ModalCard--ios .ModalCard__in {
|
|
36
|
-
transition: transform 340ms var(--ios-easing);
|
|
37
|
-
max-width: 414px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Android + vkcom
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
.ModalCard--android .ModalCard__in,
|
|
45
|
-
.ModalCard--vkcom .ModalCard__in {
|
|
46
|
-
transition: transform 340ms var(--android-easing);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.ModalCard--android .ModalCard__in {
|
|
50
|
-
max-width: 440px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.ModalCard--vkcom .ModalCard__in {
|
|
54
|
-
max-width: 400px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Desktop
|
|
59
|
-
*/
|
|
60
|
-
|
|
61
|
-
.ModalCard--desktop {
|
|
62
|
-
align-items: center;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.ModalCard--desktop .ModalCard__in {
|
|
66
|
-
transform: unset;
|
|
67
|
-
opacity: 0;
|
|
68
|
-
transition: opacity 340ms var(--android-easing);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Common
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
.ModalRoot--touched .ModalCard__in {
|
|
76
|
-
transition: none;
|
|
77
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { getClassName } from "../../helpers/getClassName";
|
|
3
|
-
import { classNames } from "../../lib/classNames";
|
|
4
|
-
import { withPlatform } from "../../hoc/withPlatform";
|
|
5
|
-
import { HasPlatform } from "../../types";
|
|
6
|
-
import {
|
|
7
|
-
withAdaptivity,
|
|
8
|
-
ViewHeight,
|
|
9
|
-
ViewWidth,
|
|
10
|
-
} from "../../hoc/withAdaptivity";
|
|
11
|
-
import ModalRootContext, {
|
|
12
|
-
useModalRegistry,
|
|
13
|
-
} from "../ModalRoot/ModalRootContext";
|
|
14
|
-
import { ModalType } from "../ModalRoot/types";
|
|
15
|
-
import { getNavId, NavIdProps } from "../../lib/getNavId";
|
|
16
|
-
import { warnOnce } from "../../lib/warnOnce";
|
|
17
|
-
import {
|
|
18
|
-
ModalCardBase,
|
|
19
|
-
ModalCardBaseProps,
|
|
20
|
-
} from "../ModalCardBase/ModalCardBase";
|
|
21
|
-
import {
|
|
22
|
-
AdaptivityContextInterface,
|
|
23
|
-
AdaptivityProps,
|
|
24
|
-
} from "../AdaptivityProvider/AdaptivityContext";
|
|
25
|
-
import "./ModalCard.css";
|
|
26
|
-
|
|
27
|
-
export interface ModalCardProps
|
|
28
|
-
extends HasPlatform,
|
|
29
|
-
AdaptivityProps,
|
|
30
|
-
NavIdProps,
|
|
31
|
-
ModalCardBaseProps {}
|
|
32
|
-
|
|
33
|
-
const warn = warnOnce("ModalCard");
|
|
34
|
-
|
|
35
|
-
const ModalCard: React.FC<ModalCardProps & AdaptivityContextInterface> = (
|
|
36
|
-
props
|
|
37
|
-
) => {
|
|
38
|
-
const {
|
|
39
|
-
icon,
|
|
40
|
-
header,
|
|
41
|
-
subheader,
|
|
42
|
-
children,
|
|
43
|
-
actions,
|
|
44
|
-
actionsLayout,
|
|
45
|
-
onClose,
|
|
46
|
-
platform,
|
|
47
|
-
viewWidth,
|
|
48
|
-
viewHeight,
|
|
49
|
-
hasMouse,
|
|
50
|
-
nav,
|
|
51
|
-
...restProps
|
|
52
|
-
} = props;
|
|
53
|
-
|
|
54
|
-
const isDesktop =
|
|
55
|
-
viewWidth >= ViewWidth.SMALL_TABLET &&
|
|
56
|
-
(hasMouse || viewHeight >= ViewHeight.MEDIUM);
|
|
57
|
-
|
|
58
|
-
const modalContext = React.useContext(ModalRootContext);
|
|
59
|
-
const { refs } = useModalRegistry(getNavId(props, warn), ModalType.CARD);
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<div
|
|
63
|
-
{...restProps}
|
|
64
|
-
vkuiClass={classNames(getClassName("ModalCard", platform), {
|
|
65
|
-
"ModalCard--desktop": isDesktop,
|
|
66
|
-
})}
|
|
67
|
-
>
|
|
68
|
-
<ModalCardBase
|
|
69
|
-
vkuiClass="ModalCard__in"
|
|
70
|
-
getRootRef={refs.innerElement}
|
|
71
|
-
icon={icon}
|
|
72
|
-
header={header}
|
|
73
|
-
subheader={subheader}
|
|
74
|
-
actions={actions}
|
|
75
|
-
actionsLayout={actionsLayout}
|
|
76
|
-
onClose={onClose || modalContext.onClose}
|
|
77
|
-
>
|
|
78
|
-
{children}
|
|
79
|
-
</ModalCardBase>
|
|
80
|
-
</div>
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
ModalCard.defaultProps = {
|
|
85
|
-
actionsLayout: "horizontal",
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
// eslint-disable-next-line import/no-default-export
|
|
89
|
-
export default withAdaptivity(withPlatform(ModalCard), {
|
|
90
|
-
viewWidth: true,
|
|
91
|
-
viewHeight: true,
|
|
92
|
-
hasMouse: true,
|
|
93
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Модальные карточки.
|
|
2
|
-
|
|
3
|
-
Карточка может быть закрыта смахиванием вниз, нажатием на полупрозрачную черную область, либо нажатием по иконке крестика (только на iOS). При этом вызовется свойство `onClose`.
|
|
4
|
-
|
|
5
|
-
> **Важно**
|
|
6
|
-
>
|
|
7
|
-
> в качестве значения свойства `icon` использовать либо контурные иконки размером 56, например, `<Icon56NotificationOutline />`, либо `<Avatar size={72} src="" />`.
|
|
8
|
-
|
|
9
|
-
Пример использования показан в компоненте `ModalRoot`.
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
.ModalCardBase {
|
|
2
|
-
}
|
|
3
|
-
|
|
4
|
-
.ModalCardBase__container {
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
position: relative;
|
|
7
|
-
background: var(--modal_card_background);
|
|
8
|
-
border-radius: 18px;
|
|
9
|
-
padding: 16px;
|
|
10
|
-
margin-bottom: var(--safe-area-inset-bottom);
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
pointer-events: initial;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.ModalCardBase__container--softwareKeyboardOpened {
|
|
18
|
-
margin-bottom: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ModalCardBase__header,
|
|
22
|
-
.ModalCardBase__subheader {
|
|
23
|
-
text-align: center;
|
|
24
|
-
margin: 0;
|
|
25
|
-
padding: 0 8px;
|
|
26
|
-
word-break: break-word;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.ModalCardBase__header {
|
|
30
|
-
color: var(--text_primary);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.ModalCardBase__subheader {
|
|
34
|
-
color: var(--text_secondary);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.ModalCardBase__header + .ModalCardBase__subheader {
|
|
38
|
-
margin-top: 8px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.ModalCardBase__icon {
|
|
42
|
-
margin: 8px auto 16px;
|
|
43
|
-
color: var(--accent);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.ModalCardBase__actions {
|
|
47
|
-
display: flex;
|
|
48
|
-
margin-left: -6px;
|
|
49
|
-
margin-right: -6px;
|
|
50
|
-
margin-top: 16px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.ModalCardBase .UsersStack + .ModalCardBase__actions {
|
|
54
|
-
margin-top: 32px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.ModalCardBase__header + .ModalCardBase__actions,
|
|
58
|
-
.ModalCardBase__subheader + .ModalCardBase__actions {
|
|
59
|
-
margin-top: 32px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.ModalCardBase__actions--v {
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
margin-left: 0;
|
|
65
|
-
margin-right: 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* iOS
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
.ModalCardBase--ios .ModalCardBase__header:first-child {
|
|
73
|
-
padding-left: 36px;
|
|
74
|
-
padding-right: 36px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Android + vkcom
|
|
79
|
-
*/
|
|
80
|
-
|
|
81
|
-
.ModalCardBase--android .ModalCardBase__container,
|
|
82
|
-
.ModalCardBase--vkcom .ModalCardBase__container {
|
|
83
|
-
border-radius: 12px;
|
|
84
|
-
box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.16), 0 0 4px 0 rgba(0, 0, 0, 0.08);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Desktop
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
.ModalCardBase--desktop .ModalCardBase__container {
|
|
92
|
-
border-radius: 8px;
|
|
93
|
-
box-shadow: 0 16px 16px rgba(0, 0, 0, 0.16), 0 0 8px rgba(0, 0, 0, 0.12);
|
|
94
|
-
}
|