UNPKG

@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.

49 lines 1.54 kB
export let DIRECTIONS = /*#__PURE__*/function (DIRECTIONS) { DIRECTIONS["ROW"] = "row"; DIRECTIONS["COLUMN"] = "column"; DIRECTIONS["ROWREVERSE"] = "row-reverse"; DIRECTIONS["COLUMNREVERSE"] = "column-reverse"; return DIRECTIONS; }({}); export let ALIGNS = /*#__PURE__*/function (ALIGNS) { ALIGNS["START"] = "start"; ALIGNS["END"] = "end"; ALIGNS["CENTER"] = "center"; ALIGNS["STRETCH"] = "stretch"; ALIGNS["BASELINE"] = "baseline"; return ALIGNS; }({}); export let JUSTIFY = /*#__PURE__*/function (JUSTIFY) { JUSTIFY["START"] = "start"; JUSTIFY["END"] = "end"; JUSTIFY["CENTER"] = "center"; JUSTIFY["BETWEEN"] = "between"; JUSTIFY["AROUND"] = "around"; return JUSTIFY; }({}); export let SPACINGS = /*#__PURE__*/function (SPACINGS) { SPACINGS["NONE"] = "none"; SPACINGS["XXXSMALL"] = "XXXSmall"; SPACINGS["XXSMALL"] = "XXSmall"; SPACINGS["XSMALL"] = "XSmall"; SPACINGS["SMALL"] = "small"; SPACINGS["MEDIUM"] = "medium"; SPACINGS["LARGE"] = "large"; SPACINGS["XLARGE"] = "XLarge"; SPACINGS["XXLARGE"] = "XXLarge"; SPACINGS["XXXLARGE"] = "XXXLarge"; return SPACINGS; }({}); const TokenNames = Object.values(SPACINGS); export const TOKENS = theme => ({ none: "", XXXSmall: theme.orbit.spaceXXXSmall, XXSmall: theme.orbit.spaceXXSmall, XSmall: theme.orbit.spaceXSmall, small: theme.orbit.spaceSmall, medium: theme.orbit.spaceMedium, large: theme.orbit.spaceLarge, XLarge: theme.orbit.spaceXLarge, XXLarge: theme.orbit.spaceXXLarge, XXXLarge: theme.orbit.spaceXXXLarge });