UNPKG

@clubmed/trident-ui

Version:

Shared ClubMed React UI components

41 lines (40 loc) 968 B
import { jsx as m } from "react/jsx-runtime"; import { c as C } from "../../chunks/index.js"; /* empty css */ import "react"; import { variants as y, rootClassName as B } from "./Button.helpers.js"; import { themes as w } from "./Button.themes.js"; import { ButtonContent as A } from "./ButtonContent.js"; const D = ({ theme: s = "yellow", component: r = "a", backgroundOverride: e, variant: t = "text", className: n, label: o, children: a, title: c, icon: p, dataTestId: i, href: l, groupName: f = "", ...h }) => { const u = t === "text", d = y[t], x = w(s, e, f); return /* @__PURE__ */ m( r, { "data-name": "ButtonAnchor", "data-testid": i, className: C(B, x, d, t, n), title: c || o, href: l, ...h, children: /* @__PURE__ */ m(A, { showLabel: u, label: o, icon: p, children: a }) } ); }; export { D as ButtonAnchor }; //# sourceMappingURL=ButtonAnchor.js.map