diff --git a/apps/vr-tests-react-components/src/stories/Field.stories.tsx b/apps/vr-tests-react-components/src/stories/Field.stories.tsx index 663edb6328523..5dfbd5608bded 100644 --- a/apps/vr-tests-react-components/src/stories/Field.stories.tsx +++ b/apps/vr-tests-react-components/src/stories/Field.stories.tsx @@ -15,17 +15,17 @@ import { TextareaField, } from '@fluentui/react-field'; import { SparkleFilled } from '@fluentui/react-icons'; -import { FieldComponent, FieldPropsWithOptionalComponentProps } from '@fluentui/react-field/src/Field'; +import { FieldControl, FieldPropsWithOptionalComponentProps } from '@fluentui/react-field/src/Field'; -type FieldComponentProps = Pick< - FieldPropsWithOptionalComponentProps, +type FieldControlProps = Pick< + FieldPropsWithOptionalComponentProps, 'orientation' | 'required' | 'label' | 'validationState' | 'validationMessage' | 'validationMessageIcon' | 'hint' >; /** * Common VR tests for all field components. Pass the given Field component (or a wrapper around it). */ -const storiesOfField = (name: string, Field: React.VoidFunctionComponent) => +const storiesOfField = (name: string, Field: React.VoidFunctionComponent) => storiesOf(name, module) .addDecorator(story => {story()}) .addDecorator(story => ( @@ -65,7 +65,7 @@ const storiesOfField = (name: string, Field: React.VoidFunctionComponent, + Field: React.VoidFunctionComponent, ) => storiesOfField(name, Field) .addStory('size:small', () => ) diff --git a/change/@fluentui-react-field-3b26a8a7-ed4d-445f-92c9-818f523ef4b4.json b/change/@fluentui-react-field-3b26a8a7-ed4d-445f-92c9-818f523ef4b4.json new file mode 100644 index 0000000000000..7e1219e93c352 --- /dev/null +++ b/change/@fluentui-react-field-3b26a8a7-ed4d-445f-92c9-818f523ef4b4.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: Clean up Field tests and story imports in preparation of moving to individual packages", + "packageName": "@fluentui/react-field", + "email": "behowell@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-components/react-field/etc/react-field.api.md b/packages/react-components/react-field/etc/react-field.api.md index fdace08fb846f..6f6faa615973c 100644 --- a/packages/react-components/react-field/etc/react-field.api.md +++ b/packages/react-components/react-field/etc/react-field.api.md @@ -31,7 +31,7 @@ import { Textarea } from '@fluentui/react-textarea'; export const CheckboxField: ForwardRefComponent; // @public (undocumented) -export const checkboxFieldClassNames: SlotClassNames>; +export const checkboxFieldClassNames: SlotClassNames>; // @public (undocumented) export type CheckboxFieldProps = Omit, 'label'> & { @@ -43,13 +43,13 @@ export type CheckboxFieldProps = Omit, 'label'> & { export const ComboboxField: ForwardRefComponent; // @public (undocumented) -export const comboboxFieldClassNames: SlotClassNames>; +export const comboboxFieldClassNames: SlotClassNames>; // @public (undocumented) export type ComboboxFieldProps = FieldProps; // @public -export type FieldConfig = { +export type FieldConfig = { component: T; classNames: SlotClassNames>; labelConnection?: 'htmlFor' | 'aria-labelledby'; @@ -57,13 +57,13 @@ export type FieldConfig = { }; // @public -export type FieldProps = ComponentProps>, 'control'> & { +export type FieldProps = ComponentProps>, 'control'> & { orientation?: 'vertical' | 'horizontal'; validationState?: 'error' | 'warning' | 'success'; }; // @public -export type FieldSlots = { +export type FieldSlots = { root: NonNullable>; control: SlotComponent; label?: Slot; @@ -73,18 +73,18 @@ export type FieldSlots = { }; // @public -export type FieldState = ComponentState>> & Pick, 'orientation' | 'validationState'> & { +export type FieldState = ComponentState>> & Pick, 'orientation' | 'validationState'> & { classNames: SlotClassNames>; }; // @public (undocumented) -export const getFieldClassNames: (name: string) => SlotClassNames>; +export const getFieldClassNames: (name: string) => SlotClassNames>; // @public (undocumented) export const InputField: ForwardRefComponent; // @public (undocumented) -export const inputFieldClassNames: SlotClassNames>; +export const inputFieldClassNames: SlotClassNames>; // @public (undocumented) export type InputFieldProps = FieldProps; @@ -93,7 +93,7 @@ export type InputFieldProps = FieldProps; export const ProgressField: ForwardRefComponent; // @public (undocumented) -export const progressFieldClassNames: SlotClassNames>; +export const progressFieldClassNames: SlotClassNames>; // @public (undocumented) export type ProgressFieldProps = FieldProps; @@ -102,19 +102,19 @@ export type ProgressFieldProps = FieldProps; export const RadioGroupField: ForwardRefComponent; // @public (undocumented) -export const radioGroupFieldClassNames: SlotClassNames>; +export const radioGroupFieldClassNames: SlotClassNames>; // @public (undocumented) export type RadioGroupFieldProps = FieldProps; // @public -export const renderField_unstable: (state: FieldState) => JSX.Element; +export const renderField_unstable: (state: FieldState) => JSX.Element; // @public (undocumented) export const SelectField: ForwardRefComponent; // @public (undocumented) -export const selectFieldClassNames: SlotClassNames>; +export const selectFieldClassNames: SlotClassNames>; // @public (undocumented) export type SelectFieldProps = FieldProps; @@ -123,7 +123,7 @@ export type SelectFieldProps = FieldProps; export const SliderField: ForwardRefComponent; // @public (undocumented) -export const sliderFieldClassNames: SlotClassNames>; +export const sliderFieldClassNames: SlotClassNames>; // @public (undocumented) export type SliderFieldProps = FieldProps; @@ -132,7 +132,7 @@ export type SliderFieldProps = FieldProps; export const SpinButtonField: ForwardRefComponent; // @public (undocumented) -export const spinButtonFieldClassNames: SlotClassNames>; +export const spinButtonFieldClassNames: SlotClassNames>; // @public (undocumented) export type SpinButtonFieldProps = FieldProps; @@ -141,7 +141,7 @@ export type SpinButtonFieldProps = FieldProps; export const SwitchField: ForwardRefComponent; // @public (undocumented) -export const switchFieldClassNames: SlotClassNames>; +export const switchFieldClassNames: SlotClassNames>; // @public (undocumented) export type SwitchFieldProps = Omit, 'labelPosition'>; @@ -150,16 +150,16 @@ export type SwitchFieldProps = Omit, 'labelPosition'>; export const TextareaField: ForwardRefComponent; // @public (undocumented) -export const textareaFieldClassNames: SlotClassNames>; +export const textareaFieldClassNames: SlotClassNames>; // @public (undocumented) export type TextareaFieldProps = FieldProps; // @public -export const useField_unstable: (props: FieldPropsWithOptionalComponentProps, ref: React_2.Ref, params: FieldConfig) => FieldState; +export const useField_unstable: (props: FieldPropsWithOptionalComponentProps, ref: React_2.Ref, params: FieldConfig) => FieldState; // @public -export const useFieldStyles_unstable: (state: FieldState) => void; +export const useFieldStyles_unstable: (state: FieldState) => void; // (No @packageDocumentation comment for this package) diff --git a/packages/react-components/react-field/src/common/isConformant.ts b/packages/react-components/react-field/src/common/isConformant.ts index f3c09edfdd4d8..77f88408cbd83 100644 --- a/packages/react-components/react-field/src/common/isConformant.ts +++ b/packages/react-components/react-field/src/common/isConformant.ts @@ -8,23 +8,6 @@ export function isConformant( const defaultOptions: Partial> = { componentPath: require.main?.filename.replace('.test', ''), extraTests: griffelTests as TestObject, - - // Field-specific defaults - primarySlot: 'control' as keyof TProps, - testOptions: testInfo.testOptions?.['has-static-classnames'] - ? undefined - : { - 'has-static-classnames': [ - { - props: { - label: 'label text', - validationState: 'error', - validationMessage: 'validation message text', - hint: 'hint text', - }, - }, - ], - }, }; baseIsConformant(defaultOptions, testInfo); diff --git a/packages/react-components/react-field/src/components/CheckboxField/CheckboxField.test.tsx b/packages/react-components/react-field/src/components/CheckboxField/CheckboxField.test.tsx index 41c99c1d55379..6e9617c1eb90f 100644 --- a/packages/react-components/react-field/src/components/CheckboxField/CheckboxField.test.tsx +++ b/packages/react-components/react-field/src/components/CheckboxField/CheckboxField.test.tsx @@ -7,6 +7,7 @@ describe('CheckboxField', () => { isConformant({ Component: CheckboxField, displayName: 'CheckboxField', + primarySlot: 'control', testOptions: { 'has-static-classnames': [ { @@ -20,6 +21,7 @@ describe('CheckboxField', () => { }, ], }, + disabledTests: ['exported-top-level'], // TODO re-enable once component is exported without _unstable }); // Most functionality is tested by Field.test.tsx, and Checkbox's tests diff --git a/packages/react-components/react-field/src/components/ComboboxField/ComboboxField.test.tsx b/packages/react-components/react-field/src/components/ComboboxField/ComboboxField.test.tsx index f15221eb2bac7..63fcb3bf6331f 100644 --- a/packages/react-components/react-field/src/components/ComboboxField/ComboboxField.test.tsx +++ b/packages/react-components/react-field/src/components/ComboboxField/ComboboxField.test.tsx @@ -5,6 +5,20 @@ describe('ComboboxField', () => { isConformant({ Component: ComboboxField, displayName: 'ComboboxField', + primarySlot: 'control', + testOptions: { + 'has-static-classnames': [ + { + props: { + label: 'label text', + validationState: 'error', + validationMessage: 'validation message text', + hint: 'hint text', + }, + }, + ], + }, + disabledTests: ['exported-top-level'], // TODO re-enable once component is exported without _unstable }); // Most functionality is tested by Field.test.tsx, and Combobox's tests diff --git a/packages/react-components/react-field/src/components/Field/Field.types.ts b/packages/react-components/react-field/src/components/Field/Field.types.ts index f1644d289d9ae..c5103fe179864 100644 --- a/packages/react-components/react-field/src/components/Field/Field.types.ts +++ b/packages/react-components/react-field/src/components/Field/Field.types.ts @@ -9,7 +9,7 @@ import type { SlotComponent } from './SlotComponent.types'; * Note: the use of VoidFunctionComponent means that component is not *required* to have a children prop, * but it is still allowed to have a children prop. */ -export type FieldComponent = React.VoidFunctionComponent< +export type FieldControl = React.VoidFunctionComponent< Pick< React.HTMLAttributes, 'id' | 'className' | 'style' | 'aria-labelledby' | 'aria-describedby' | 'aria-invalid' | 'aria-errormessage' @@ -19,7 +19,7 @@ export type FieldComponent = React.VoidFunctionComponent< /** * Slots added by Field */ -export type FieldSlots = { +export type FieldSlots = { root: NonNullable>; /** @@ -54,7 +54,7 @@ export type FieldSlots = { /** * Field Props */ -export type FieldProps = ComponentProps>, 'control'> & { +export type FieldProps = ComponentProps>, 'control'> & { /** * The orientation of the label relative to the field component. * This only affects the label, and not the validationMessage or hint (which always appear below the field component). @@ -79,7 +79,7 @@ export type FieldProps = ComponentProps = FieldProps & { +export type FieldPropsWithOptionalComponentProps = FieldProps & { /** * Whether the field label should be marked as required. */ @@ -96,7 +96,7 @@ export type FieldPropsWithOptionalComponentProps = Fie /** * Configuration parameters for a Field class, passed to useField_unstable */ -export type FieldConfig = { +export type FieldConfig = { /** * The underlying input component that this field is wrapping. */ @@ -129,7 +129,7 @@ export type FieldConfig = { /** * State used in rendering Field */ -export type FieldState = ComponentState>> & +export type FieldState = ComponentState>> & Pick, 'orientation' | 'validationState'> & { classNames: SlotClassNames>; }; diff --git a/packages/react-components/react-field/src/components/Field/renderField.tsx b/packages/react-components/react-field/src/components/Field/renderField.tsx index c3a5c6e2577ff..4727909444e6f 100644 --- a/packages/react-components/react-field/src/components/Field/renderField.tsx +++ b/packages/react-components/react-field/src/components/Field/renderField.tsx @@ -1,12 +1,12 @@ import * as React from 'react'; import { getSlots } from '@fluentui/react-utilities'; -import type { FieldComponent, FieldSlots, FieldState } from './Field.types'; +import type { FieldControl, FieldSlots, FieldState } from './Field.types'; /** * Render the final JSX of Field */ -export const renderField_unstable = (state: FieldState) => { - const { slots, slotProps } = getSlots>(state as FieldState); +export const renderField_unstable = (state: FieldState) => { + const { slots, slotProps } = getSlots>(state as FieldState); return ( diff --git a/packages/react-components/react-field/src/components/Field/useField.tsx b/packages/react-components/react-field/src/components/Field/useField.tsx index acd4da41721ca..c88fad0b33492 100644 --- a/packages/react-components/react-field/src/components/Field/useField.tsx +++ b/packages/react-components/react-field/src/components/Field/useField.tsx @@ -3,8 +3,8 @@ import { CheckmarkCircle12Filled, ErrorCircle12Filled, Warning12Filled } from '@ import { Label } from '@fluentui/react-label'; import { getNativeElementProps, resolveShorthand, useId } from '@fluentui/react-utilities'; import type { - FieldComponent, FieldConfig, + FieldControl, FieldProps, FieldPropsWithOptionalComponentProps, FieldState, @@ -19,7 +19,7 @@ const validationMessageIcons = { /** * Partition the props used by the Field itself, from the props that are passed to the underlying field component. */ -export const getPartitionedFieldProps = >(props: Props) => { +export const getPartitionedFieldProps = >(props: Props) => { const { className, control, @@ -60,7 +60,7 @@ export const getPartitionedFieldProps = ( +export const useField_unstable = ( props: FieldPropsWithOptionalComponentProps, ref: React.Ref, params: FieldConfig, @@ -134,7 +134,7 @@ export const useField_unstable = ( } } - const state: FieldState = { + const state: FieldState = { orientation, validationState, classNames: params.classNames, diff --git a/packages/react-components/react-field/src/components/Field/useFieldStyles.ts b/packages/react-components/react-field/src/components/Field/useFieldStyles.ts index 005ac098c8853..964cb96eb7b3c 100644 --- a/packages/react-components/react-field/src/components/Field/useFieldStyles.ts +++ b/packages/react-components/react-field/src/components/Field/useFieldStyles.ts @@ -1,9 +1,9 @@ import { makeStyles, mergeClasses } from '@griffel/react'; -import type { FieldComponent, FieldProps, FieldSlots, FieldState } from './Field.types'; +import type { FieldControl, FieldProps, FieldSlots, FieldState } from './Field.types'; import type { SlotClassNames } from '@fluentui/react-utilities'; import { tokens, typographyStyles } from '@fluentui/react-theme'; -export const getFieldClassNames = (name: string): SlotClassNames> => ({ +export const getFieldClassNames = (name: string): SlotClassNames> => ({ root: `fui-${name}`, control: `fui-${name}__control`, label: `fui-${name}__label`, @@ -81,9 +81,9 @@ const useValidationMessageIconStyles = makeStyles({ /** * Apply styling to the Field slots based on the state */ -export const useFieldStyles_unstable = (state: FieldState) => { +export const useFieldStyles_unstable = (state: FieldState) => { const classNames = state.classNames; - const validationState: FieldProps['validationState'] = state.validationState; + const validationState: FieldProps['validationState'] = state.validationState; const horizontal = state.orientation === 'horizontal'; const rootStyles = useRootStyles(); diff --git a/packages/react-components/react-field/src/components/InputField/InputField.test.tsx b/packages/react-components/react-field/src/components/InputField/InputField.test.tsx index 05219e41786fd..6d558646db91f 100644 --- a/packages/react-components/react-field/src/components/InputField/InputField.test.tsx +++ b/packages/react-components/react-field/src/components/InputField/InputField.test.tsx @@ -5,6 +5,20 @@ describe('InputField', () => { isConformant({ Component: InputField, displayName: 'InputField', + primarySlot: 'control', + testOptions: { + 'has-static-classnames': [ + { + props: { + label: 'label text', + validationState: 'error', + validationMessage: 'validation message text', + hint: 'hint text', + }, + }, + ], + }, + disabledTests: ['exported-top-level'], // TODO re-enable once component is exported without _unstable }); // Most functionality is tested by Field.test.tsx, and Input's tests diff --git a/packages/react-components/react-field/src/components/ProgressField/ProgressField.test.tsx b/packages/react-components/react-field/src/components/ProgressField/ProgressField.test.tsx index 71d0adff6888f..f4d428a293cee 100644 --- a/packages/react-components/react-field/src/components/ProgressField/ProgressField.test.tsx +++ b/packages/react-components/react-field/src/components/ProgressField/ProgressField.test.tsx @@ -7,6 +7,20 @@ describe('ProgressField', () => { isConformant({ Component: ProgressField, displayName: 'ProgressField', + primarySlot: 'control', + testOptions: { + 'has-static-classnames': [ + { + props: { + label: 'label text', + validationState: 'error', + validationMessage: 'validation message text', + hint: 'hint text', + }, + }, + ], + }, + disabledTests: ['exported-top-level'], // TODO re-enable once component is exported without _unstable }); // Most functionality is tested by Field.test.tsx and Progress.test.tsx diff --git a/packages/react-components/react-field/src/components/RadioGroupField/RadioGroupField.test.tsx b/packages/react-components/react-field/src/components/RadioGroupField/RadioGroupField.test.tsx index 2f4c981b14ee8..c5647f8bd2a66 100644 --- a/packages/react-components/react-field/src/components/RadioGroupField/RadioGroupField.test.tsx +++ b/packages/react-components/react-field/src/components/RadioGroupField/RadioGroupField.test.tsx @@ -8,6 +8,20 @@ describe('RadioGroupField', () => { isConformant({ Component: RadioGroupField, displayName: 'RadioGroupField', + primarySlot: 'control', + testOptions: { + 'has-static-classnames': [ + { + props: { + label: 'label text', + validationState: 'error', + validationMessage: 'validation message text', + hint: 'hint text', + }, + }, + ], + }, + disabledTests: ['exported-top-level'], // TODO re-enable once component is exported without _unstable }); // Most functionality is tested by Field.test.tsx, and RadioGroup's tests diff --git a/packages/react-components/react-field/src/components/SelectField/SelectField.test.tsx b/packages/react-components/react-field/src/components/SelectField/SelectField.test.tsx index b64bd86dfc68a..b4786ea4a6842 100644 --- a/packages/react-components/react-field/src/components/SelectField/SelectField.test.tsx +++ b/packages/react-components/react-field/src/components/SelectField/SelectField.test.tsx @@ -5,6 +5,20 @@ describe('SelectField', () => { isConformant({ Component: SelectField, displayName: 'SelectField', + primarySlot: 'control', + testOptions: { + 'has-static-classnames': [ + { + props: { + label: 'label text', + validationState: 'error', + validationMessage: 'validation message text', + hint: 'hint text', + }, + }, + ], + }, + disabledTests: ['exported-top-level'], // TODO re-enable once component is exported without _unstable }); // Most functionality is tested by Field.test.tsx, and Select's tests diff --git a/packages/react-components/react-field/src/components/SliderField/SliderField.test.tsx b/packages/react-components/react-field/src/components/SliderField/SliderField.test.tsx index f4d931234d86c..93710ecfcb669 100644 --- a/packages/react-components/react-field/src/components/SliderField/SliderField.test.tsx +++ b/packages/react-components/react-field/src/components/SliderField/SliderField.test.tsx @@ -5,6 +5,20 @@ describe('SliderField', () => { isConformant({ Component: SliderField, displayName: 'SliderField', + primarySlot: 'control', + testOptions: { + 'has-static-classnames': [ + { + props: { + label: 'label text', + validationState: 'error', + validationMessage: 'validation message text', + hint: 'hint text', + }, + }, + ], + }, + disabledTests: ['exported-top-level'], // TODO re-enable once component is exported without _unstable }); // Most functionality is tested by Field.test.tsx, and Slider's tests diff --git a/packages/react-components/react-field/src/components/SpinButtonField/SpinButtonField.test.tsx b/packages/react-components/react-field/src/components/SpinButtonField/SpinButtonField.test.tsx index 0d9d2d87eb5b5..d78df05fd8423 100644 --- a/packages/react-components/react-field/src/components/SpinButtonField/SpinButtonField.test.tsx +++ b/packages/react-components/react-field/src/components/SpinButtonField/SpinButtonField.test.tsx @@ -5,6 +5,20 @@ describe('SpinButtonField', () => { isConformant({ Component: SpinButtonField, displayName: 'SpinButtonField', + primarySlot: 'control', + testOptions: { + 'has-static-classnames': [ + { + props: { + label: 'label text', + validationState: 'error', + validationMessage: 'validation message text', + hint: 'hint text', + }, + }, + ], + }, + disabledTests: ['exported-top-level'], // TODO re-enable once component is exported without _unstable }); // Most functionality is tested by Field.test.tsx, and SpinButton's tests diff --git a/packages/react-components/react-field/src/components/SwitchField/SwitchField.test.tsx b/packages/react-components/react-field/src/components/SwitchField/SwitchField.test.tsx index 0d2f4b1101768..624e647345aed 100644 --- a/packages/react-components/react-field/src/components/SwitchField/SwitchField.test.tsx +++ b/packages/react-components/react-field/src/components/SwitchField/SwitchField.test.tsx @@ -5,6 +5,20 @@ describe('SwitchField', () => { isConformant({ Component: SwitchField, displayName: 'SwitchField', + primarySlot: 'control', + testOptions: { + 'has-static-classnames': [ + { + props: { + label: 'label text', + validationState: 'error', + validationMessage: 'validation message text', + hint: 'hint text', + }, + }, + ], + }, + disabledTests: ['exported-top-level'], // TODO re-enable once component is exported without _unstable }); // Most functionality is tested by Field.test.tsx, and Switch's tests diff --git a/packages/react-components/react-field/src/components/TextareaField/TextareaField.test.tsx b/packages/react-components/react-field/src/components/TextareaField/TextareaField.test.tsx index 2f4f4806819be..7b1ca24a96567 100644 --- a/packages/react-components/react-field/src/components/TextareaField/TextareaField.test.tsx +++ b/packages/react-components/react-field/src/components/TextareaField/TextareaField.test.tsx @@ -5,6 +5,20 @@ describe('TextareaField', () => { isConformant({ Component: TextareaField, displayName: 'TextareaField', + primarySlot: 'control', + testOptions: { + 'has-static-classnames': [ + { + props: { + label: 'label text', + validationState: 'error', + validationMessage: 'validation message text', + hint: 'hint text', + }, + }, + ], + }, + disabledTests: ['exported-top-level'], // TODO re-enable once component is exported without _unstable }); // Most functionality is tested by Field.test.tsx, and Textarea's tests diff --git a/packages/react-components/react-field/src/stories/CheckboxField/CheckboxFieldDefault.stories.tsx b/packages/react-components/react-field/src/stories/CheckboxField/CheckboxFieldDefault.stories.tsx index 5a15a4792746a..0ec85e63acc88 100644 --- a/packages/react-components/react-field/src/stories/CheckboxField/CheckboxFieldDefault.stories.tsx +++ b/packages/react-components/react-field/src/stories/CheckboxField/CheckboxFieldDefault.stories.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; -import type { CheckboxFieldProps } from '@fluentui/react-field'; -import { CheckboxField } from '@fluentui/react-field'; +import type { CheckboxFieldProps } from '@fluentui/react-components/unstable'; +import { CheckboxField } from '@fluentui/react-components/unstable'; export const Default = (props: Partial) => ( ; diff --git a/packages/react-components/react-field/src/stories/CheckboxField/index.stories.tsx b/packages/react-components/react-field/src/stories/CheckboxField/index.stories.tsx index 760e3cee55f28..5f93fe32574d6 100644 --- a/packages/react-components/react-field/src/stories/CheckboxField/index.stories.tsx +++ b/packages/react-components/react-field/src/stories/CheckboxField/index.stories.tsx @@ -1,4 +1,4 @@ -import { CheckboxField } from '@fluentui/react-field'; +import { CheckboxField } from '@fluentui/react-components/unstable'; import descriptionMd from './CheckboxFieldDescription.md'; diff --git a/packages/react-components/react-field/src/stories/ComboboxField/ComboboxFieldDefault.stories.tsx b/packages/react-components/react-field/src/stories/ComboboxField/ComboboxFieldDefault.stories.tsx index 55c5916861853..385ec203cb0f1 100644 --- a/packages/react-components/react-field/src/stories/ComboboxField/ComboboxFieldDefault.stories.tsx +++ b/packages/react-components/react-field/src/stories/ComboboxField/ComboboxFieldDefault.stories.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { Option } from '@fluentui/react-combobox'; -import type { ComboboxFieldProps } from '@fluentui/react-field'; -import { ComboboxField } from '@fluentui/react-field'; +import type { ComboboxFieldProps } from '@fluentui/react-components/unstable'; +import { ComboboxField } from '@fluentui/react-components/unstable'; export const Default = (props: Partial) => ( ) => ( ; diff --git a/packages/react-components/react-field/src/stories/Field/FieldHorizontal.stories.tsx b/packages/react-components/react-field/src/stories/Field/FieldHorizontal.stories.tsx index 06023c8756367..17a6f98ac65cf 100644 --- a/packages/react-components/react-field/src/stories/Field/FieldHorizontal.stories.tsx +++ b/packages/react-components/react-field/src/stories/Field/FieldHorizontal.stories.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { makeStyles, tokens } from '@fluentui/react-components'; -import { InputField } from '@fluentui/react-field'; +import { InputField } from '@fluentui/react-components/unstable'; const useStyles = makeStyles({ stack: { diff --git a/packages/react-components/react-field/src/stories/Field/FieldLabel.stories.tsx b/packages/react-components/react-field/src/stories/Field/FieldLabel.stories.tsx index e943bf7f39d5e..9935999d29083 100644 --- a/packages/react-components/react-field/src/stories/Field/FieldLabel.stories.tsx +++ b/packages/react-components/react-field/src/stories/Field/FieldLabel.stories.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { InputField } from '@fluentui/react-field'; +import { InputField } from '@fluentui/react-components/unstable'; export const Label = () => ; diff --git a/packages/react-components/react-field/src/stories/Field/FieldRequired.stories.tsx b/packages/react-components/react-field/src/stories/Field/FieldRequired.stories.tsx index 2259f02bc7997..0ebdfccec8131 100644 --- a/packages/react-components/react-field/src/stories/Field/FieldRequired.stories.tsx +++ b/packages/react-components/react-field/src/stories/Field/FieldRequired.stories.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { InputField } from '@fluentui/react-field'; +import { InputField } from '@fluentui/react-components/unstable'; export const Required = () => ; diff --git a/packages/react-components/react-field/src/stories/Field/FieldSize.stories.tsx b/packages/react-components/react-field/src/stories/Field/FieldSize.stories.tsx index 9cd39ab5d2221..27cdf90fc8ab1 100644 --- a/packages/react-components/react-field/src/stories/Field/FieldSize.stories.tsx +++ b/packages/react-components/react-field/src/stories/Field/FieldSize.stories.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { makeStyles, tokens } from '@fluentui/react-components'; -import { InputField } from '@fluentui/react-field'; +import { InputField } from '@fluentui/react-components/unstable'; const useStyles = makeStyles({ stack: { diff --git a/packages/react-components/react-field/src/stories/Field/FieldValidationState.stories.tsx b/packages/react-components/react-field/src/stories/Field/FieldValidationState.stories.tsx index c3c9560e13636..042ce9a30d56a 100644 --- a/packages/react-components/react-field/src/stories/Field/FieldValidationState.stories.tsx +++ b/packages/react-components/react-field/src/stories/Field/FieldValidationState.stories.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { makeStyles, tokens } from '@fluentui/react-components'; -import { InputField } from '@fluentui/react-field'; +import { InputField } from '@fluentui/react-components/unstable'; import { SparkleFilled } from '@fluentui/react-icons'; const useStyles = makeStyles({ diff --git a/packages/react-components/react-field/src/stories/InputField/InputFieldDefault.stories.tsx b/packages/react-components/react-field/src/stories/InputField/InputFieldDefault.stories.tsx index 50a9e11e7d81a..c91243d493f49 100644 --- a/packages/react-components/react-field/src/stories/InputField/InputFieldDefault.stories.tsx +++ b/packages/react-components/react-field/src/stories/InputField/InputFieldDefault.stories.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; -import type { InputFieldProps } from '@fluentui/react-field'; -import { InputField } from '@fluentui/react-field'; +import type { InputFieldProps } from '@fluentui/react-components/unstable'; +import { InputField } from '@fluentui/react-components/unstable'; export const Default = (props: Partial) => ( ) => ( ) => ( ) => ( ) => ( ) => ( ) => ( ) => (