-
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.
fix(docs): Motion components storybook updates
- Loading branch information
1 parent
3d044da
commit 7ca592e
Showing
12 changed files
with
78 additions
and
6 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-motion-components-preview-27662e3f-3d93-496c-8b66-b5de8fac23de.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": "none", | ||
"comment": "fix(docs): Collapse storybook updates", | ||
"packageName": "@fluentui/react-motion-components-preview", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
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
1 change: 1 addition & 0 deletions
1
...react-components/react-motion-components-preview/library/src/components/Collapse/index.ts
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 +1,2 @@ | ||
export * from './Collapse'; | ||
export type { CollapseRuntimeParams } from './collapse-types'; |
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
19 changes: 19 additions & 0 deletions
19
...eact-components/react-motion-components-preview/stories/src/Collapse/Collapse.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,19 @@ | ||
import * as React from 'react'; | ||
import { PresenceComponentProps } from '@fluentui/react-components'; | ||
import { Collapse, CollapseRuntimeParams } from '@fluentui/react-motion-components-preview'; | ||
|
||
const LoremIpsum = React.forwardRef<HTMLDivElement, React.HTMLProps<HTMLDivElement>>((props, ref) => ( | ||
<div ref={ref} {...props}> | ||
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. '.repeat( | ||
10, | ||
)} | ||
</div> | ||
)); | ||
|
||
export const DefaultCollapse = (props: PresenceComponentProps & CollapseRuntimeParams) => { | ||
return ( | ||
<Collapse {...props}> | ||
<LoremIpsum /> | ||
</Collapse> | ||
); | ||
}; |
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
2 changes: 1 addition & 1 deletion
2
...nts/react-motion-components-preview/stories/src/Collapse/CollapseDescription.md
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
2 changes: 1 addition & 1 deletion
2
...es/react-components/react-motion-components-preview/stories/src/Collapse/index.stories.ts
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
19 changes: 19 additions & 0 deletions
19
packages/react-components/react-motion-components-preview/stories/src/Fade/Fade.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,19 @@ | ||
import * as React from 'react'; | ||
import { PresenceComponentProps } from '@fluentui/react-components'; | ||
import { Fade } from '@fluentui/react-motion-components-preview'; | ||
|
||
const LoremIpsum = React.forwardRef<HTMLDivElement, React.HTMLProps<HTMLDivElement>>((props, ref) => ( | ||
<div ref={ref} {...props}> | ||
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. '.repeat( | ||
10, | ||
)} | ||
</div> | ||
)); | ||
|
||
export const DefaultFade = (props: PresenceComponentProps) => { | ||
return ( | ||
<Fade {...props}> | ||
<LoremIpsum /> | ||
</Fade> | ||
); | ||
}; |
2 changes: 1 addition & 1 deletion
2
packages/react-components/react-motion-components-preview/stories/src/Fade/index.stories.ts
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
19 changes: 19 additions & 0 deletions
19
...ages/react-components/react-motion-components-preview/stories/src/Scale/Scale.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,19 @@ | ||
import * as React from 'react'; | ||
import { PresenceComponentProps } from '@fluentui/react-components'; | ||
import { Scale } from '@fluentui/react-motion-components-preview'; | ||
|
||
const LoremIpsum = React.forwardRef<HTMLDivElement, React.HTMLProps<HTMLDivElement>>((props, ref) => ( | ||
<div ref={ref} {...props}> | ||
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. '.repeat( | ||
10, | ||
)} | ||
</div> | ||
)); | ||
|
||
export const DefaultScale = (props: PresenceComponentProps) => { | ||
return ( | ||
<Scale {...props}> | ||
<LoremIpsum /> | ||
</Scale> | ||
); | ||
}; |
2 changes: 1 addition & 1 deletion
2
packages/react-components/react-motion-components-preview/stories/src/Scale/index.stories.ts
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