UNPKG

gadgets

Version:

Reusable React UI widgets - This is my widget library. There are many like it, but this one is mine...

39 lines (38 loc) 936 B
export declare enum Sizing { xxsmall = "xxsmall", xsmall = "xsmall", small = "small", normal = "normal", medium = "medium", large = "large", xlarge = "xlarge", xxlarge = "xxlarge", inherit = "inherit" } export interface FontStyle { size: number; sizerem: string; sizepx: string; style: string; } export interface Styling { type: Sizing; borderStyle: string; boxStyle: string; font: FontStyle; rectStyle: string; } export declare const borderStyle: any; export declare const boxStyle: any; export declare const fontStyle: any; export declare const rectStyle: any; export declare const lineHeightStyle: any; export declare class Sizes { private _sizes; private readonly _lineHeightRatio; private readonly _rectWidth; private readonly _rectHeight; static instance(baseFontSize: number): Sizes; private constructor(); toString(): string; }