UNPKG

fui-fancyui

Version:
35 lines (34 loc) 774 B
"use client"; import { jsxs as y, jsx as l } from "react/jsx-runtime"; import { StyledAlignedLabel as m } from "./AlignedLabel.style.js"; import g from "../Typography/Typography.js"; import { sizeSettings as d } from "./sizeSettings.js"; function u(o) { const { children: e, size: p = "md", ownTypographyComponent: t, typography: s, align: i, systemMessageType: a, themeType: r, layer: n } = o; return /* @__PURE__ */ y(m, { $align: i, $themeType: r, $systemMessageType: a, $layer: n, children: [ !t && /* @__PURE__ */ l( g, { variant: d[p].fontSize, elType: "span", themeType: r, layer: n, ...s, children: e } ), t && e ] }); } export { u as default };