@clubmed/trident-ui
Version:
Shared ClubMed React UI components
133 lines (132 loc) • 3.75 kB
JavaScript
var g = /* @__PURE__ */ ((e) => (e.black = "black", e.darkGrey = "darkGrey", e.green = "green", e.lavender = "lavender", e.lightGrey = "lightGrey", e.lightSand = "lightSand", e.marygold = "marygold", e.orange = "orange", e.red = "red", e.saffron = "saffron", e.sand = "sand", e.sienna = "sienna", e.ultramarine = "ultramarine", e.verdigris = "verdigris", e.wave = "wave", e.white = "white", e.current = "current", e))(g || {});
const t = {
black: "border-black",
darkGrey: "border-darkGrey",
green: "border-green",
lavender: "border-lavender",
lightGrey: "border-lightGrey",
lightSand: "border-lightSand",
marygold: "border-marygold",
orange: "border-orange",
red: "border-red",
saffron: "border-saffron",
sand: "border-sand",
sienna: "border-sienna",
ultramarine: "border-ultramarine",
verdigris: "border-verdigris",
wave: "border-wave",
white: "border-white",
current: "border-current"
}, a = {
black: "bg-black",
darkGrey: "bg-darkGrey",
green: "bg-green",
lavender: "bg-lavender",
lightGrey: "bg-lightGrey",
lightSand: "bg-lightSand",
marygold: "bg-marygold",
orange: "bg-orange",
red: "bg-red",
saffron: "bg-saffron",
sand: "bg-sand",
sienna: "bg-sienna",
ultramarine: "bg-ultramarine",
verdigris: "bg-verdigris",
wave: "bg-wave",
white: "bg-white",
current: "bg-current"
}, n = {
black: "text-black",
green: "text-green",
lavender: "text-lavender",
lightSand: "text-lightSand",
marygold: "text-marygold",
orange: "text-orange",
red: "text-red",
saffron: "text-saffron",
sand: "text-sand",
sienna: "text-sienna",
ultramarine: "text-ultramarine",
verdigris: "text-verdigris",
wave: "text-wave",
white: "text-white",
darkGrey: "text-darkGrey",
lightGrey: "text-lightGrey",
current: "text-current"
}, i = {
black: "to-black",
green: "to-green",
lavender: "to-lavender",
lightSand: "to-lightSand",
marygold: "to-marygold",
orange: "to-orange",
red: "to-red",
saffron: "to-saffron",
sand: "to-sand",
sienna: "to-sienna",
ultramarine: "to-ultramarine",
verdigris: "to-verdigris",
wave: "to-wave",
white: "to-white",
darkGrey: "to-darkGrey",
lightGrey: "to-lightGrey",
current: "to-current"
}, l = {
lightSand: "black",
marygold: "black",
saffron: "black",
sand: "black",
verdigris: "black",
white: "black",
black: "white",
green: "white",
lavender: "white",
orange: "white",
red: "white",
sienna: "white",
ultramarine: "white",
wave: "white",
darkGrey: "white",
lightGrey: "black",
current: "white"
/* white */
}, o = {
dark: "ultramarine",
exclusiveCollection: "ultramarine",
coreRange: "lightSand",
light: "lightSand",
happyToCare: "verdigris",
joyview: "wave",
urbanOasis: "marygold",
yellow: "saffron"
/* saffron */
}, b = {
lightSand: "text-black",
marygold: "text-black",
saffron: "text-black",
sand: "text-black",
verdigris: "text-black",
white: "text-black",
black: "text-white",
green: "text-white",
lavender: "text-white",
orange: "text-white",
red: "text-white",
sienna: "text-white",
ultramarine: "text-white",
wave: "text-white",
darkGrey: "text-white",
lightGrey: "text-black",
current: "text-current"
}, r = (e, d) => e in d, h = (e) => r(e, t) ? t[e] : `border-${e}`, s = (e) => r(e, a) ? a[e] : `bg-${e}`, c = (e) => r(e, n) ? n[e] : `text-${e}`, w = (e) => r(e, i) ? i[e] : `to-${e}`, u = (e) => b[e] || "text-white", y = (e) => l[e] || "white", v = (e) => o[e] || e;
export {
g as Colors,
s as getBgColor,
h as getBorderColor,
y as getComplementaryColor,
u as getComplementaryTextColor,
w as getGradientToColor,
c as getTextColor,
v as getThemeColor
};
//# sourceMappingURL=colors.js.map