@wix/css-property-parser
Version:
A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance
14 lines (13 loc) • 627 B
TypeScript
import { TextTransformValue } from '../types';
export type { TextTransformValue, TextTransformKeyword } from '../types';
/**
* Parses a CSS text-transform property string into structured components
* Follows MDN specification: https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform
*/
export declare function parse(value: string): TextTransformValue | null;
/**
* Converts a parsed text-transform back to a CSS value string
* @param parsed - The parsed text-transform object
* @returns CSS value string or null if invalid
*/
export declare function toCSSValue(parsed: TextTransformValue | null): string | null;