@slashid/react
Version:
React SDK for the /id platform
15 lines • 1.1 kB
TypeScript
export declare const pixelValueRegExp: RegExp;
export declare const hexValueRegExp: RegExp;
export declare const rgbaValueRegExp: RegExp;
export declare const fontFamilyRegExp: RegExp;
export declare const displayValues: string[];
export declare const googleFonts: Set<string>;
export declare const supportedFonts: string[];
export declare const parseAndAssertMatch: (input: string | number, regexp: RegExp) => string | null;
export declare const pxSanitiser: (input: string | number | (string | number)[]) => string | number | null;
export declare const hexSanitiser: (input: string | number | (string | number)[]) => string | number | null;
export declare const rgbaSanitiser: (input: string | number | (string | number)[]) => string | number | null;
export declare const exactMatchSanitiser: <T extends string | number>(values: T[]) => (input: T) => T | null;
export declare const filterDisallowedFonts: (fonts: string[]) => string[];
export declare const fontFamilySanitiser: (input: string | number | (string | number)[]) => string | number | null;
//# sourceMappingURL=css-sanitisation.d.ts.map