@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
25 lines (24 loc) • 994 B
TypeScript
import { Property } from "../node_modules/csstype/index.js";
//#region src/utils/styles.d.ts
/** Concatenates individual className arguments and returns a single string. */
declare function cs(...classNames: any[]): string;
/** Parses HSL color code. */
declare function parseHSL(color: string): {
h: number;
s: number;
l: number;
};
/** Converts hex color value to rgb with optional alpha property. */
declare function hexToRGBA(hex: string, alpha?: number): string;
declare function vuiColorToRGBA(color: string, alpha?: number): string;
/** Converts hsl color value to rgb with optional alpha property. */
declare function HSLToRGBA(h: number, s: number, l: number, alpha?: number): string;
/** Styling to add ellipsis for long texts. */
declare const ellipsisOverflow: {
overflow: string;
textOverflow: string;
whiteSpace: Property.WhiteSpace;
};
//#endregion
export { HSLToRGBA, cs, ellipsisOverflow, hexToRGBA, parseHSL, vuiColorToRGBA };
//# sourceMappingURL=styles.d.ts.map