@wix/design-system
Version:
@wix/design-system
25 lines • 890 B
TypeScript
import React from 'react';
import gradient from 'gradient-parser';
import resolveColor from 'color';
export declare const parseColor: (fill: string) => resolveColor | undefined;
export declare const parseGradient: (fill: string) => gradient.GradientNode[] | undefined;
export declare const parseUrl: (fill: string) => string | undefined;
export declare const getBackgroundStyles: (fill: React.ReactNode) => {
backgroundColor: any;
}[] | {
backgroundImage: string;
backgroundSize: string;
backgroundPosition: string;
backgroundRepeat: string;
} | {
backgroundImage: string;
backgroundSize?: undefined;
backgroundPosition?: undefined;
backgroundRepeat?: undefined;
} | {
backgroundImage?: undefined;
backgroundSize?: undefined;
backgroundPosition?: undefined;
backgroundRepeat?: undefined;
};
//# sourceMappingURL=FillPreview.utils.d.ts.map