-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(PanelHeader): rename boolean props (#6277)
* feat(PanelHeader): rename boolean props * chore: review fixes Co-authored-by: Inomdzhon Mirdzhamolov <[email protected]> * chore: update readme Co-authored-by: Inomdzhon Mirdzhamolov <[email protected]> * fix: revert condition * fix: rename noVisor to float * fix: reorder migration guide * Fix warnings --------- Co-authored-by: Inomdzhon Mirdzhamolov <[email protected]>
- Loading branch information
1 parent
03d7a58
commit f7c9098
Showing
36 changed files
with
210 additions
and
188 deletions.
There are no files selected for viewing
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
..._snapshots__/modalpageheader-viewwidth-desktop-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
...snapshots__/modalpageheader-viewwidth-desktop-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
...apshots__/modalpageheader-viewwidth-desktop-ios-only-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
...pshots__/modalpageheader-viewwidth-desktop-ios-only-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
...e_snapshots__/modalpageheader-viewwidth-mobile-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
..._snapshots__/modalpageheader-viewwidth-mobile-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
...napshots__/modalpageheader-viewwidth-mobile-ios-only-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
...apshots__/modalpageheader-viewwidth-mobile-ios-only-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.
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
35 changes: 35 additions & 0 deletions
35
packages/vkui/src/components/PanelHeader/PanelHeader.e2e-playground.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import * as React from 'react'; | ||
import { ComponentPlayground, type ComponentPlaygroundProps } from '@vkui-e2e/playground-helpers'; | ||
import { Div } from '../Div/Div'; | ||
import { PanelHeader, type PanelHeaderProps } from './PanelHeader'; | ||
|
||
export const PanelHeaderPlayground = (props: ComponentPlaygroundProps) => { | ||
return ( | ||
<ComponentPlayground | ||
{...props} | ||
propSets={[ | ||
{ | ||
delimiter: ['none', 'auto', 'separator', 'spacing'], | ||
children: ['PanelHeader'], | ||
// Чтобы шапка в примерах не улетала наверх | ||
fixed: [false], | ||
$adaptivity: 'x', | ||
}, | ||
]} | ||
> | ||
{(props: PanelHeaderProps) => ( | ||
<> | ||
<div | ||
style={{ | ||
// чтобы было проще видеть разницу скриншотов | ||
border: '1px solid blue', | ||
}} | ||
> | ||
<PanelHeader {...props} /> | ||
<Div>Panel</Div> | ||
</div> | ||
</> | ||
)} | ||
</ComponentPlayground> | ||
); | ||
}; |
16 changes: 16 additions & 0 deletions
16
packages/vkui/src/components/PanelHeader/PanelHeader.e2e.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as React from 'react'; | ||
import { test } from '@vkui-e2e/test'; | ||
import { PanelHeaderPlayground } from './PanelHeader.e2e-playground'; | ||
|
||
test.use({ | ||
onlyForAppearances: ['light'], | ||
}); | ||
|
||
test('PanelHeader', async ({ | ||
mount, | ||
expectScreenshotClippedToContent, | ||
componentPlaygroundProps, | ||
}) => { | ||
await mount(<PanelHeaderPlayground {...componentPlaygroundProps} />); | ||
await expectScreenshotClippedToContent(); | ||
}); |
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
Oops, something went wrong.