help text
diff --git a/ui/components/component-library/help-text/help-text.js b/ui/components/component-library/help-text/help-text.js
index fb3d77bd6..354207d09 100644
--- a/ui/components/component-library/help-text/help-text.js
+++ b/ui/components/component-library/help-text/help-text.js
@@ -9,7 +9,9 @@ import {
SEVERITIES,
} from '../../../helpers/constants/design-system';
-import { Text } from '../text/deprecated';
+import Box from '../../ui/box';
+
+import { Text } from '../text';
export const HelpText = ({
severity,
@@ -60,7 +62,7 @@ HelpText.propTypes = {
*/
className: PropTypes.string,
/**
- * HelpText also accepts all Text and Box props
+ * HelpText also accepts all Box props
*/
- ...Text.propTypes,
+ ...Box.propTypes,
};
diff --git a/ui/components/component-library/help-text/help-text.test.js b/ui/components/component-library/help-text/help-text.test.js
index 685d32b31..e43fb54c5 100644
--- a/ui/components/component-library/help-text/help-text.test.js
+++ b/ui/components/component-library/help-text/help-text.test.js
@@ -40,10 +40,10 @@ describe('HelpText', () => {
info
>,
);
- expect(getByText('error')).toHaveClass('box--color-error-default');
- expect(getByText('success')).toHaveClass('box--color-success-default');
- expect(getByText('warning')).toHaveClass('box--color-warning-default');
- expect(getByText('info')).toHaveClass('box--color-info-default');
+ expect(getByText('error')).toHaveClass('mm-box--color-error-default');
+ expect(getByText('success')).toHaveClass('mm-box--color-success-default');
+ expect(getByText('warning')).toHaveClass('mm-box--color-warning-default');
+ expect(getByText('info')).toHaveClass('mm-box--color-info-default');
});
it('should render with different colors', () => {
const { getByText } = render(
@@ -54,12 +54,12 @@ describe('HelpText', () => {
text muted
>,
);
- expect(getByText('default')).toHaveClass('box--color-text-default');
- expect(getByText('text default')).toHaveClass('box--color-text-default');
+ expect(getByText('default')).toHaveClass('mm-box--color-text-default');
+ expect(getByText('text default')).toHaveClass('mm-box--color-text-default');
expect(getByText('text alternative')).toHaveClass(
- 'box--color-text-alternative',
+ 'mm-box--color-text-alternative',
);
- expect(getByText('text muted')).toHaveClass('box--color-text-muted');
+ expect(getByText('text muted')).toHaveClass('mm-box--color-text-muted');
});
it('should render with a different html element if children is an object', () => {
const { getByText, getByTestId } = render(
diff --git a/ui/components/component-library/input/__snapshots__/input.test.js.snap b/ui/components/component-library/input/__snapshots__/input.test.js.snap
index 4e663724e..90ee2b97f 100644
--- a/ui/components/component-library/input/__snapshots__/input.test.js.snap
+++ b/ui/components/component-library/input/__snapshots__/input.test.js.snap
@@ -4,7 +4,7 @@ exports[`Input should render correctly 1`] = `
diff --git a/ui/components/component-library/input/input.js b/ui/components/component-library/input/input.js
index 3a67a6919..f4c7510bd 100644
--- a/ui/components/component-library/input/input.js
+++ b/ui/components/component-library/input/input.js
@@ -10,7 +10,7 @@ import {
import Box from '../../ui/box';
-import { Text } from '../text/deprecated';
+import { Text } from '..';
import { INPUT_TYPES } from './input.constants';
diff --git a/ui/components/component-library/label/__snapshots__/label.test.js.snap b/ui/components/component-library/label/__snapshots__/label.test.js.snap
index 3691978d9..e2d20a61f 100644
--- a/ui/components/component-library/label/__snapshots__/label.test.js.snap
+++ b/ui/components/component-library/label/__snapshots__/label.test.js.snap
@@ -3,7 +3,7 @@
exports[`label should render text inside the label 1`] = `
diff --git a/ui/components/component-library/label/label.js b/ui/components/component-library/label/label.js
index 4ad84b79d..7eca591b2 100644
--- a/ui/components/component-library/label/label.js
+++ b/ui/components/component-library/label/label.js
@@ -7,7 +7,7 @@ import {
Display,
AlignItems,
} from '../../../helpers/constants/design-system';
-import { Text } from '../text/deprecated';
+import { Text } from '..';
export const Label = ({ htmlFor, className, children, ...props }) => (
diff --git a/ui/components/component-library/modal-header/modal-header.stories.tsx b/ui/components/component-library/modal-header/modal-header.stories.tsx
index 1193d2e48..299221ca5 100644
--- a/ui/components/component-library/modal-header/modal-header.stories.tsx
+++ b/ui/components/component-library/modal-header/modal-header.stories.tsx
@@ -10,8 +10,7 @@ import {
JustifyContent,
} from '../../../helpers/constants/design-system';
-import { AvatarAccount, BUTTON_SIZES, Button } from '..';
-import { Text } from '../text/deprecated';
+import { AvatarAccount, BUTTON_SIZES, Button, Text } from '..';
import { ModalHeader } from './modal-header';
import README from './README.mdx';
diff --git a/ui/components/component-library/modal-header/modal-header.tsx b/ui/components/component-library/modal-header/modal-header.tsx
index 91bdd502b..235f7dff3 100644
--- a/ui/components/component-library/modal-header/modal-header.tsx
+++ b/ui/components/component-library/modal-header/modal-header.tsx
@@ -1,7 +1,6 @@
import React from 'react';
import classnames from 'classnames';
-import { HeaderBase, ButtonIcon, ButtonIconSize, IconName, ValidTag } from '..';
-import { Text } from '../text/deprecated';
+import { HeaderBase, Text, ButtonIcon, ButtonIconSize, IconName } from '..';
import {
TextVariant,
TextAlign,
@@ -52,7 +51,7 @@ export const ModalHeader: React.FC = ({
>
{typeof children === 'string' ? (
diff --git a/ui/components/component-library/picker-network/__snapshots__/picker-network.test.js.snap b/ui/components/component-library/picker-network/__snapshots__/picker-network.test.js.snap
index d92ee9fef..510227656 100644
--- a/ui/components/component-library/picker-network/__snapshots__/picker-network.test.js.snap
+++ b/ui/components/component-library/picker-network/__snapshots__/picker-network.test.js.snap
@@ -7,12 +7,12 @@ exports[`PickerNetwork should render the label inside the PickerNetwork 1`] = `
data-testid="picker-network"
>
I
Imported
diff --git a/ui/components/component-library/picker-network/picker-network.js b/ui/components/component-library/picker-network/picker-network.js
index eb9c8a9bd..29b52c33d 100644
--- a/ui/components/component-library/picker-network/picker-network.js
+++ b/ui/components/component-library/picker-network/picker-network.js
@@ -1,9 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
-import { AvatarNetwork, IconName, Icon, IconSize } from '..';
-import { Text } from '../text/deprecated';
-import Box from '../../ui/box';
import {
AlignItems,
DISPLAY,
@@ -13,6 +10,8 @@ import {
IconColor,
BackgroundColor,
} from '../../../helpers/constants/design-system';
+import Box from '../../ui/box';
+import { AvatarNetwork, IconName, Icon, IconSize, Text } from '..';
export const PickerNetwork = ({
className,
@@ -68,7 +67,7 @@ PickerNetwork.propTypes = {
/**
* It accepts all the props from AvatarNetwork
*/
- avatarNetworkProps: PropTypes.shape(AvatarNetwork.propTypes),
+ avatarNetworkProps: PropTypes.object,
/**
* It accepts all the props from Icon
*/
diff --git a/ui/components/component-library/popover-header/__snapshots__/popover-header.test.tsx.snap b/ui/components/component-library/popover-header/__snapshots__/popover-header.test.tsx.snap
index 1525bd839..06201d78f 100644
--- a/ui/components/component-library/popover-header/__snapshots__/popover-header.test.tsx.snap
+++ b/ui/components/component-library/popover-header/__snapshots__/popover-header.test.tsx.snap
@@ -10,7 +10,7 @@ exports[`PopoverHeader should render PopoverHeader correctly 1`] = `
class="box box--flex-direction-row box--width-full"
>
PopoverHeader
diff --git a/ui/components/component-library/popover-header/popover-header.tsx b/ui/components/component-library/popover-header/popover-header.tsx
index 1cb83ce4b..1bd004bef 100644
--- a/ui/components/component-library/popover-header/popover-header.tsx
+++ b/ui/components/component-library/popover-header/popover-header.tsx
@@ -1,12 +1,11 @@
import React from 'react';
import classnames from 'classnames';
-import { HeaderBase, ButtonIcon, ButtonIconSize, IconName } from '..';
-import { Text } from '../text/deprecated';
+import { HeaderBase, ButtonIcon, ButtonIconSize, IconName, Text } from '..';
import {
IconColor,
TextVariant,
TextAlign,
- Color,
+ TextColor,
} from '../../../helpers/constants/design-system';
import { useI18nContext } from '../../../hooks/useI18nContext';
import { PopoverHeaderProps } from '.';
@@ -58,7 +57,7 @@ export const PopoverHeader: React.FC = ({
{children}
diff --git a/ui/components/component-library/tag-url/__snapshots__/tag-url.test.js.snap b/ui/components/component-library/tag-url/__snapshots__/tag-url.test.js.snap
index ffdde8025..5407e13ac 100644
--- a/ui/components/component-library/tag-url/__snapshots__/tag-url.test.js.snap
+++ b/ui/components/component-library/tag-url/__snapshots__/tag-url.test.js.snap
@@ -7,7 +7,7 @@ exports[`TagUrl should render the label inside the TagUrl 1`] = `
data-testid="tag-url"
>
https://app.uniswap.org
diff --git a/ui/components/component-library/tag-url/tag-url.js b/ui/components/component-library/tag-url/tag-url.js
index 94e7d608e..fbfa0f4b0 100644
--- a/ui/components/component-library/tag-url/tag-url.js
+++ b/ui/components/component-library/tag-url/tag-url.js
@@ -1,8 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
-import Box from '../../ui/box/box';
-import { Text } from '../text/deprecated';
import {
AlignItems,
BackgroundColor,
@@ -13,7 +11,8 @@ import {
Size,
TextVariant,
} from '../../../helpers/constants/design-system';
-import { AvatarFavicon, ButtonLink, IconName, Icon, IconSize } from '..';
+import Box from '../../ui/box/box';
+import { AvatarFavicon, ButtonLink, IconName, Icon, IconSize, Text } from '..';
export const TagUrl = ({
label,
@@ -85,7 +84,7 @@ TagUrl.propTypes = {
/**
* It accepts all the props from Avatar Favicon
*/
- avatarFaviconProps: PropTypes.shape(AvatarFavicon.propTypes),
+ avatarFaviconProps: PropTypes.object,
/**
* It accepts all the props from Icon
*/
@@ -97,7 +96,7 @@ TagUrl.propTypes = {
/**
* It accepts all the props from Text Component
*/
- labelProps: PropTypes.shape(Text.propTypes),
+ labelProps: PropTypes.object,
/**
* If we want a button in TagUrl component.
*/
@@ -105,7 +104,7 @@ TagUrl.propTypes = {
/**
* It accepts all the props from ButtonLink
*/
- actionButtonProps: PropTypes.shape(ButtonLink.propTypes),
+ actionButtonProps: PropTypes.object,
/**
* Additional classNames to be added to the TagUrl component
*/
diff --git a/ui/components/component-library/tag/__snapshots__/tag.test.js.snap b/ui/components/component-library/tag/__snapshots__/tag.test.js.snap
index a07e42e0e..e0d709483 100644
--- a/ui/components/component-library/tag/__snapshots__/tag.test.js.snap
+++ b/ui/components/component-library/tag/__snapshots__/tag.test.js.snap
@@ -7,7 +7,7 @@ exports[`Tag should render the label inside the tag and match snapshot 1`] = `
data-testid="tag"
>
Imported
diff --git a/ui/components/component-library/tag/tag.js b/ui/components/component-library/tag/tag.js
index 61191db62..da927ba02 100644
--- a/ui/components/component-library/tag/tag.js
+++ b/ui/components/component-library/tag/tag.js
@@ -1,8 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
-import Box from '../../ui/box/box';
-import { Text } from '../text/deprecated';
import {
AlignItems,
BackgroundColor,
@@ -12,6 +10,8 @@ import {
JustifyContent,
TextVariant,
} from '../../../helpers/constants/design-system';
+import Box from '../../ui/box/box';
+import { Text } from '..';
export const Tag = ({ label, className, labelProps, ...props }) => {
return (
@@ -43,7 +43,7 @@ Tag.propTypes = {
/**
* The label props of the component. Most Text component props can be used
*/
- labelProps: PropTypes.shape(Text.propTypes),
+ labelProps: PropTypes.object,
/**
* Additional classNames to be added to the Tag component
*/
diff --git a/ui/components/component-library/text-field-search/__snapshots__/text-field-search.test.js.snap b/ui/components/component-library/text-field-search/__snapshots__/text-field-search.test.js.snap
index 405e0fd7e..4f2c22dc7 100644
--- a/ui/components/component-library/text-field-search/__snapshots__/text-field-search.test.js.snap
+++ b/ui/components/component-library/text-field-search/__snapshots__/text-field-search.test.js.snap
@@ -11,7 +11,7 @@ exports[`TextFieldSearch should render correctly 1`] = `
/>