@wordpress/global-styles-ui
Version:
Global Styles UI components for WordPress.
15 lines • 674 B
TypeScript
export interface ShadowObject {
x: string;
y: string;
blur: string;
spread: string;
color: string;
inset: boolean;
}
export declare function getShadowParts(shadow: string): string[];
export declare function shadowStringToObject(shadowValue: string): ShadowObject;
export declare function shadowObjectToString(shadowObj: ShadowObject): string;
export type TextShadowObject = Pick<ShadowObject, 'x' | 'y' | 'blur' | 'color'>;
export declare function textShadowStringToObject(textShadowValue: string): TextShadowObject;
export declare function textShadowObjectToString(textShadowObj: TextShadowObject): string;
//# sourceMappingURL=shadow-utils.d.ts.map