UNPKG

fui-fancyui

Version:
21 lines (20 loc) 611 B
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 };