UNPKG

@brizy/ui

Version:
22 lines (21 loc) 657 B
import { ApplyProperties } from "../types"; interface CustomSize { maxW: number; maxH: number; } export type Size = "small" | "middle" | "large" | "xlarge" | CustomSize; export type MaxBy = "width" | "height" | "both"; export declare const getWidthAndHeight: (size: Size) => { maxWidth: string; maxHeight: string; }; export declare const getSizeProperties: ({ size, maxBy, }: { size: Size; maxBy: MaxBy; }) => ApplyProperties<{ "--brz-ui-image-pointer-max-width"?: string; "--brz-ui-image-pointer-max-height"?: string; "--brz-ui-image-pointer-width"?: string; "--brz-ui-image-pointer-height"?: string; }>; export {};