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

chore: Remove deprecated InputField, etc. shim components #27492

Merged
merged 14 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Remove deprecated CheckboxField_unstable shim component",
"packageName": "@fluentui/react-checkbox",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Remove deprecated ComboboxField_unstable shim component",
"packageName": "@fluentui/react-combobox",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore(react-components/unstable): Remove deprecated InputField, etc. shim components",
"packageName": "@fluentui/react-components",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "chore: Remove utilities for deprecated shim InputField, etc. components",
"packageName": "@fluentui/react-field",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Remove deprecated InputField_unstable shim component",
"packageName": "@fluentui/react-input",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Remove deprecated ProgressField_unstable shim component",
"packageName": "@fluentui/react-progress",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Remove deprecated RadioGroupField_unstable shim component",
"packageName": "@fluentui/react-radio",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Remove deprecated SelectField_unstable shim component",
"packageName": "@fluentui/react-select",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Remove deprecated SliderField_unstable shim component",
"packageName": "@fluentui/react-slider",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Remove deprecated SpinButtonField_unstable shim component",
"packageName": "@fluentui/react-spinbutton",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Remove deprecated SwitchField_unstable shim component",
"packageName": "@fluentui/react-switch",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Remove deprecated TextareaField_unstable shim component",
"packageName": "@fluentui/react-textarea",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

import { ComponentProps } from '@fluentui/react-utilities';
import { ComponentState } from '@fluentui/react-utilities';
import { DeprecatedFieldProps } from '@fluentui/react-field';
import { FieldProps } from '@fluentui/react-field';
import type { ForwardRefComponent } from '@fluentui/react-utilities';
import { Label } from '@fluentui/react-label';
import * as React_2 from 'react';
Expand All @@ -22,25 +20,6 @@ export const Checkbox: ForwardRefComponent<CheckboxProps>;
// @public (undocumented)
export const checkboxClassNames: SlotClassNames<CheckboxSlots>;

// @public @deprecated (undocumented)
export const CheckboxField_unstable: ForwardRefComponent<CheckboxFieldProps_unstable>;

// @public @deprecated (undocumented)
export const checkboxFieldClassNames: {
control: string;
root: string;
label: string;
validationMessage: string;
validationMessageIcon: string;
hint: string;
};

// @public @deprecated (undocumented)
export type CheckboxFieldProps_unstable = Omit<DeprecatedFieldProps<CheckboxProps>, 'label'> & {
label?: CheckboxProps['label'];
fieldLabel?: FieldProps['label'];
};

// @public
export interface CheckboxOnChangeData {
// (undocumented)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions packages/react-components/react-checkbox/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ export {
useCheckbox_unstable,
} from './Checkbox';
export type { CheckboxOnChangeData, CheckboxProps, CheckboxSlots, CheckboxState } from './Checkbox';

// eslint-disable-next-line deprecation/deprecation
export { CheckboxField as CheckboxField_unstable, checkboxFieldClassNames } from './CheckboxField';
// eslint-disable-next-line deprecation/deprecation
export type { CheckboxFieldProps as CheckboxFieldProps_unstable } from './CheckboxField';
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import type { ComponentProps } from '@fluentui/react-utilities';
import type { ComponentState } from '@fluentui/react-utilities';
import { DeprecatedFieldProps } from '@fluentui/react-field';
import { FC } from 'react';
import type { ForwardRefComponent } from '@fluentui/react-utilities';
import type { PositioningShorthand } from '@fluentui/react-positioning';
Expand All @@ -30,22 +29,6 @@ export type ComboboxContextValue = Pick<ComboboxState, 'activeOption' | 'appeara
// @public (undocumented)
export type ComboboxContextValues = ComboboxBaseContextValues;

// @public @deprecated (undocumented)
export const ComboboxField_unstable: ForwardRefComponent<ComboboxFieldProps_unstable>;

// @public @deprecated (undocumented)
export const comboboxFieldClassNames: {
control: string;
root: string;
label: string;
validationMessage: string;
validationMessageIcon: string;
hint: string;
};

// @public @deprecated (undocumented)
export type ComboboxFieldProps_unstable = DeprecatedFieldProps<ComboboxProps>;

// @public (undocumented)
export type ComboboxOpenChangeData = ComboboxBaseOpenChangeData;

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions packages/react-components/react-combobox/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,3 @@ export {
useOptionGroup_unstable,
} from './OptionGroup';
export type { OptionGroupProps, OptionGroupSlots, OptionGroupState } from './OptionGroup';

// eslint-disable-next-line deprecation/deprecation
export { ComboboxField as ComboboxField_unstable, comboboxFieldClassNames } from './ComboboxField';
// eslint-disable-next-line deprecation/deprecation
export type { ComboboxFieldProps as ComboboxFieldProps_unstable } from './ComboboxField';
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ import { alertClassNames } from '@fluentui/react-alert';
import { AlertProps } from '@fluentui/react-alert';
import { AlertSlots } from '@fluentui/react-alert';
import { AlertState } from '@fluentui/react-alert';
import { CheckboxField_unstable as CheckboxField } from '@fluentui/react-checkbox';
import { checkboxFieldClassNames } from '@fluentui/react-checkbox';
import { CheckboxFieldProps_unstable as CheckboxFieldProps } from '@fluentui/react-checkbox';
import { ComboboxField_unstable as ComboboxField } from '@fluentui/react-combobox';
import { comboboxFieldClassNames } from '@fluentui/react-combobox';
import { ComboboxFieldProps_unstable as ComboboxFieldProps } from '@fluentui/react-combobox';
import { Field } from '@fluentui/react-field';
import { fieldClassNames } from '@fluentui/react-field';
import { FieldContextProvider } from '@fluentui/react-field';
Expand All @@ -40,16 +34,7 @@ import { infoLabelClassNames } from '@fluentui/react-infobutton';
import { InfoLabelProps } from '@fluentui/react-infobutton';
import { InfoLabelSlots } from '@fluentui/react-infobutton';
import { InfoLabelState } from '@fluentui/react-infobutton';
import { InputField_unstable as InputField } from '@fluentui/react-input';
import { inputFieldClassNames } from '@fluentui/react-input';
import { InputFieldProps_unstable as InputFieldProps } from '@fluentui/react-input';
import { NestedTreeItem } from '@fluentui/react-tree';
import { ProgressField_unstable as ProgressField } from '@fluentui/react-progress';
import { progressFieldClassNames } from '@fluentui/react-progress';
import { ProgressFieldProps_unstable as ProgressFieldProps } from '@fluentui/react-progress';
import { RadioGroupField_unstable as RadioGroupField } from '@fluentui/react-radio';
import { radioGroupFieldClassNames } from '@fluentui/react-radio';
import { RadioGroupFieldProps_unstable as RadioGroupFieldProps } from '@fluentui/react-radio';
import { renderAlert_unstable } from '@fluentui/react-alert';
import { renderField_unstable } from '@fluentui/react-field';
import { renderInfoButton_unstable } from '@fluentui/react-infobutton';
Expand All @@ -62,9 +47,6 @@ import { renderTreeItemLayout_unstable } from '@fluentui/react-tree';
import { renderTreeItemPersonaLayout_unstable } from '@fluentui/react-tree';
import { renderVirtualizer_unstable } from '@fluentui/react-virtualizer';
import { renderVirtualizerScrollView_unstable } from '@fluentui/react-virtualizer';
import { SelectField_unstable as SelectField } from '@fluentui/react-select';
import { selectFieldClassNames } from '@fluentui/react-select';
import { SelectFieldProps_unstable as SelectFieldProps } from '@fluentui/react-select';
import { Skeleton } from '@fluentui/react-skeleton';
import { skeletonClassNames } from '@fluentui/react-skeleton';
import { SkeletonContextProvider } from '@fluentui/react-skeleton';
Expand All @@ -77,18 +59,6 @@ import { SkeletonItemState } from '@fluentui/react-skeleton';
import { SkeletonProps } from '@fluentui/react-skeleton';
import { SkeletonSlots } from '@fluentui/react-skeleton';
import { SkeletonState } from '@fluentui/react-skeleton';
import { SliderField_unstable as SliderField } from '@fluentui/react-slider';
import { sliderFieldClassNames } from '@fluentui/react-slider';
import { SliderFieldProps_unstable as SliderFieldProps } from '@fluentui/react-slider';
import { SpinButtonField_unstable as SpinButtonField } from '@fluentui/react-spinbutton';
import { spinButtonFieldClassNames } from '@fluentui/react-spinbutton';
import { SpinButtonFieldProps_unstable as SpinButtonFieldProps } from '@fluentui/react-spinbutton';
import { SwitchField_unstable as SwitchField } from '@fluentui/react-switch';
import { switchFieldClassNames } from '@fluentui/react-switch';
import { SwitchFieldProps_unstable as SwitchFieldProps } from '@fluentui/react-switch';
import { TextareaField_unstable as TextareaField } from '@fluentui/react-textarea';
import { textareaFieldClassNames } from '@fluentui/react-textarea';
import { TextareaFieldProps_unstable as TextareaFieldProps } from '@fluentui/react-textarea';
import { Tree } from '@fluentui/react-tree';
import { treeClassNames } from '@fluentui/react-tree';
import { TreeContextValue } from '@fluentui/react-tree';
Expand Down Expand Up @@ -173,18 +143,6 @@ export { AlertSlots }

export { AlertState }

export { CheckboxField }

export { checkboxFieldClassNames }

export { CheckboxFieldProps }

export { ComboboxField }

export { comboboxFieldClassNames }

export { ComboboxFieldProps }

export { Field }

export { fieldClassNames }
Expand Down Expand Up @@ -235,26 +193,8 @@ export { InfoLabelSlots }

export { InfoLabelState }

export { InputField }

export { inputFieldClassNames }

export { InputFieldProps }

export { NestedTreeItem }

export { ProgressField }

export { progressFieldClassNames }

export { ProgressFieldProps }

export { RadioGroupField }

export { radioGroupFieldClassNames }

export { RadioGroupFieldProps }

export { renderAlert_unstable }

export { renderField_unstable }
Expand All @@ -279,12 +219,6 @@ export { renderVirtualizer_unstable }

export { renderVirtualizerScrollView_unstable }

export { SelectField }

export { selectFieldClassNames }

export { SelectFieldProps }

export { Skeleton }

export { skeletonClassNames }
Expand All @@ -309,30 +243,6 @@ export { SkeletonSlots }

export { SkeletonState }

export { SliderField }

export { sliderFieldClassNames }

export { SliderFieldProps }

export { SpinButtonField }

export { spinButtonFieldClassNames }

export { SpinButtonFieldProps }

export { SwitchField }

export { switchFieldClassNames }

export { SwitchFieldProps }

export { TextareaField }

export { textareaFieldClassNames }

export { TextareaFieldProps }

export { Tree }

export { treeClassNames }
Expand Down
Loading