@patreon/studio
Version:
Patreon Studio Design System
13 lines (12 loc) • 807 B
TypeScript
import type { IconProps } from 'components/Icon/types';
import type { LoadingSpinnerProps } from '~/components/LoadingSpinner/types';
import type { ButtonProps } from './types';
export declare const getSpinnerColor: ({ variant, unfilled, }: Pick<ButtonProps, "variant" | "unfilled">) => Required<LoadingSpinnerProps>["color"];
interface SizeProps extends Pick<ButtonProps, 'size' | 'icon' | 'disclosureIcon'> {
isMobile: boolean;
hasLabel?: boolean;
}
export declare const getDimensions: ({ size, isMobile }: SizeProps) => "32px" | "40px" | "64px" | "36px" | "44px" | "28px" | "52px";
export declare const getPadding: ({ size, isMobile, hasLabel, icon, disclosureIcon }: SizeProps) => string;
export declare const getIconSize: (size?: ButtonProps["size"]) => Required<IconProps>["size"];
export {};