@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.
58 lines (57 loc) • 1.79 kB
JavaScript
;
exports.__esModule = true;
exports.TOKENS = exports.SPACINGS = exports.JUSTIFY = exports.DIRECTIONS = exports.ALIGNS = void 0;
let DIRECTIONS = /*#__PURE__*/function (DIRECTIONS) {
DIRECTIONS["ROW"] = "row";
DIRECTIONS["COLUMN"] = "column";
DIRECTIONS["ROWREVERSE"] = "row-reverse";
DIRECTIONS["COLUMNREVERSE"] = "column-reverse";
return DIRECTIONS;
}({});
exports.DIRECTIONS = DIRECTIONS;
let ALIGNS = /*#__PURE__*/function (ALIGNS) {
ALIGNS["START"] = "start";
ALIGNS["END"] = "end";
ALIGNS["CENTER"] = "center";
ALIGNS["STRETCH"] = "stretch";
ALIGNS["BASELINE"] = "baseline";
return ALIGNS;
}({});
exports.ALIGNS = ALIGNS;
let JUSTIFY = /*#__PURE__*/function (JUSTIFY) {
JUSTIFY["START"] = "start";
JUSTIFY["END"] = "end";
JUSTIFY["CENTER"] = "center";
JUSTIFY["BETWEEN"] = "between";
JUSTIFY["AROUND"] = "around";
return JUSTIFY;
}({});
exports.JUSTIFY = JUSTIFY;
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;
}({});
exports.SPACINGS = SPACINGS;
const TokenNames = Object.values(SPACINGS);
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
});
exports.TOKENS = TOKENS;