fui-fancyui
Version:
FancyUI Libary
12 lines (11 loc) • 375 B
JavaScript
import o from "../../../../design/theme/themeStore/themeStore.js";
import { globalElementSizesWithFit as m } from "../../../../design/theme/globalSizes.js";
const f = (t) => {
const r = o.getState().theme.globalElementSizes;
if (typeof t == "string" && t.endsWith("%")) return t;
const e = t;
return e === "fit" ? "100%" : r[e] || m.md;
};
export {
f as getSize
};