fui-fancyui
Version:
FancyUI Libary
21 lines (20 loc) • 611 B
JavaScript
import { generateNormalStyle as m } from "./utils/generateNormalStyle.js";
import { generateOutlineStyle as a } from "./utils/generateOutlineStyle.js";
import { generateTransparentStyle as i } from "./utils/generateTransparentStyle.js";
import f from "../getSimpleColorThemeType/getSimpleColorThemeType.js";
function $(e) {
const { $themeType: r, $outlined: n, $textColor: o, $useSimpleTextColor: l } = e, t = l ? o || f(r) : o;
return r === "transparent" ? i({
$textColor: t,
...e
}) : n ? a({
$textColor: t,
...e
}) : m({
$textColor: t,
...e
});
}
export {
$ as default
};