@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com's products.
39 lines • 1.34 kB
TypeScript
import type { CSSProperties } from "react";
import type { ObjectProperty } from "../types";
import { QUERIES } from "../../utils/mediaQuery";
export declare enum SIZES {
NONE = "none",
FIFTY = "50",
ONE_HUNDRED = "100",
ONE_HUNDRED_FIFTY = "150",
TWO_HUNDRED = "200",
THREE_HUNDRED = "300",
FOUR_HUNDRED = "400",
FIVE_HUNDRED = "500",
SIX_HUNDRED = "600",
EIGHT_HUNDRED = "800",
ONE_THOUSAND = "1000",
ONE_THOUSAND_TWO_HUNDRED = "1200",
ONE_THOUSAND_SIX_HUNDRED = "1600"
}
export declare const marginClasses: {
[K in QUERIES | SIZES]: K extends QUERIES ? Record<SIZES, string> : string;
};
export declare const marginTopClasses: {
[K in QUERIES | SIZES]: K extends QUERIES ? Record<SIZES, string> : string;
};
export declare const marginRightClasses: {
[K in QUERIES | SIZES]: K extends QUERIES ? Record<SIZES, string> : string;
};
export declare const marginBottomClasses: {
[K in QUERIES | SIZES]: K extends QUERIES ? Record<SIZES, string> : string;
};
export declare const marginLeftClasses: {
[K in QUERIES | SIZES]: K extends QUERIES ? Record<SIZES, string> : string;
};
export declare const getMargin: (margin: CSSProperties["margin"] | ObjectProperty) => {
vars: object;
classes: string[];
};
export default getMargin;
//# sourceMappingURL=margin.d.ts.map