From 178cb271cab9a9df26f04f247f345e375429f42a Mon Sep 17 00:00:00 2001 From: Emma Jiang Date: Fri, 7 Jul 2023 14:56:57 -0700 Subject: [PATCH 1/5] package update --- packages/react-components/react-search/package.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/react-components/react-search/package.json b/packages/react-components/react-search/package.json index ba4e33f202962b..6760674b5c0115 100644 --- a/packages/react-components/react-search/package.json +++ b/packages/react-components/react-search/package.json @@ -1,7 +1,6 @@ { "name": "@fluentui/react-search", - "version": "9.0.0-alpha.0", - "private": true, + "version": "0.0.0", "description": "Search input for Fluent UI v9", "main": "lib-commonjs/index.js", "module": "lib/index.js", @@ -50,8 +49,7 @@ "beachball": { "disallowedChangeTypes": [ "major", - "minor", - "patch" + "prerelease" ] }, "exports": { From 56a8743264d18579b17cafa4f24d49430873c2eb Mon Sep 17 00:00:00 2001 From: Emma Jiang Date: Fri, 7 Jul 2023 15:00:48 -0700 Subject: [PATCH 2/5] move to unstable --- apps/public-docsite-v9/.storybook/main.js | 1 + ...-react-search-9d777dec-b4fc-4d78-81c4-501df1872ab2.json | 7 +++++++ scripts/storybook/src/utils.js | 1 + 3 files changed, 9 insertions(+) create mode 100644 change/@fluentui-react-search-9d777dec-b4fc-4d78-81c4-501df1872ab2.json diff --git a/apps/public-docsite-v9/.storybook/main.js b/apps/public-docsite-v9/.storybook/main.js index a57e9a915e54d5..eff04558563025 100644 --- a/apps/public-docsite-v9/.storybook/main.js +++ b/apps/public-docsite-v9/.storybook/main.js @@ -15,6 +15,7 @@ module.exports = /** @type {Omit { From 648414339be8ead38a31793b4f86b3d4d9d6e910 Mon Sep 17 00:00:00 2001 From: Emma Jiang Date: Fri, 7 Jul 2023 15:08:35 -0700 Subject: [PATCH 3/5] update package ver --- apps/vr-tests-react-components/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/vr-tests-react-components/package.json b/apps/vr-tests-react-components/package.json index 8db091ca13fabc..18554ad8e37458 100644 --- a/apps/vr-tests-react-components/package.json +++ b/apps/vr-tests-react-components/package.json @@ -46,7 +46,7 @@ "@fluentui/react-progress": "^9.1.20", "@fluentui/react-provider": "^9.7.8", "@fluentui/react-radio": "^9.1.23", - "@fluentui/react-search": "9.0.0-alpha.0", + "@fluentui/react-search": "0.0.0", "@fluentui/react-select": "^9.1.20", "@fluentui/react-shared-contexts": "^9.6.0", "@fluentui/react-skeleton": "^9.0.8", From a2ed2d051a09a1608eed5e39face539c79d75826 Mon Sep 17 00:00:00 2001 From: Emma Jiang Date: Fri, 7 Jul 2023 18:23:40 -0700 Subject: [PATCH 4/5] rename to react-search-preview --- .github/CODEOWNERS | 2 +- apps/public-docsite-v9/.storybook/main.js | 2 +- apps/vr-tests-react-components/package.json | 2 +- .../src/stories/SearchBox.stories.tsx | 2 +- ...-9d777dec-b4fc-4d78-81c4-501df1872ab2.json | 2 +- .../.babelrc.json | 0 .../.eslintrc.json | 0 .../.npmignore | 0 .../.storybook/main.js | 0 .../.storybook/preview.js | 0 .../.storybook/tsconfig.json | 0 .../.swcrc | 0 .../LICENSE | 2 +- .../README.md | 4 +- .../config/api-extractor.json | 0 .../config/tests.js | 0 .../docs/MIGRATION.md | 0 .../docs/Spec.md | 2 +- .../etc/react-search-preview.api.md | 50 +++++++++++++++++++ .../etc/react-search.api.md | 2 +- .../jest.config.js | 2 +- .../just.config.ts | 0 .../package.json | 2 +- .../project.json | 4 +- .../src/SearchBox.ts | 0 .../components/SearchBox/SearchBox.test.tsx | 0 .../src/components/SearchBox/SearchBox.tsx | 0 .../components/SearchBox/SearchBox.types.ts | 0 .../__snapshots__/SearchBox.test.tsx.snap | 0 .../src/components/SearchBox/index.ts | 0 .../components/SearchBox/renderSearchBox.tsx | 0 .../src/components/SearchBox/useSearchBox.tsx | 0 .../SearchBox/useSearchBoxStyles.styles.ts | 0 .../src/index.ts | 0 .../src/testing/isConformant.ts | 0 .../SearchBox/SearchBoxAppearance.stories.tsx | 2 +- .../SearchBox/SearchBoxBestPractices.md | 0 .../SearchBoxContentBeforeAfter.stories.tsx | 2 +- .../SearchBox/SearchBoxControlled.stories.tsx | 4 +- .../SearchBox/SearchBoxDefault.stories.tsx | 4 +- .../stories/SearchBox/SearchBoxDescription.md | 0 .../SearchBox/SearchBoxDisabled.stories.tsx | 2 +- .../SearchBoxPlaceholder.stories.tsx | 2 +- .../SearchBox/SearchBoxSize.stories.tsx | 2 +- .../stories/SearchBox/index.stories.tsx | 2 +- .../tsconfig.json | 0 .../tsconfig.lib.json | 0 .../tsconfig.spec.json | 0 scripts/storybook/src/utils.js | 2 +- tsconfig.base.all.json | 2 +- tsconfig.base.json | 2 +- 51 files changed, 77 insertions(+), 27 deletions(-) rename packages/react-components/{react-search => react-search-preview}/.babelrc.json (100%) rename packages/react-components/{react-search => react-search-preview}/.eslintrc.json (100%) rename packages/react-components/{react-search => react-search-preview}/.npmignore (100%) rename packages/react-components/{react-search => react-search-preview}/.storybook/main.js (100%) rename packages/react-components/{react-search => react-search-preview}/.storybook/preview.js (100%) rename packages/react-components/{react-search => react-search-preview}/.storybook/tsconfig.json (100%) rename packages/react-components/{react-search => react-search-preview}/.swcrc (100%) rename packages/react-components/{react-search => react-search-preview}/LICENSE (97%) rename packages/react-components/{react-search => react-search-preview}/README.md (92%) rename packages/react-components/{react-search => react-search-preview}/config/api-extractor.json (100%) rename packages/react-components/{react-search => react-search-preview}/config/tests.js (100%) rename packages/react-components/{react-search => react-search-preview}/docs/MIGRATION.md (100%) rename packages/react-components/{react-search => react-search-preview}/docs/Spec.md (99%) create mode 100644 packages/react-components/react-search-preview/etc/react-search-preview.api.md rename packages/react-components/{react-search => react-search-preview}/etc/react-search.api.md (96%) rename packages/react-components/{react-search => react-search-preview}/jest.config.js (91%) rename packages/react-components/{react-search => react-search-preview}/just.config.ts (100%) rename packages/react-components/{react-search => react-search-preview}/package.json (97%) rename packages/react-components/{react-search => react-search-preview}/project.json (59%) rename packages/react-components/{react-search => react-search-preview}/src/SearchBox.ts (100%) rename packages/react-components/{react-search => react-search-preview}/src/components/SearchBox/SearchBox.test.tsx (100%) rename packages/react-components/{react-search => react-search-preview}/src/components/SearchBox/SearchBox.tsx (100%) rename packages/react-components/{react-search => react-search-preview}/src/components/SearchBox/SearchBox.types.ts (100%) rename packages/react-components/{react-search => react-search-preview}/src/components/SearchBox/__snapshots__/SearchBox.test.tsx.snap (100%) rename packages/react-components/{react-search => react-search-preview}/src/components/SearchBox/index.ts (100%) rename packages/react-components/{react-search => react-search-preview}/src/components/SearchBox/renderSearchBox.tsx (100%) rename packages/react-components/{react-search => react-search-preview}/src/components/SearchBox/useSearchBox.tsx (100%) rename packages/react-components/{react-search => react-search-preview}/src/components/SearchBox/useSearchBoxStyles.styles.ts (100%) rename packages/react-components/{react-search => react-search-preview}/src/index.ts (100%) rename packages/react-components/{react-search => react-search-preview}/src/testing/isConformant.ts (100%) rename packages/react-components/{react-search => react-search-preview}/stories/SearchBox/SearchBoxAppearance.stories.tsx (97%) rename packages/react-components/{react-search => react-search-preview}/stories/SearchBox/SearchBoxBestPractices.md (100%) rename packages/react-components/{react-search => react-search-preview}/stories/SearchBox/SearchBoxContentBeforeAfter.stories.tsx (97%) rename packages/react-components/{react-search => react-search-preview}/stories/SearchBox/SearchBoxControlled.stories.tsx (88%) rename packages/react-components/{react-search => react-search-preview}/stories/SearchBox/SearchBoxDefault.stories.tsx (89%) rename packages/react-components/{react-search => react-search-preview}/stories/SearchBox/SearchBoxDescription.md (100%) rename packages/react-components/{react-search => react-search-preview}/stories/SearchBox/SearchBoxDisabled.stories.tsx (85%) rename packages/react-components/{react-search => react-search-preview}/stories/SearchBox/SearchBoxPlaceholder.stories.tsx (90%) rename packages/react-components/{react-search => react-search-preview}/stories/SearchBox/SearchBoxSize.stories.tsx (94%) rename packages/react-components/{react-search => react-search-preview}/stories/SearchBox/index.stories.tsx (92%) rename packages/react-components/{react-search => react-search-preview}/tsconfig.json (100%) rename packages/react-components/{react-search => react-search-preview}/tsconfig.lib.json (100%) rename packages/react-components/{react-search => react-search-preview}/tsconfig.spec.json (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 294fd04c9351c1..b7ee59b61aa2e0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -239,7 +239,7 @@ packages/react-components/react-storybook-addon-codesandbox @microsoft/fluentui- packages/react-components/babel-preset-storybook-full-source @microsoft/fluentui-react-build packages/react-components/react-jsx-runtime @microsoft/teams-prg packages/react-components/react-toast @microsoft/teams-prg -packages/react-components/react-search @microsoft/cxe-coastal +packages/react-components/react-search-preview @microsoft/cxe-coastal packages/react-components/react-colorpicker-compat @microsoft/cxe-red @sopranopillow # <%= NX-CODEOWNER-PLACEHOLDER %> diff --git a/apps/public-docsite-v9/.storybook/main.js b/apps/public-docsite-v9/.storybook/main.js index eff04558563025..ca5a60b1ed7b52 100644 --- a/apps/public-docsite-v9/.storybook/main.js +++ b/apps/public-docsite-v9/.storybook/main.js @@ -15,7 +15,7 @@ module.exports = /** @type {Omit Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +/// + +import type { ComponentProps } from '@fluentui/react-utilities'; +import type { ComponentState } from '@fluentui/react-utilities'; +import type { ForwardRefComponent } from '@fluentui/react-utilities'; +import { Input } from '@fluentui/react-input'; +import { InputState } from '@fluentui/react-input'; +import * as React_2 from 'react'; +import type { Slot } from '@fluentui/react-utilities'; +import type { SlotClassNames } from '@fluentui/react-utilities'; + +// @public +export const renderSearchBox_unstable: (state: SearchBoxState) => JSX.Element; + +// @public +export const SearchBox: ForwardRefComponent; + +// @public (undocumented) +export const searchBoxClassNames: SlotClassNames; + +// @public +export type SearchBoxProps = ComponentProps; + +// @public (undocumented) +export type SearchBoxSlots = { + root: NonNullable>; + dismiss?: Slot<'span'>; + contentAfter?: Slot<'span'>; +}; + +// @public +export type SearchBoxState = ComponentState & Required> & Required> & { + focused: boolean; +}; + +// @public +export const useSearchBox_unstable: (props: SearchBoxProps, ref: React_2.Ref) => SearchBoxState; + +// @public +export const useSearchBoxStyles_unstable: (state: SearchBoxState) => SearchBoxState; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-components/react-search/etc/react-search.api.md b/packages/react-components/react-search-preview/etc/react-search.api.md similarity index 96% rename from packages/react-components/react-search/etc/react-search.api.md rename to packages/react-components/react-search-preview/etc/react-search.api.md index 10d58a3c439ee9..112317a3c79986 100644 --- a/packages/react-components/react-search/etc/react-search.api.md +++ b/packages/react-components/react-search-preview/etc/react-search.api.md @@ -1,4 +1,4 @@ -## API Report File for "@fluentui/react-search" +## API Report File for "@fluentui/react-search-preview" > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). diff --git a/packages/react-components/react-search/jest.config.js b/packages/react-components/react-search-preview/jest.config.js similarity index 91% rename from packages/react-components/react-search/jest.config.js rename to packages/react-components/react-search-preview/jest.config.js index f7a3033d110482..fe8c99de1e2792 100644 --- a/packages/react-components/react-search/jest.config.js +++ b/packages/react-components/react-search-preview/jest.config.js @@ -4,7 +4,7 @@ * @type {import('@jest/types').Config.InitialOptions} */ module.exports = { - displayName: 'react-search', + displayName: 'react-search-preview', preset: '../../../jest.preset.js', transform: { '^.+\\.tsx?$': [ diff --git a/packages/react-components/react-search/just.config.ts b/packages/react-components/react-search-preview/just.config.ts similarity index 100% rename from packages/react-components/react-search/just.config.ts rename to packages/react-components/react-search-preview/just.config.ts diff --git a/packages/react-components/react-search/package.json b/packages/react-components/react-search-preview/package.json similarity index 97% rename from packages/react-components/react-search/package.json rename to packages/react-components/react-search-preview/package.json index 6760674b5c0115..15caf963a6b315 100644 --- a/packages/react-components/react-search/package.json +++ b/packages/react-components/react-search-preview/package.json @@ -1,5 +1,5 @@ { - "name": "@fluentui/react-search", + "name": "@fluentui/react-search-preview", "version": "0.0.0", "description": "Search input for Fluent UI v9", "main": "lib-commonjs/index.js", diff --git a/packages/react-components/react-search/project.json b/packages/react-components/react-search-preview/project.json similarity index 59% rename from packages/react-components/react-search/project.json rename to packages/react-components/react-search-preview/project.json index b9b4542817dd5b..0298d645a39e8b 100644 --- a/packages/react-components/react-search/project.json +++ b/packages/react-components/react-search-preview/project.json @@ -1,8 +1,8 @@ { - "name": "@fluentui/react-search", + "name": "@fluentui/react-search-preview", "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "library", "implicitDependencies": [], - "sourceRoot": "packages/react-components/react-search/src", + "sourceRoot": "packages/react-components/react-search-preview/src", "tags": ["vNext", "platform:web"] } diff --git a/packages/react-components/react-search/src/SearchBox.ts b/packages/react-components/react-search-preview/src/SearchBox.ts similarity index 100% rename from packages/react-components/react-search/src/SearchBox.ts rename to packages/react-components/react-search-preview/src/SearchBox.ts diff --git a/packages/react-components/react-search/src/components/SearchBox/SearchBox.test.tsx b/packages/react-components/react-search-preview/src/components/SearchBox/SearchBox.test.tsx similarity index 100% rename from packages/react-components/react-search/src/components/SearchBox/SearchBox.test.tsx rename to packages/react-components/react-search-preview/src/components/SearchBox/SearchBox.test.tsx diff --git a/packages/react-components/react-search/src/components/SearchBox/SearchBox.tsx b/packages/react-components/react-search-preview/src/components/SearchBox/SearchBox.tsx similarity index 100% rename from packages/react-components/react-search/src/components/SearchBox/SearchBox.tsx rename to packages/react-components/react-search-preview/src/components/SearchBox/SearchBox.tsx diff --git a/packages/react-components/react-search/src/components/SearchBox/SearchBox.types.ts b/packages/react-components/react-search-preview/src/components/SearchBox/SearchBox.types.ts similarity index 100% rename from packages/react-components/react-search/src/components/SearchBox/SearchBox.types.ts rename to packages/react-components/react-search-preview/src/components/SearchBox/SearchBox.types.ts diff --git a/packages/react-components/react-search/src/components/SearchBox/__snapshots__/SearchBox.test.tsx.snap b/packages/react-components/react-search-preview/src/components/SearchBox/__snapshots__/SearchBox.test.tsx.snap similarity index 100% rename from packages/react-components/react-search/src/components/SearchBox/__snapshots__/SearchBox.test.tsx.snap rename to packages/react-components/react-search-preview/src/components/SearchBox/__snapshots__/SearchBox.test.tsx.snap diff --git a/packages/react-components/react-search/src/components/SearchBox/index.ts b/packages/react-components/react-search-preview/src/components/SearchBox/index.ts similarity index 100% rename from packages/react-components/react-search/src/components/SearchBox/index.ts rename to packages/react-components/react-search-preview/src/components/SearchBox/index.ts diff --git a/packages/react-components/react-search/src/components/SearchBox/renderSearchBox.tsx b/packages/react-components/react-search-preview/src/components/SearchBox/renderSearchBox.tsx similarity index 100% rename from packages/react-components/react-search/src/components/SearchBox/renderSearchBox.tsx rename to packages/react-components/react-search-preview/src/components/SearchBox/renderSearchBox.tsx diff --git a/packages/react-components/react-search/src/components/SearchBox/useSearchBox.tsx b/packages/react-components/react-search-preview/src/components/SearchBox/useSearchBox.tsx similarity index 100% rename from packages/react-components/react-search/src/components/SearchBox/useSearchBox.tsx rename to packages/react-components/react-search-preview/src/components/SearchBox/useSearchBox.tsx diff --git a/packages/react-components/react-search/src/components/SearchBox/useSearchBoxStyles.styles.ts b/packages/react-components/react-search-preview/src/components/SearchBox/useSearchBoxStyles.styles.ts similarity index 100% rename from packages/react-components/react-search/src/components/SearchBox/useSearchBoxStyles.styles.ts rename to packages/react-components/react-search-preview/src/components/SearchBox/useSearchBoxStyles.styles.ts diff --git a/packages/react-components/react-search/src/index.ts b/packages/react-components/react-search-preview/src/index.ts similarity index 100% rename from packages/react-components/react-search/src/index.ts rename to packages/react-components/react-search-preview/src/index.ts diff --git a/packages/react-components/react-search/src/testing/isConformant.ts b/packages/react-components/react-search-preview/src/testing/isConformant.ts similarity index 100% rename from packages/react-components/react-search/src/testing/isConformant.ts rename to packages/react-components/react-search-preview/src/testing/isConformant.ts diff --git a/packages/react-components/react-search/stories/SearchBox/SearchBoxAppearance.stories.tsx b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxAppearance.stories.tsx similarity index 97% rename from packages/react-components/react-search/stories/SearchBox/SearchBoxAppearance.stories.tsx rename to packages/react-components/react-search-preview/stories/SearchBox/SearchBoxAppearance.stories.tsx index 17a341380641f0..8004f2a0972228 100644 --- a/packages/react-components/react-search/stories/SearchBox/SearchBoxAppearance.stories.tsx +++ b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxAppearance.stories.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { SearchBox } from '@fluentui/react-search'; +import { SearchBox } from '@fluentui/react-search-preview'; import { Field, makeStyles, mergeClasses, shorthands, tokens } from '@fluentui/react-components'; const useStyles = makeStyles({ diff --git a/packages/react-components/react-search/stories/SearchBox/SearchBoxBestPractices.md b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxBestPractices.md similarity index 100% rename from packages/react-components/react-search/stories/SearchBox/SearchBoxBestPractices.md rename to packages/react-components/react-search-preview/stories/SearchBox/SearchBoxBestPractices.md diff --git a/packages/react-components/react-search/stories/SearchBox/SearchBoxContentBeforeAfter.stories.tsx b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxContentBeforeAfter.stories.tsx similarity index 97% rename from packages/react-components/react-search/stories/SearchBox/SearchBoxContentBeforeAfter.stories.tsx rename to packages/react-components/react-search-preview/stories/SearchBox/SearchBoxContentBeforeAfter.stories.tsx index 7a14084b7c9824..f59786f527279e 100644 --- a/packages/react-components/react-search/stories/SearchBox/SearchBoxContentBeforeAfter.stories.tsx +++ b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxContentBeforeAfter.stories.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { SearchBox } from '@fluentui/react-search'; +import { SearchBox } from '@fluentui/react-search-preview'; import { Button, ButtonProps, Field, makeStyles, shorthands, Text, tokens } from '@fluentui/react-components'; import { PersonRegular, MicRegular } from '@fluentui/react-icons'; diff --git a/packages/react-components/react-search/stories/SearchBox/SearchBoxControlled.stories.tsx b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxControlled.stories.tsx similarity index 88% rename from packages/react-components/react-search/stories/SearchBox/SearchBoxControlled.stories.tsx rename to packages/react-components/react-search-preview/stories/SearchBox/SearchBoxControlled.stories.tsx index 2de225fe65091b..b8a2a9c625aa18 100644 --- a/packages/react-components/react-search/stories/SearchBox/SearchBoxControlled.stories.tsx +++ b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxControlled.stories.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; -import { SearchBox } from '@fluentui/react-search'; +import { SearchBox } from '@fluentui/react-search-preview'; import { Field } from '@fluentui/react-components'; -import type { SearchBoxProps } from '@fluentui/react-search'; +import type { SearchBoxProps } from '@fluentui/react-search-preview'; export const Controlled = () => { const [value, setValue] = React.useState('initial value'); diff --git a/packages/react-components/react-search/stories/SearchBox/SearchBoxDefault.stories.tsx b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxDefault.stories.tsx similarity index 89% rename from packages/react-components/react-search/stories/SearchBox/SearchBoxDefault.stories.tsx rename to packages/react-components/react-search-preview/stories/SearchBox/SearchBoxDefault.stories.tsx index 709c633f42cfc7..96091ad625ad79 100644 --- a/packages/react-components/react-search/stories/SearchBox/SearchBoxDefault.stories.tsx +++ b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxDefault.stories.tsx @@ -1,8 +1,8 @@ import * as React from 'react'; import { ArgTypes } from '@storybook/api'; -import { SearchBox } from '@fluentui/react-search'; +import { SearchBox } from '@fluentui/react-search-preview'; import { Field } from '@fluentui/react-components'; -import type { SearchBoxProps } from '@fluentui/react-search'; +import type { SearchBoxProps } from '@fluentui/react-search-preview'; export const Default = (props: SearchBoxProps) => { return ( diff --git a/packages/react-components/react-search/stories/SearchBox/SearchBoxDescription.md b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxDescription.md similarity index 100% rename from packages/react-components/react-search/stories/SearchBox/SearchBoxDescription.md rename to packages/react-components/react-search-preview/stories/SearchBox/SearchBoxDescription.md diff --git a/packages/react-components/react-search/stories/SearchBox/SearchBoxDisabled.stories.tsx b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxDisabled.stories.tsx similarity index 85% rename from packages/react-components/react-search/stories/SearchBox/SearchBoxDisabled.stories.tsx rename to packages/react-components/react-search-preview/stories/SearchBox/SearchBoxDisabled.stories.tsx index 4ded663d515d22..9280f036ccc137 100644 --- a/packages/react-components/react-search/stories/SearchBox/SearchBoxDisabled.stories.tsx +++ b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxDisabled.stories.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { SearchBox } from '@fluentui/react-search'; +import { SearchBox } from '@fluentui/react-search-preview'; import { Field } from '@fluentui/react-components'; export const Disabled = () => { diff --git a/packages/react-components/react-search/stories/SearchBox/SearchBoxPlaceholder.stories.tsx b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxPlaceholder.stories.tsx similarity index 90% rename from packages/react-components/react-search/stories/SearchBox/SearchBoxPlaceholder.stories.tsx rename to packages/react-components/react-search-preview/stories/SearchBox/SearchBoxPlaceholder.stories.tsx index 486c2b73449edb..2e2775af3225bb 100644 --- a/packages/react-components/react-search/stories/SearchBox/SearchBoxPlaceholder.stories.tsx +++ b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxPlaceholder.stories.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { SearchBox } from '@fluentui/react-search'; +import { SearchBox } from '@fluentui/react-search-preview'; import { Field } from '@fluentui/react-components'; export const Placeholder = () => { diff --git a/packages/react-components/react-search/stories/SearchBox/SearchBoxSize.stories.tsx b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxSize.stories.tsx similarity index 94% rename from packages/react-components/react-search/stories/SearchBox/SearchBoxSize.stories.tsx rename to packages/react-components/react-search-preview/stories/SearchBox/SearchBoxSize.stories.tsx index 04d6cdfa2e38a0..ee8c755689e378 100644 --- a/packages/react-components/react-search/stories/SearchBox/SearchBoxSize.stories.tsx +++ b/packages/react-components/react-search-preview/stories/SearchBox/SearchBoxSize.stories.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { SearchBox } from '@fluentui/react-search'; +import { SearchBox } from '@fluentui/react-search-preview'; import { Field, makeStyles, shorthands, tokens } from '@fluentui/react-components'; const useStyles = makeStyles({ diff --git a/packages/react-components/react-search/stories/SearchBox/index.stories.tsx b/packages/react-components/react-search-preview/stories/SearchBox/index.stories.tsx similarity index 92% rename from packages/react-components/react-search/stories/SearchBox/index.stories.tsx rename to packages/react-components/react-search-preview/stories/SearchBox/index.stories.tsx index 8fb4b3d57a14c2..aab81eec1f0751 100644 --- a/packages/react-components/react-search/stories/SearchBox/index.stories.tsx +++ b/packages/react-components/react-search-preview/stories/SearchBox/index.stories.tsx @@ -1,4 +1,4 @@ -import { SearchBox } from '@fluentui/react-search'; +import { SearchBox } from '@fluentui/react-search-preview'; import descriptionMd from './SearchBoxDescription.md'; import bestPracticesMd from './SearchBoxBestPractices.md'; diff --git a/packages/react-components/react-search/tsconfig.json b/packages/react-components/react-search-preview/tsconfig.json similarity index 100% rename from packages/react-components/react-search/tsconfig.json rename to packages/react-components/react-search-preview/tsconfig.json diff --git a/packages/react-components/react-search/tsconfig.lib.json b/packages/react-components/react-search-preview/tsconfig.lib.json similarity index 100% rename from packages/react-components/react-search/tsconfig.lib.json rename to packages/react-components/react-search-preview/tsconfig.lib.json diff --git a/packages/react-components/react-search/tsconfig.spec.json b/packages/react-components/react-search-preview/tsconfig.spec.json similarity index 100% rename from packages/react-components/react-search/tsconfig.spec.json rename to packages/react-components/react-search-preview/tsconfig.spec.json diff --git a/scripts/storybook/src/utils.js b/scripts/storybook/src/utils.js index 14ba5096393c1c..46ac977b341b50 100644 --- a/scripts/storybook/src/utils.js +++ b/scripts/storybook/src/utils.js @@ -168,7 +168,7 @@ function _createCodesandboxRule(allPackageInfo = getAllPackageInfo()) { '@fluentui/react-datepicker-compat', '@fluentui/react-migration-v8-v9', '@fluentui/react-migration-v0-v9', - '@fluentui/react-search', + '@fluentui/react-search-preview', ]; const importMappings = Object.values(allPackageInfo).reduce((acc, cur) => { diff --git a/tsconfig.base.all.json b/tsconfig.base.all.json index 0f9f41fbbc2e7f..ace37f0d9d45c8 100644 --- a/tsconfig.base.all.json +++ b/tsconfig.base.all.json @@ -128,7 +128,7 @@ "@fluentui/react-progress": ["packages/react-components/react-progress/src/index.ts"], "@fluentui/react-provider": ["packages/react-components/react-provider/src/index.ts"], "@fluentui/react-radio": ["packages/react-components/react-radio/src/index.ts"], - "@fluentui/react-search": ["packages/react-components/react-search/src/index.ts"], + "@fluentui/react-search-preview": ["packages/react-components/react-search-preview/src/index.ts"], "@fluentui/react-select": ["packages/react-components/react-select/src/index.ts"], "@fluentui/react-shared-contexts": ["packages/react-components/react-shared-contexts/src/index.ts"], "@fluentui/react-skeleton": ["packages/react-components/react-skeleton/src/index.ts"], diff --git a/tsconfig.base.json b/tsconfig.base.json index 3a9acc59b7879c..6cbee35e73c51a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -63,7 +63,7 @@ "@fluentui/react-progress": ["packages/react-components/react-progress/src/index.ts"], "@fluentui/react-provider": ["packages/react-components/react-provider/src/index.ts"], "@fluentui/react-radio": ["packages/react-components/react-radio/src/index.ts"], - "@fluentui/react-search": ["packages/react-components/react-search/src/index.ts"], + "@fluentui/react-search-preview": ["packages/react-components/react-search-preview/src/index.ts"], "@fluentui/react-select": ["packages/react-components/react-select/src/index.ts"], "@fluentui/react-shared-contexts": ["packages/react-components/react-shared-contexts/src/index.ts"], "@fluentui/react-skeleton": ["packages/react-components/react-skeleton/src/index.ts"], From 1d971e9b02af5cad9df37aad0e2fe472e2a0f70f Mon Sep 17 00:00:00 2001 From: Emma Jiang <31319479+emmayjiang@users.noreply.github.com> Date: Mon, 10 Jul 2023 11:11:54 -0700 Subject: [PATCH 5/5] Update main.js --- apps/public-docsite-v9/.storybook/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/public-docsite-v9/.storybook/main.js b/apps/public-docsite-v9/.storybook/main.js index ca5a60b1ed7b52..c4a985fec83ecb 100644 --- a/apps/public-docsite-v9/.storybook/main.js +++ b/apps/public-docsite-v9/.storybook/main.js @@ -15,7 +15,7 @@ module.exports = /** @type {Omit