Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove relative imports within stories which are invalid for creating 'show docs' and circular dep imports from cypress files #31087

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import * as React from 'react';
import { Tree, TreeItem, TreeItemLayout, TreeItemValue } from '@fluentui/react-components';
import {
Tree,
TreeItem,
TreeItemLayout,
TreeItemValue,
TreeOpenChangeData,
TreeOpenChangeEvent,
} from '@fluentui/react-components';
import { AddSquare16Regular, SubtractSquare16Regular } from '@fluentui/react-icons';
import { TreeOpenChangeData, TreeOpenChangeEvent } from './../../src/Tree';

export const ExpandIcon = () => {
const [openItems, setOpenItems] = React.useState<TreeItemValue[]>([]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const Dynamic = () => {
const [flag, toggleFlag] = React.useState(false);
const styles = useStyles();
const childLength = 1000;
const timeoutRef = useRef<NodeJS.Timeout>();
const timeoutRef = useRef<ReturnType<typeof setTimeout>>();

React.useEffect(() => {
updateTimeout();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Virtualizer } from '../../src/Virtualizer';
import { Virtualizer } from '@fluentui/react-components/unstable';
import descriptionMd from './VirtualizerDescription.md';

export { Default } from './Default.stories';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react';
import { VirtualizerScrollView } from '@fluentui/react-components/unstable';
import type { ScrollToInterface } from '@fluentui/react-components/unstable';
import { Text, Input, makeStyles } from '@fluentui/react-components';
import { Button } from '@fluentui/react-components';
import { ScrollToInterface } from '../../src/Utilities';

const useStyles = makeStyles({
child: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VirtualizerScrollView } from '../../src/VirtualizerScrollView';
import { VirtualizerScrollView } from '@fluentui/react-components/unstable';
import descriptionMd from './VirtualizerScrollViewDescription.md';

export { Default } from './Default.stories';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';
import { VirtualizerScrollViewDynamic } from '@fluentui/react-components/unstable';
import type { ScrollToInterface } from '@fluentui/react-components/unstable';
import type { VirtualizerDataRef } from '@fluentui/react-virtualizer';
import { Button, Input, makeStyles, Text } from '@fluentui/react-components';
import { useEffect } from 'react';
import { ScrollToInterface } from '../../src/Utilities';
import { VirtualizerDataRef } from '../../src/Virtualizer';

const useStyles = makeStyles({
child: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VirtualizerScrollViewDynamic } from '../../src/VirtualizerScrollViewDynamic';
import { VirtualizerScrollViewDynamic } from '@fluentui/react-components/unstable';
import descriptionMd from './VirtualizerScrollViewDynamicDescription.md';

export { AutoMeasure } from './AutoMeasure.stories';
Expand Down
Loading