@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.
35 lines (34 loc) • 3.41 kB
JavaScript
"use strict";
exports.__esModule = true;
exports.weightClasses = exports.typeClasses = exports.textLinkCommonClasses = exports.sizeClasses = exports.backgroundClasses = void 0;
var _consts = require("../consts");
const typeClasses = exports.typeClasses = {
[]: "text-primary-foreground [&_a:not(.orbit-text-link)]:text-link-primary-foreground hover:[&_a:not(.orbit-text-link)]:text-link-primary-foreground-hover active:[&_a:not(.orbit-text-link)]:text-link-primary-foreground-active",
[]: "text-secondary-foreground [&_a:not(.orbit-text-link)]:text-link-secondary-foreground hover:[&_a:not(.orbit-text-link)]:text-link-secondary-foreground-hover active:[&_a:not(.orbit-text-link)]:text-link-secondary-foreground-active",
[]: "text-success-foreground [&_a:not(.orbit-text-link)]:text-link-success-foreground hover:[&_a:not(.orbit-text-link)]:text-link-success-foreground-hover active:[&_a:not(.orbit-text-link)]:text-link-success-foreground-active",
[]: "text-info-foreground [&_a:not(.orbit-text-link)]:text-link-info-foreground hover:[&_a:not(.orbit-text-link)]:text-link-info-foreground-hover active:[&_a:not(.orbit-text-link)]:text-link-info-foreground-active",
[]: "text-warning-foreground [&_a:not(.orbit-text-link)]:text-link-warning-foreground hover:[&_a:not(.orbit-text-link)]:text-link-warning-foreground-hover active:[&_a:not(.orbit-text-link)]:text-link-warning-foreground-active",
[]: "text-critical-foreground [&_a:not(.orbit-text-link)]:text-link-critical-foreground hover:[&_a:not(.orbit-text-link)]:text-link-critical-foreground-hover active:[&_a:not(.orbit-text-link)]:text-link-critical-foreground-active",
[]: "text-white-foreground [&_a:not(.orbit-text-link)]:text-link-white-foreground hover:[&_a:not(.orbit-text-link)]:text-link-white-foreground-hover active:[&_a:not(.orbit-text-link)]:text-link-white-foreground-active"
};
const backgroundClasses = exports.backgroundClasses = {
[]: "bg-text-primary-background",
[]: "bg-text-secondary-background",
[]: "bg-text-info-background",
[]: "bg-text-success-background",
[]: "bg-text-warning-background",
[]: "bg-text-critical-background",
[]: "bg-text-white-background"
};
const sizeClasses = exports.sizeClasses = {
[]: "text-small leading-small",
[]: "text-normal leading-normal",
[]: "text-large leading-large",
[]: "text-extra-large leading-extra-large"
};
const weightClasses = exports.weightClasses = {
[]: "font-normal",
[]: "font-medium",
[]: "font-bold"
};
const textLinkCommonClasses = exports.textLinkCommonClasses = ["[&_a:not(.orbit-text-link)]:font-medium", "[&_a:not(.orbit-text-link)]:underline", "hover:[&_a:not(.orbit-text-link)]:no-underline", "active:[&_a:not(.orbit-text-link)]:no-underline", "hover:[&_a:not(.orbit-text-link)]:outline-none", "active:[&_a:not(.orbit-text-link)]:outline-none"];