fui-fancyui
Version:
FancyUI Libary
62 lines (61 loc) • 1.32 kB
JavaScript
"use client";
import { jsx as e, Fragment as b } from "react/jsx-runtime";
import { StyledButton as f, ButtonStyle as k } from "./Button.style.js";
function R(i) {
const {
children: u,
wide: t,
sizeC: s = "md",
themeType: c = "accent",
layer: $ = 0,
textColor: m,
disabled: o,
borderRadius: S,
hoverColor: h,
outlined: y,
externalStyle: B,
textHover: p,
notAButton: r,
noSize: v,
className: n,
appendClassNameOnStyle: d,
outlinedRemoveBorder: x,
outlinedBackgroundStrength: g,
backgroundState: C,
...l
} = i, a = () => /* @__PURE__ */ e(
k,
{
$sizeC: s,
$borderRadius: S,
$wide: t,
$themeType: c,
$layer: $,
$textColor: m,
$hoverColor: h,
$outlined: y,
$externalStyle: B,
$textHover: p,
$disabled: o,
$outlinedBackgroundStrength: g,
$backgroundState: C,
$noSize: v,
$outlinedRemoveBorder: x,
className: r || d ? n : void 0,
children: u
}
);
return /* @__PURE__ */ e(b, { children: r ? /* @__PURE__ */ e(a, { ...l }) : /* @__PURE__ */ e(
f,
{
$wide: t,
className: d ? void 0 : n,
...l,
disabled: o,
children: /* @__PURE__ */ e(a, {})
}
) });
}
export {
R as default
};