2022-11-23 18:58:43 +01:00
|
|
|
import { SIZES } from '../../../helpers/constants/design-system';
|
|
|
|
|
2022-09-20 19:15:14 +02:00
|
|
|
/**
|
|
|
|
* The ICON_NAMES object contains all the possible icon names.
|
2022-11-23 18:58:43 +01:00
|
|
|
*
|
|
|
|
* Search for an icon: https://metamask.github.io/metamask-storybook/?path=/story/ui-components-component-library-icon-icon-stories-js--default-story
|
|
|
|
*
|
|
|
|
* Add an icon: https://metamask.github.io/metamask-storybook/?path=/docs/ui-components-component-library-icon-icon-stories-js--default-story#adding-a-new-icon
|
|
|
|
*
|
|
|
|
* ICON_NAMES is generated using svgs in app/images/icons and
|
|
|
|
* the generateIconNames script in development/generate-icon-names.js
|
|
|
|
* then stored as an environment variable
|
2022-09-20 19:15:14 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* eslint-disable prefer-destructuring*/ // process.env is not a standard JavaScript object, so we are not able to use object destructuring
|
2022-11-18 17:58:38 +01:00
|
|
|
export const ICON_NAMES = JSON.parse(process.env.ICON_NAMES);
|
2022-11-23 18:58:43 +01:00
|
|
|
export const ICON_SIZES = {
|
|
|
|
XS: SIZES.XS,
|
|
|
|
SM: SIZES.SM,
|
|
|
|
MD: SIZES.MD,
|
|
|
|
LG: SIZES.LG,
|
|
|
|
XL: SIZES.XL,
|
|
|
|
AUTO: SIZES.AUTO,
|
|
|
|
};
|