-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into migrate-to-swc
- Loading branch information
Showing
236 changed files
with
3,712 additions
and
478 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
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
43 changes: 43 additions & 0 deletions
43
apps/vr-tests-react-components/src/stories/InfoLabel.stories.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,43 @@ | ||
import * as React from 'react'; | ||
|
||
import { Steps, StoryWright } from 'storywright'; | ||
import { InfoLabel } from '@fluentui/react-infobutton'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { TestWrapperDecoratorFixedWidth } from '../utilities/TestWrapperDecorator'; | ||
|
||
storiesOf('InfoLabel', module) | ||
.addDecorator(TestWrapperDecoratorFixedWidth) | ||
.addDecorator(story => ( | ||
<StoryWright steps={new Steps().snapshot('rest', { cropTo: '.testWrapper' }).end()}>{story()}</StoryWright> | ||
)) | ||
.addStory('default', () => <InfoLabel info="Test">This is an info label</InfoLabel>, { | ||
includeHighContrast: true, | ||
includeDarkMode: true, | ||
includeRtl: true, | ||
}) | ||
.addStory('wrap', () => ( | ||
<InfoLabel info="Test"> | ||
This is a very long info label that should wrap to multiple lines and put the info button on the last line | ||
</InfoLabel> | ||
)) | ||
.addStory('size:small', () => ( | ||
<InfoLabel size="small" info="Test"> | ||
This is a small info label | ||
</InfoLabel> | ||
)) | ||
.addStory('size:large', () => ( | ||
<InfoLabel size="large" info="Test"> | ||
This is a large info label | ||
</InfoLabel> | ||
)) | ||
.addStory( | ||
'required', | ||
() => ( | ||
<InfoLabel required info="Test"> | ||
This is a required info label | ||
</InfoLabel> | ||
), | ||
{ | ||
includeRtl: true, | ||
}, | ||
); |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-eslint-plugin-9788e3e7-808d-4201-b04e-cead71f27b9e.json
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,7 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "feat: rule to ban usage of instanceof HTMLElement", | ||
"packageName": "@fluentui/eslint-plugin", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-utilities-851262b0-ac71-4e89-ae48-e53733715e8a.json
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,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "chore: exports isHTMLElement as public", | ||
"packageName": "@fluentui/react-utilities", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
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
Oops, something went wrong.