@clubmed/trident-ui
Version:
Shared ClubMed React UI components
62 lines (61 loc) • 1.05 kB
JavaScript
import { jsxs as i } from "react/jsx-runtime";
import "react";
import { Button as l } from "../../ui/buttons/Button.js";
const a = {
white: {
color: "white",
theme: "solid"
},
black: {
color: "black",
theme: "solid"
},
yellow: {
color: "saffron",
theme: "solid"
},
whiteStroke: {
color: "white",
theme: "outline"
},
blackStroke: {
color: "black",
theme: "outline"
}
}, r = {
textSmall: {
size: "small",
variant: void 0
},
text: {
size: "medium",
variant: void 0
},
icon: {
variant: "circle",
label: void 0
},
arrow: {
variant: "circle",
label: void 0,
size: "large"
}
}, c = ({ dataTestId: o, ...t }) => {
const e = {
"data-testid": o,
...t,
...a[t.theme] || {},
...r[t.variant] || {}
};
return /* @__PURE__ */ i(l, { ...e, children: [
e.label,
t.children
] });
};
c.displayName = "Button";
export {
a as BUTTON_THEME_LEGACY,
r as BUTTON_VARIANT_LEGACY,
c as Button
};
//# sourceMappingURL=Button.js.map