UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

25 lines (24 loc) 1.16 kB
import { CoreTypes } from '../../core-types'; export declare function cleanupImportantFlags(value: unknown, propertyName: string): string; /** * Split on whitespace outside of any parenthesis, so function values keep their * arguments together whatever their nesting - e.g. `color-mix(in srgb, var(--x) 35%, transparent)`. * Consecutive whitespace produces no empty parts. */ export declare function splitOnTopLevelWhiteSpace(value: string): string[]; /** * Like {@link splitOnTopLevelWhiteSpace}, but commas separate too - the tolerant * form positioning shorthands like `border-color` accept. */ export declare function splitOnTopLevelSpacesAndCommas(value: string): string[]; /** * Split on commas outside of any parenthesis - e.g. `rgb(a, b, c), rgb(d, e, f)` * splits only between the two functions. Empty parts are kept, like `String.split`. */ export declare function splitOnTopLevelComma(value: string): string[]; export declare function parseCSSCommaSeparatedListOfValues(value: string): string[]; export declare function parseCSSShorthand(value: string): { values: Array<CoreTypes.LengthType>; color: string; inset: boolean; };