1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
This commit is contained in:
Ayush 2023-02-15 10:04:11 +05:30 committed by GitHub
parent d90e64cd7c
commit caef0735fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 123 additions and 8 deletions

View File

@ -8,7 +8,7 @@ module.exports = {
global: {
lines: 63,
branches: 51,
statements: 62.5,
statements: 62.45,
functions: 55.5,
},
transforms: {

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const Approve = ({ className, size, color }) => (
<svg
className={className}

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const IconCaretDown = ({
size = 24,
color = 'currentColor',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const IconCaretLeft = ({
size = 24,
color = 'currentColor',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const IconCaretRight = ({
size = 24,
color = 'currentColor',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const IconCaretUp = ({
size = 24,
color = 'currentColor',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const IconCheck = ({
size = 24,
color = 'currentColor',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const IconCog = ({
size = 24,
color = 'currentColor',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const IconEyeSlash = ({
size = 24,
color = 'currentColor',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const IconEye = ({
size = 24,
color = 'currentColor',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const IconImport = ({
size = 24,
color = 'currentColor',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const IconPlus = ({
size = 24,
color = 'currentColor',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const IconTokenSearch = ({
size = 24,
color = 'currentColor',

View File

@ -94,6 +94,13 @@ IconItem.propTypes = {
export const DefaultStory = (args) => (
<div>
<Typography
variant={TypographyVariant.H2}
color={TextColor.errorDefault}
boxProps={{ marginBottom: 4 }}
>
DEPRECATED
</Typography>
<Typography variant={TypographyVariant.H2} boxProps={{ marginBottom: 4 }}>
Icons
</Typography>
@ -127,13 +134,6 @@ export const DefaultStory = (args) => (
<IconItem Component={<SearchIcon {...args} />} />
</div>
</Box>
<Typography
variant={TypographyVariant.H2}
color={TextColor.errorDefault}
boxProps={{ marginBottom: 4 }}
>
DEPRECATED
</Typography>
<Box marginBottom={4}>
<div
style={{

View File

@ -3,6 +3,11 @@ import classnames from 'classnames';
import PropTypes from 'prop-types';
import { SEVERITIES } from '../../../helpers/constants/design-system';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
export default function InfoIconInverted({ severity }) {
const className = classnames('info-icon', {
'info-icon--success': severity === SEVERITIES.SUCCESS,

View File

@ -3,6 +3,11 @@ import classnames from 'classnames';
import PropTypes from 'prop-types';
import { SEVERITIES } from '../../../helpers/constants/design-system';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
export default function InfoIcon({ severity }) {
const className = classnames('info-icon', {
'info-icon--success': severity === SEVERITIES.SUCCESS,

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const Interaction = ({ className, size, color }) => (
<svg
className={className}

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
export default function BuyIcon({
width = '17',
height = '21',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
export default function SwapIcon({
width = '15',
height = '15',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const Receive = ({ className, size, color }) => (
<svg
className={className}

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const SearchIcon = ({
size = 24,
color = 'currentColor',

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const Send = ({ className, size, color }) => (
<svg
className={className}

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
export default function Sign({ className, size, color }) {
return (
<svg

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
export default function SunCheck({ reverseColors }) {
const sunColor = reverseColors
? 'var(--color-primary-default)'

View File

@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @deprecated This has been deprecated in favour of the `<Icon />` component in ./ui/components/component-library/icon/icon.js
* See storybook documentation for Icon here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-icon--default-story#icon
*/
const Swap = ({ className, size, color }) => (
<svg
width={size}