@atlaskit/icon
Version:
An icon is a symbol representing a command, device, directory, or common action.
29 lines (28 loc) • 1.01 kB
TypeScript
import type { Size } from '../types';
import { type CSSObject } from '@emotion/react';
export declare const commonSVGStyles: CSSObject;
export declare const sizeStyleMap: {
small: import("@emotion/react").SerializedStyles;
medium: import("@emotion/react").SerializedStyles;
large: import("@emotion/react").SerializedStyles;
xlarge: import("@emotion/react").SerializedStyles;
};
/**
* Returns the width of the icon's parent span. This function has
* special behaviour to deal with icon-file-type specifically.
*
* The reality is the SVG still has its own dimensions, so this is
* a secondary fallback which in 95% of cases is not required.
* It's only really being kept to maintain backward compatability.
*/
export declare const getIconSize: ({ width, height, size, }: {
size?: Size | undefined;
width?: number | undefined;
height?: number | undefined;
}) => {
readonly width: string;
readonly height: string;
} | {
width: number;
height: number;
} | undefined;