@atlaskit/logo
Version:
A logo is a visual representation of a brand or product. It can be a word or an image, or a combination of both.
38 lines (34 loc) • 1.52 kB
JavaScript
/**
* These are the default parameters for LogoProps if the user does not specify values.
*/
export var defaultLogoParams = {
iconColor: 'inherit',
label: '',
size: 'medium',
textColor: 'currentColor'
};
export var legacyDefaultLogoParams = {
iconGradientStart: 'inherit',
iconGradientStop: 'inherit'
};
/**
* The props for the <Wrapper /> that takes the svg and turns it into a component.
*/
/**
* In order to pass linting rules, these props were renamed to be more descriptive i.e. props renamed to LogoProps and
* defaultParams to defaultLogoParams. However, this is a breaking change as it is a file with public entry points. The code
* below is here to keep Logo backwards compatible.
* See the ticket here: https://product-fabric.atlassian.net/browse/DSP-4086.
*
* Note that some consumers are accessing this using like so: import { Props } from '@atlaskit/logo/constants', this should
* still work despite `LogoProps` being in a different types.tsx file.
*
*/
/**
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-175 Internal documentation for deprecation (no external access)} This has been renamed, please import `LogoProps` instead.
*/
// eslint-disable-next-line @repo/internal/react/consistent-types-definitions
/**
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-176 Internal documentation for deprecation (no external access)} This has been renamed, please import `defaultLogoParams` instead.
*/
export var DefaultProps = defaultLogoParams;