UNPKG

@lax-wp/design-system

Version:

A comprehensive React + TypeScript design system built with Vite, providing reusable UI components for the LAX web portal applications. Features a complete set of form components, data display elements, and interactive controls with full TypeScript suppor

25 lines (24 loc) 866 B
/** * Parses a JSON string and returns the parsed JSON object * @param json - The JSON string to parse * @returns The parsed JSON object or null if the JSON is invalid */ export declare const parseJson: (json: string) => any; /** * Generates a random hexadecimal string of specified length * @param length - The length of the hex string to generate * @returns A random hex string */ export declare const randomHexString: (length: number) => string; /** * Escape special regex characters in a string * @param string - The string to escape * @returns The escaped string */ export declare const escapeRegExp: (string: string) => string; /** * Filters top level paths from a list of paths * @param paths - The list of paths to filter * @returns The filtered list of top level paths */ export declare const filterTopLevelPaths: (paths: string[]) => string[];