UNPKG

@clubmed/trident-ui

Version:

Shared ClubMed React UI components

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