mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
66292330fe
* button to TS migration working demo style props broken mapping - need switch working types file working types fix dependent imports of Button variant mapping working types fix lint fix test fix ButtonSize issue on QuizContent box fix test if this works fix button being used on QuizContent fix button_variant import readme fix * fix button import * fix primary button as anchor hover * deprecated * button to TS migration fix lint fix test * fix rebase issue * fix rebase issue * lint fix
24 lines
718 B
TypeScript
24 lines
718 B
TypeScript
import { Size } from '../../../helpers/constants/design-system';
|
|
|
|
export { Button } from './button';
|
|
export { ButtonSize, ButtonVariant } from './button.types';
|
|
|
|
/**
|
|
* @deprecated `BUTTON_VARIANT` const has been deprecated in favor of the `ButtonVariant` enum which can still be imported from `ui/components/component-library`
|
|
*/
|
|
export const BUTTON_SIZES = {
|
|
SM: Size.SM,
|
|
MD: Size.MD,
|
|
LG: Size.LG,
|
|
INHERIT: Size.inherit,
|
|
AUTO: Size.auto,
|
|
};
|
|
/**
|
|
* @deprecated `BUTTON_SIZES` const has been deprecated in favor of the `ButtonSize` enum which can still be imported from `ui/components/component-library`
|
|
*/
|
|
export const BUTTON_VARIANT = {
|
|
PRIMARY: 'primary',
|
|
SECONDARY: 'secondary',
|
|
LINK: 'link',
|
|
};
|