-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into usr/fengqi/exportContext
- Loading branch information
Showing
524 changed files
with
27,551 additions
and
5,528 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ | |
.yarn/ | ||
patches/ | ||
packages/nx-plugin/src/generators/**/files/ | ||
|
||
/.nx/cache | ||
/.nx/workspace-data |
26 changes: 26 additions & 0 deletions
26
.storybook/copied-from-fluentui-core/components/FluentDocsContainer.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,26 @@ | ||
import * as React from 'react'; | ||
import { DocsContainer, type DocsContextProps } from '@storybook/addon-docs'; | ||
import { webLightTheme, FluentProvider } from '@fluentui/react-components'; | ||
|
||
interface FluentDocsContainerProps { | ||
children: React.ReactNode; | ||
context: DocsContextProps; | ||
} | ||
|
||
/** | ||
* A container that wraps storybook's native docs container to add extra components to the docs experience | ||
*/ | ||
export const FluentDocsContainer = ({ | ||
children, | ||
context, | ||
}: FluentDocsContainerProps) => { | ||
return ( | ||
<FluentProvider | ||
className="sb-unstyled" | ||
style={{ backgroundColor: 'transparent' }} | ||
theme={webLightTheme} | ||
> | ||
<DocsContainer context={context}>{children}</DocsContainer> | ||
</FluentProvider> | ||
); | ||
}; |
Oops, something went wrong.