Skip to content

Commit

Permalink
Rename @uifabric/experiments to @fluentui/react-experiments (#15566)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 authored Oct 17, 2020
1 parent b4472b1 commit 7499288
Show file tree
Hide file tree
Showing 450 changed files with 268 additions and 234 deletions.
10 changes: 5 additions & 5 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ packages/react-internal/src/components/TextField/ @ecraig12345
packages/react-internal/src/components/Tooltip/ @micahgodbolt

## Experiments
packages/experiments/src/components/Pagination/ @caradong
packages/experiments/src/components/Signals/ @ThomasMichon
packages/experiments/src/components/Tile/ @ThomasMichon
packages/experiments/src/components/TileList/ @ThomasMichon
packages/experiments/src/components/Toggle/ @khmakoto
packages/react-experiments/src/components/Pagination/ @caradong
packages/react-experiments/src/components/Signals/ @ThomasMichon
packages/react-experiments/src/components/Tile/ @ThomasMichon
packages/react-experiments/src/components/TileList/ @ThomasMichon
packages/react-experiments/src/components/Toggle/ @khmakoto
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/new_component.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ See https://github.com/microsoft/fluentui/wiki/Component-Design#build-many-small

### Intended package/s

<!-- If this is a prototype component, start in @uifabric/experiments. If you feel that there is a new package required, please indicate the requested name here. -->
<!-- If this is a prototype component, start in @fluentui/react-experiments. If you feel that there is a new package required, please indicate the requested name here. -->

## Component code

Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"label": "Typescript (experiments) watch",
"type": "process",
"command": "node",
"args": ["./node_modules/typescript/bin/tsc", "-p", "packages/experiments/tsconfig.json", "-w", "--noEmit"],
"args": ["./node_modules/typescript/bin/tsc", "-p", "packages/react-experiments/tsconfig.json", "-w", "--noEmit"],
"problemMatcher": "$tsc",
"group": {
"kind": "build",
Expand Down
2 changes: 1 addition & 1 deletion apps/perf-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Performance testing with flamegraphs is a feature that runs on all PRs opened ag

## Sample Performance Test Results Table

Linked from [#9516](https://github.com/microsoft/fluentui/pull/9516#issuecomment-503795745), which made perf improvements to "New" Button components in `packages/experiments`, is a sample perf test comment:
Linked from [#9516](https://github.com/microsoft/fluentui/pull/9516#issuecomment-503795745), which made perf improvements to "New" Button components in `packages/react-experiments`, is a sample perf test comment:

Component Perf Analysis:

Expand Down
2 changes: 1 addition & 1 deletion apps/pr-deploy-site/just.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const dependencies = [
'@fluentui/react-toggle',
'@fluentui/react-charting',
'@uifabric/date-time',
'@uifabric/experiments',
'@fluentui/react-experiments',
'@fluentui/public-docsite',
'@fluentui/public-docsite-resources',
'@fluentui/react',
Expand Down
4 changes: 2 additions & 2 deletions apps/pr-deploy-site/pr-deploy-site.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ const siteInfo = [
title: 'Toggle',
},
{
package: '@uifabric/experiments',
link: './experiments/demo/index.html',
package: '@fluentui/react-experiments',
link: './react-experiments/demo/index.html',
icon: 'TestBeaker',
title: 'Experiments',
},
Expand Down
2 changes: 1 addition & 1 deletion apps/public-docsite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@microsoft/load-themed-styles": "^1.10.26",
"@uifabric/api-docs": "^7.5.18",
"@uifabric/example-app-base": "^7.15.18",
"@uifabric/experiments": "^7.33.1",
"@fluentui/react-experiments": "^7.33.1",
"@fluentui/public-docsite-resources": "^7.8.18",
"@uifabric/file-type-icons": "^7.6.9",
"@uifabric/icons": "^7.5.8",
Expand Down
2 changes: 1 addition & 1 deletion apps/public-docsite/src/components/Nav/Nav.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { CollapsibleSection } from '@uifabric/experiments';
import { CollapsibleSection } from '@fluentui/react-experiments';
import {
css,
FocusZone,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ When specifying `size`, stick to these default sizes so the images appear as int

#### References

Here's a [simple demo](https://github.com/microsoft/fluentui/blob/master/packages/react-examples/src/experiments/FileTypeIcon/FileTypeIcon.Basic.Example.tsx) of how to use the [`@uifabric/file-type-icons` package](https://github.com/microsoft/fluentui/tree/master/packages/file-type-icons).  The code for the main method you'll use ([`getFileTypeIconProps`](https://github.com/microsoft/fluentui/blob/master/packages/file-type-icons/src/getFileTypeIconProps.ts)) is also well-commented. The icons are kept up-to-date on Fluent UI's CDN, so we recommend not copying or referencing these assets directly.
Here's a [simple demo](https://github.com/microsoft/fluentui/blob/master/packages/react-examples/src/react-experiments/FileTypeIcon/FileTypeIcon.Basic.Example.tsx) of how to use the [`@uifabric/file-type-icons` package](https://github.com/microsoft/fluentui/tree/master/packages/file-type-icons).  The code for the main method you'll use ([`getFileTypeIconProps`](https://github.com/microsoft/fluentui/blob/master/packages/file-type-icons/src/getFileTypeIconProps.ts)) is also well-commented. The icons are kept up-to-date on Fluent UI's CDN, so we recommend not copying or referencing these assets directly.

#### Map icons to extensions - [TypeScript mapping file](https://github.com/microsoft/fluentui/blob/master/packages/file-type-icons/src/FileTypeIconMap.ts)

Expand Down
2 changes: 1 addition & 1 deletion apps/vr-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@uifabric/build": "^7.0.0",
"@uifabric/date-time": "^7.17.16",
"@uifabric/example-data": "^7.1.5",
"@uifabric/experiments": "^7.33.1",
"@fluentui/react-experiments": "^7.33.1",
"@uifabric/react-cards": "^0.113.3",
"@uifabric/react-hooks": "^7.13.5",
"@uifabric/set-version": "^7.0.23",
Expand Down
2 changes: 1 addition & 1 deletion apps/vr-tests/src/stories/Card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import Screener from 'screener-storybook/src/screener';
import { storiesOf } from '@storybook/react';
import { FabricDecoratorFullWidth } from '../utilities/index';
import { Button, IButtonStyles, IButtonTokens } from '@uifabric/experiments';
import { Button, IButtonStyles, IButtonTokens } from '@fluentui/react-experiments';
import {
Card,
ICardStyles,
Expand Down
2 changes: 1 addition & 1 deletion apps/vr-tests/src/stories/FolderCover.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
getFolderCoverLayout,
renderFolderCoverWithLayout,
SharedSignal,
} from '@uifabric/experiments';
} from '@fluentui/react-experiments';
import Screener from 'screener-storybook/src/screener';
import { storiesOf } from '@storybook/react';
import { ISize, fitContentToBounds, Fabric } from '@fluentui/react';
Expand Down
2 changes: 1 addition & 1 deletion apps/vr-tests/src/stories/Signals.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
ReadOnlySignal,
FollowedSignal,
NotFollowedSignal,
} from '@uifabric/experiments';
} from '@fluentui/react-experiments';
import Screener from 'screener-storybook/src/screener';
import { storiesOf } from '@storybook/react';
import { FabricDecorator } from '../utilities/index';
Expand Down
2 changes: 1 addition & 1 deletion apps/vr-tests/src/stories/Tile.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
NewSignal,
SharedSignal,
ITileBackgroundProps,
} from '@uifabric/experiments';
} from '@fluentui/react-experiments';
import Screener from 'screener-storybook/src/screener';
import { storiesOf } from '@storybook/react';
import { ISize, fitContentToBounds, Fabric } from '@fluentui/react';
Expand Down
2 changes: 1 addition & 1 deletion apps/vr-tests/src/utilities/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { initializeIcons } from '@fluentui/react/lib/Icons';
import { initializeFolderCovers } from '@uifabric/experiments/lib/FolderCover';
import { initializeFolderCovers } from '@fluentui/react-experiments/lib/FolderCover';

initializeIcons();
initializeFolderCovers();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "minor",
"comment": "Rename @uifabric/experiments to @fluentui/react-experiments",
"packageName": "@fluentui/react-experiments",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2020-10-16T22:18:21.829Z"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "patch",
"comment": "Remove FluentStyles.",
"packageName": "@uifabric/experiments",
"packageName": "@fluentui/react-experiments",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2020-09-29T16:14:28.929Z"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "minor",
"comment": "Rename office-ui-fabric-react package and update references",
"packageName": "@uifabric/experiments",
"packageName": "@fluentui/react-experiments",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2020-09-30T20:43:05.341Z"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "patch",
"comment": "Fix imports to reference physical files.",
"packageName": "@uifabric/experiments",
"packageName": "@fluentui/react-experiments",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2020-10-02T00:52:29.273Z"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "patch",
"comment": "Update import paths from foundation package.",
"packageName": "@uifabric/experiments",
"packageName": "@fluentui/react-experiments",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2020-10-03T00:03:06.469Z"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "patch",
"comment": "Don't publish demo app; remove unused example-app-base dev dependency",
"packageName": "@uifabric/experiments",
"packageName": "@fluentui/react-experiments",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2020-10-07T18:47:26.529Z"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "patch",
"comment": "Remove unneeded dep on azure-themes",
"packageName": "@uifabric/experiments",
"packageName": "@fluentui/react-experiments",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2020-10-09T23:57:57.552Z"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "patch",
"comment": "Callout: Move to react-internal",
"packageName": "@uifabric/experiments",
"packageName": "@fluentui/react-experiments",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2020-10-10T03:28:40.639Z"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "patch",
"comment": "Remove unneeded package dependencies.",
"packageName": "@uifabric/experiments",
"packageName": "@fluentui/react-experiments",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2020-10-10T04:09:40.887Z"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "none",
"comment": "Update reference to experiments in test",
"packageName": "@uifabric/tsx-editor",
"email": "[email protected]",
"dependentChangeType": "none",
"date": "2020-10-16T22:18:27.237Z"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"start:legacy": "yarn workspace @uifabric/public-docsite-resources start",
"start": "node scripts/start.js",
"start:northstar": "yarn workspace @fluentui/docs start",
"start-exp": "yarn workspace @uifabric/experiments start",
"start-exp": "yarn workspace @fluentui/react-experiments start",
"stats:build": "gulp stats",
"stats:save": "gulp stats:save",
"syncpack:list": "syncpack list-mismatches",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@uifabric/date-time": "^7.17.16",
"@uifabric/example-app-base": "^7.15.18",
"@uifabric/example-data": "^7.1.5",
"@uifabric/experiments": "^7.33.1",
"@fluentui/react-experiments": "^7.33.1",
"@uifabric/file-type-icons": "^7.6.9",
"@uifabric/foundation": "^7.9.9",
"@uifabric/icons": "^7.5.8",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Button } from '@uifabric/experiments';
import { Button } from '@fluentui/react-experiments';
import { Icon, CommandBar, Stack, Text } from '@fluentui/react';

const tokens = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Button, MenuButton, IMenuButtonProps, SplitButton } from '@uifabric/experiments';
import { Button, MenuButton, IMenuButtonProps, SplitButton } from '@fluentui/react-experiments';
import { Stack, IStackTokens } from '@fluentui/react';
import { buildKeytipConfigMap, IKeytipConfig, IKeytipConfigMap } from '@fluentui/react/lib/Keytips';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
IMenuButtonStyles,
IMenuButtonTokens,
MenuButton,
} from '@uifabric/experiments/lib/MenuButton';
import { ISplitButtonProps, ISplitButtonTokens, SplitButton } from '@uifabric/experiments/lib/SplitButton';
} from '@fluentui/react-experiments/lib/MenuButton';
import { ISplitButtonProps, ISplitButtonTokens, SplitButton } from '@fluentui/react-experiments/lib/SplitButton';

interface IRibbonMenuButtonProps extends IMenuButtonProps {
vertical?: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Button, MenuButton, IMenuButtonProps } from '@uifabric/experiments';
import { Button, MenuButton, IMenuButtonProps } from '@fluentui/react-experiments';
import { createTheme, mergeStyles, Stack } from '@fluentui/react';

const testTheme = createTheme({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Button } from '@uifabric/experiments';
import { Button } from '@fluentui/react-experiments';
import { Stack, IStackTokens } from '@fluentui/react';

export interface IButtonToggleExampleState {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Button } from '@uifabric/experiments';
import { Button } from '@fluentui/react-experiments';
import { createTheme, Stack } from '@fluentui/react';

const tokens = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
MenuButton,
SplitButton,
ISplitButtonProps,
} from '@uifabric/experiments';
} from '@fluentui/react-experiments';

const tokens = {
sectionStack: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import { ButtonToggleExample } from './Button.Toggle.Example';
import { ButtonTokensExample } from './Button.Tokens.Example';
import { ButtonVariantsExample } from './Button.Variants.Example';

const ButtonExampleCode = require('!raw-loader!@fluentui/react-examples/src/experiments/Button/Button.Example.tsx') as string;
const MenuButtonExampleCode = require('!raw-loader!@fluentui/react-examples/src/experiments/Button/MenuButton/MenuButton.Example.tsx') as string;
const SplitButtonExampleCode = require('!raw-loader!@fluentui/react-examples/src/experiments/Button/SplitButton/SplitButton.Example.tsx') as string;
const ButtonKeytipsExampleCode = require('!raw-loader!@fluentui/react-examples/src/experiments/Button/Button.Keytips.Example.tsx') as string;
const ButtonSlotsExampleCode = require('!raw-loader!@fluentui/react-examples/src/experiments/Button/Button.Slots.Example.tsx') as string;
const ButtonStylesExampleCode = require('!raw-loader!@fluentui/react-examples/src/experiments/Button/Button.Styles.Example.tsx') as string;
const ButtonToggleExampleCode = require('!raw-loader!@fluentui/react-examples/src/experiments/Button/Button.Toggle.Example.tsx') as string;
const ButtonTokensExampleCode = require('!raw-loader!@fluentui/react-examples/src/experiments/Button/Button.Tokens.Example.tsx') as string;
const ButtonVariantsExampleCode = require('!raw-loader!@fluentui/react-examples/src/experiments/Button/Button.Variants.Example.tsx') as string;
const ButtonExampleCode = require('!raw-loader!@fluentui/react-examples/src/react-experiments/Button/Button.Example.tsx') as string;
const MenuButtonExampleCode = require('!raw-loader!@fluentui/react-examples/src/react-experiments/Button/MenuButton/MenuButton.Example.tsx') as string;
const SplitButtonExampleCode = require('!raw-loader!@fluentui/react-examples/src/react-experiments/Button/SplitButton/SplitButton.Example.tsx') as string;
const ButtonKeytipsExampleCode = require('!raw-loader!@fluentui/react-examples/src/react-experiments/Button/Button.Keytips.Example.tsx') as string;
const ButtonSlotsExampleCode = require('!raw-loader!@fluentui/react-examples/src/react-experiments/Button/Button.Slots.Example.tsx') as string;
const ButtonStylesExampleCode = require('!raw-loader!@fluentui/react-examples/src/react-experiments/Button/Button.Styles.Example.tsx') as string;
const ButtonToggleExampleCode = require('!raw-loader!@fluentui/react-examples/src/react-experiments/Button/Button.Toggle.Example.tsx') as string;
const ButtonTokensExampleCode = require('!raw-loader!@fluentui/react-examples/src/react-experiments/Button/Button.Tokens.Example.tsx') as string;
const ButtonVariantsExampleCode = require('!raw-loader!@fluentui/react-examples/src/react-experiments/Button/Button.Variants.Example.tsx') as string;

export class ButtonPage extends React.Component<IComponentDemoPageProps, {}> {
public render(): JSX.Element {
Expand Down Expand Up @@ -63,13 +63,13 @@ export class ButtonPage extends React.Component<IComponentDemoPageProps, {}> {
propertiesTables={
<PropertiesTableSet
sources={[
require<string>('!raw-loader!@uifabric/experiments/src/components/Button/Button.types.tsx'),
require<string>('!raw-loader!@fluentui/react-experiments/src/components/Button/Button.types.tsx'),
require<
string
>('!raw-loader!@uifabric/experiments/src/components/Button/MenuButton/MenuButton.types.tsx'),
>('!raw-loader!@fluentui/react-experiments/src/components/Button/MenuButton/MenuButton.types.tsx'),
require<
string
>('!raw-loader!@uifabric/experiments/src/components/Button/SplitButton/SplitButton.types.tsx'),
>('!raw-loader!@fluentui/react-experiments/src/components/Button/SplitButton/SplitButton.types.tsx'),
]}
/>
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { MenuButton, IMenuButtonProps } from '@uifabric/experiments';
import { MenuButton, IMenuButtonProps } from '@fluentui/react-experiments';
import { Stack, Text } from '@fluentui/react';

const menuProps: IMenuButtonProps['menu'] = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { SplitButton, ISplitButtonProps } from '@uifabric/experiments';
import { SplitButton, ISplitButtonProps } from '@fluentui/react-experiments';
import { Stack } from '@fluentui/react';

const menuProps: ISplitButtonProps['menu'] = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Chiclet, ChicletSize } from '@uifabric/experiments/lib/Chiclet';
import { Chiclet, ChicletSize } from '@fluentui/react-experiments/lib/Chiclet';

const SAMPLE_URL = 'https://contoso.sharepoint.com';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Chiclet, ChicletSize } from '@uifabric/experiments';
import { Chiclet, ChicletSize } from '@fluentui/react-experiments';
import { Breadcrumb, IBreadcrumbItem } from '@fluentui/react/lib/Breadcrumb';
import { Icon } from '@fluentui/react/lib/Icon';
import { TooltipHost, TooltipOverflowMode } from '@fluentui/react/lib/Tooltip';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Chiclet, ChicletSize } from '@uifabric/experiments';
import { Chiclet, ChicletSize } from '@fluentui/react-experiments';
import { IButtonProps, IconButton } from '@fluentui/react/lib/Button';
import { Text } from '@fluentui/react/lib/Text';
import { mergeStyles, FontWeights } from '@fluentui/react/lib/Styling';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Chiclet, ChicletSize } from '@uifabric/experiments/lib/Chiclet';
import { Chiclet, ChicletSize } from '@fluentui/react-experiments/lib/Chiclet';

const SAMPLE_URL = 'https://contoso.sharepoint.com';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Chiclet, ChicletSize } from '@uifabric/experiments';
import { Chiclet, ChicletSize } from '@fluentui/react-experiments';

const SAMPLE_URL = 'https://contoso.sharepoint.com';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Chiclet, ChicletSize } from '@uifabric/experiments/lib/Chiclet';
import { Chiclet, ChicletSize } from '@fluentui/react-experiments/lib/Chiclet';
import { IButtonProps, IconButton } from '@fluentui/react/lib/Button';
import { Icon, IIconProps } from '@fluentui/react/lib/Icon';
import { Text } from '@fluentui/react/lib/Text';
Expand Down
Loading

0 comments on commit 7499288

Please sign in to comment.