UNPKG

fui-fancyui

Version:
39 lines (38 loc) 1.17 kB
"use client"; import { jsx as t } from "react/jsx-runtime"; import l from "../../templates/FancyFlexBox/FancyFlexBox.js"; import { StyledSideBarItem as p } from "./SideBarItem.style.js"; import { Icon as c } from "./SubComponents/Icon.js"; import { Label as g } from "./SubComponents/Label.js"; import { sizeSettings as i } from "./sizeSettings.js"; import { leftRightToFlex as u } from "../../../utils/functions/leftRightToFlex.js"; import x from "../../../design/designFunctions/leftRightCenterToFlexJustify/leftRightCenterToFlexJustify.js"; function o(n) { const { children: d, sizeC: e = "sm", direction: m = "left", justify: a = "left", wide: r, noMargin: f, ...s } = n; return /* @__PURE__ */ t( p, { $sizeC: e, sizeC: i[e].boxSize, borderRadius: r ? "0" : i[e].borderRadius, padding: r ? i[e].paddingWide : i[e].padding, $noMargin: f, ...s, children: /* @__PURE__ */ t( l, { justify: x[a], direction: u(m), align: "center", gap: i[e].gapBetweenItems, children: d } ) } ); } o.Icon = c; o.Label = g; export { o as default };