Skip to content

Commit aa83775

Browse files
author
Kubit
committed
Deprecate components
1 parent 108b424 commit aa83775

File tree

19 files changed

+76
-19
lines changed

19 files changed

+76
-19
lines changed

src/components/checkboxWithLabel/checkboxWithLabelControlled.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ const CheckboxWithLabelBoundary = <V extends string | unknown>(
5757
</ErrorBoundary>
5858
);
5959

60+
/**
61+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the CheckBox component
62+
*/
6063
const CheckboxWithLabelControlled = React.forwardRef(CheckboxWithLabelBoundary) as <
6164
V extends string | unknown,
6265
>(

src/components/checkboxWithLabel/checkboxWithLabelUncontrolled.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ const CheckboxWithLabelUncontrolledComponent = <V extends string | unknown>(
2222
);
2323
};
2424

25+
/**
26+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the CheckBox component
27+
*/
2528
const CheckboxWithLabelUncontrolled = React.forwardRef(CheckboxWithLabelUncontrolledComponent) as <
2629
V extends string | unknown,
2730
>(

src/components/confirmationMessage/confirmationMessage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ const ConfirmationMessageBoundary = <V extends string | unknown>(
5252
</ErrorBoundary>
5353
);
5454

55+
/**
56+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release.
57+
*/
5558
const ConfirmationMessage = React.forwardRef(ConfirmationMessageBoundary) as <
5659
V extends string | unknown,
5760
>(

src/components/cssAnimation/cssAnimation.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ const CssAnimationComponent = (
107107
};
108108

109109
/**
110-
* @description
110+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release.
111+
*
111112
* CssAnimation component is a wrapper component that can be used to wrap other components.
112113
*
113114
* @param {React.PropsWithChildren<ICssAnimation>} props

src/components/emptyState/emptyState.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ const EmptyStateBoundary = <V extends string | unknown>(
3939
</ErrorBoundary>
4040
);
4141

42+
/**
43+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release.
44+
*/
4245
const EmptyState = React.forwardRef(EmptyStateBoundary) as <V extends string | unknown>(
4346
props: IEmptyState<V> & {
4447
ref?: React.ForwardedRef<HTMLDivElement> | undefined | null;

src/components/footer/footer.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ const FooterBoundary = <V extends string | unknown>(
4949
</ErrorBoundary>
5050
);
5151

52+
/**
53+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the CheckBox component
54+
*/
5255
const Footer = React.forwardRef(FooterBoundary) as <V extends string | unknown>(
5356
props: React.PropsWithChildren<IFooter<V>> & {
5457
ref?: React.ForwardedRef<HTMLElement> | undefined | null;

src/components/header/header.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ const HeaderBoundary = <V extends string | unknown>(
4242
</ErrorBoundary>
4343
);
4444

45+
/**
46+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the NavBar component
47+
*/
4548
const Header = React.forwardRef(HeaderBoundary) as <V extends string | unknown>(
4649
props: IHeader<V> & {
4750
ref?: React.ForwardedRef<HTMLDivElement> | undefined | null;

src/components/headerStructure/headerStructure.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ const HeaderStructureBoundary = <V extends string | unknown>(
5454
</ErrorBoundary>
5555
);
5656

57+
/**
58+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the NavBar component
59+
*/
5760
const HeaderStructure = React.forwardRef(HeaderStructureBoundary) as <V extends string | unknown>(
5861
props: IHeaderStructure<V> & {
5962
ref?: React.ForwardedRef<HTMLDivElement> | undefined | null;

src/components/icon/iconHost.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,11 @@ const IconHostComponent = (
5252
);
5353
};
5454

55+
/**
56+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release.
57+
*
58+
* IconHost is a component that serves as a host for icons.
59+
* @param {React.PropsWithChildren<IIconHost>} props
60+
* @returns {JSX.Element}
61+
*/
5562
export const IconHost = React.forwardRef(IconHostComponent);

src/components/lineSeparator/lineSeparator.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ const LineSeparator = React.forwardRef(LineSeparatorBoundary) as <
7171
) => ReturnType<typeof LineSeparatorBoundary>;
7272

7373
/**
74-
* @description
74+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Consider using an alternative component.
75+
*
7576
* LineSeparator component is a wrapper component that adds a line separator between two components.
7677
* @param {React.PropsWithChildren<ILineSeparator<V, S>>} props
7778
* @returns {JSX.Element}

0 commit comments

Comments
 (0)