-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
h2. Описание Переименовал в компоненте `Header` свойство `aside` to `after` h2. Release notes h2. BREAKING CHANGE - Header: свойство `aside` переименовано в `after` ```diff <Header mode="primary" subtitle="SOHN — Conrad" subtitleComponent="h3" - aside={ + after={ <Link> Показать все {<Icon12ChevronOutline />} </Link> } /> ```
- Loading branch information
1 parent
bd64cef
commit 596d928
Showing
19 changed files
with
106 additions
and
51 deletions.
There are no files selected for viewing
29 changes: 28 additions & 1 deletion
29
packages/codemods/src/transforms/v7/__testfixtures__/header/basic.input.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,42 @@ | ||
import { Header } from '@vkontakte/vkui'; | ||
import { Header, Icon12ChevronOutline, Link } from '@vkontakte/vkui'; | ||
import React from 'react'; | ||
|
||
const App = () => { | ||
const aside = ( | ||
<Link> | ||
Показать все | ||
{<Icon12ChevronOutline />} | ||
</Link> | ||
) | ||
|
||
return ( | ||
<React.Fragment> | ||
{/* Проверка изменения size */} | ||
<Header mode="primary" multiline size="large"> | ||
Кто может писать мне личные сообщения | ||
</Header> | ||
<Header mode="secondary" multiline size="regular"> | ||
Кто может писать мне личные сообщения | ||
</Header> | ||
|
||
{/* Проверка замены aside на after */} | ||
<Header | ||
mode="primary" | ||
subtitle="SOHN — Conrad" | ||
subtitleComponent="h3" | ||
aside={ | ||
<Link> | ||
Показать все | ||
{<Icon12ChevronOutline />} | ||
</Link> | ||
} | ||
/> | ||
<Header | ||
mode="primary" | ||
subtitle="SOHN — Conrad" | ||
subtitleComponent="h3" | ||
aside={aside} | ||
/> | ||
</React.Fragment> | ||
); | ||
}; |
28 changes: 27 additions & 1 deletion
28
packages/codemods/src/transforms/v7/__tests__/__snapshots__/header.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...c/components/Header/__image_snapshots__/header-android-chromium-dark-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
.../components/Header/__image_snapshots__/header-android-chromium-light-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...kui/src/components/Header/__image_snapshots__/header-ios-webkit-dark-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ui/src/components/Header/__image_snapshots__/header-ios-webkit-light-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...src/components/Header/__image_snapshots__/header-vkcom-chromium-dark-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...rc/components/Header/__image_snapshots__/header-vkcom-chromium-light-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
.../src/components/Header/__image_snapshots__/header-vkcom-firefox-dark-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...src/components/Header/__image_snapshots__/header-vkcom-firefox-light-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...i/src/components/Header/__image_snapshots__/header-vkcom-webkit-dark-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
.../src/components/Header/__image_snapshots__/header-vkcom-webkit-light-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.