Skip to content

Commit

Permalink
Merge branch 'master' into user/mifraser/carousel-storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter committed Sep 11, 2024
2 parents 65a7a04 + c6ff402 commit e6db5fc
Show file tree
Hide file tree
Showing 343 changed files with 7,264 additions and 1,398 deletions.
174 changes: 87 additions & 87 deletions .github/CODEOWNERS

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions .storybook/docs-root.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
margin-top: 49px;
}

#storybook-docs details {
#storybook-docs details:not(.sbdocs-preview details) {
position: relative;
z-index: 99;
}

#storybook-docs .sbdocs:not(.sbdocs-preview) p {
#storybook-docs .sbdocs p:not(.sbdocs-preview p) {
font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue',
sans-serif;
font-size: 18px;
Expand All @@ -45,13 +45,13 @@
border-radius: 24px;
}

#storybook-docs .sbdocs:not(.sbdocs-preview) hr {
#storybook-docs .sbdocs hr:not(.sbdocs-preview hr) {
margin: 48px 0;
height: 0;
border-top: 1px solid #ebebeb;
}

#storybook-docs .sbdocs h2 {
#storybook-docs .sbdocs h2:not(.sbdocs-preview h2) {
font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue',
sans-serif;
font-size: 24px;
Expand All @@ -64,7 +64,7 @@
padding: 48px 0 0 0;
}

#storybook-docs .sbdocs h2 code {
#storybook-docs .sbdocs h2 code:not(.sbdocs-preview h2 code) {
border-radius: 4px;
font-size: 20px;
}
Expand Down Expand Up @@ -92,7 +92,7 @@
margin: -40px 0 0;
}

#storybook-docs .sbdocs:not(.sbdocs-preview) li {
#storybook-docs .sbdocs li:not(.sbdocs-preview li) {
font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue',
sans-serif;
font-size: 16px;
Expand All @@ -104,11 +104,11 @@
margin-top: 8px;
}

#storybook-docs .sbdocs:not(.sbdocs-preview) ul {
#storybook-docs .sbdocs ul:not(.sbdocs-preview ul) {
margin: 12px 0;
}

#storybook-docs .sbdocs-ul .sbdocs:not(.sbdocs-preview) li {
#storybook-docs .sbdocs-ul li:not(.sbdocs-preview .sbdocs-ul li) {
list-style: none;
position: relative;
}
Expand Down Expand Up @@ -276,7 +276,7 @@
line-height: 21px;
}

#storybook-docs code,
#storybook-docs code:not(.sbdocs-preview code),
#storybook-docs .docblock-argstable tbody tr td:nth-child(3) > div > span,
#storybook-docs .docblock-argstable-body > tr > td:nth-child(2) > div:nth-child(2) span,
#storybook-docs .docblock-argstable-body > tr > td:nth-child(2) > div:nth-child(1) > div > span,
Expand Down Expand Up @@ -313,7 +313,7 @@
white-space: normal;
}

#storybook-docs code {
#storybook-docs code:not(.sbdocs-preview code) {
padding: 0.1em 0.2em;
display: inline-block;
background-color: rgba(17, 16, 15, 0.1);
Expand Down Expand Up @@ -426,7 +426,7 @@ h1.fluent {
letter-spacing: -0.16px;
}

h1 .fluent-version {
h1.fluent .fluent-version {
display: block;
font-size: 24px; /* --font-size-base-600 */
line-height: 32px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
HeaderMdx,
Primary,
Stories,
type DocsContextProps,
} from '@storybook/addon-docs';
import type { SBEnumType } from '@storybook/csf';
import { makeStyles, shorthands, tokens, Link, Text } from '@fluentui/react-components';
Expand Down Expand Up @@ -135,6 +136,8 @@ export const FluentDocsPage = () => {
const primaryStory = stories[0];
const primaryStoryContext = context.getStoryContext(primaryStory);

assertStoryMetaValues(primaryStory);

const dir = primaryStoryContext.parameters?.dir ?? primaryStoryContext.globals?.[DIR_ID] ?? 'ltr';
const selectedTheme = themes.find(theme => theme.id === primaryStoryContext.globals![THEME_ID]);

Expand Down Expand Up @@ -196,3 +199,15 @@ export const FluentDocsPage = () => {
</div>
);
};

function assertStoryMetaValues(story: ReturnType<DocsContextProps['componentStories']>[number]) {
if (story.component === null) {
throw new Error(
[
'🚨 Invalid Story Meta declaration:',
`- primaryStory.component of componentId:${story.componentId} is "null"`,
'- to resolve this error, please update "component" property value in your story definition to reference a React Component or remove it if it is not needed.',
].join('\n'),
);
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: Adjust window height comparison in fractional cases.",
"packageName": "@fluentui/react-dialog",
"email": "[email protected]",
"dependentChangeType": "patch"
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e6db5fc

Please sign in to comment.