UNPKG

taxonium-component

Version:

React component for exploring large phylogenetic trees in the browser

140 lines (139 loc) 4.05 kB
import { c as d, p } from "./index-CoM8QAjP.js"; import * as u from "react"; import o from "prop-types"; import { A as C, z as f, E as m, G as y, H as b, P as N, b4 as g } from "./JBrowsePanel-BNE3gNW1.js"; import { jsx as v } from "react/jsx-runtime"; function h(t) { return C("MuiCard", t); } f("MuiCard", ["root"]); const w = (t) => { const { classes: s } = t; return b({ root: ["root"] }, h, s); }, M = y(N, { name: "MuiCard", slot: "Root" })({ overflow: "hidden" }), T = /* @__PURE__ */ u.forwardRef(function(s, e) { const n = m({ props: s, name: "MuiCard" }), { className: c, raised: r = !1, ...i } = n, a = { ...n, raised: r }, l = w(a); return /* @__PURE__ */ v(M, { className: d(l.root, c), elevation: r ? 8 : void 0, ref: e, ownerState: a, ...i }); }); p.env.NODE_ENV !== "production" && (T.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ // └─────────────────────────────────────────────────────────────────────┘ /** * The content of the component. */ children: o.node, /** * Override or extend the styles applied to the component. */ classes: o.object, /** * @ignore */ className: o.string, /** * If `true`, the card will use raised styling. * @default false */ raised: g(o.bool, (t) => t.raised && t.variant === "outlined" ? new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.') : null), /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]) }); function O(t) { return C("MuiCardContent", t); } f("MuiCardContent", ["root"]); const j = (t) => { const { classes: s } = t; return b({ root: ["root"] }, O, s); }, R = y("div", { name: "MuiCardContent", slot: "Root" })({ padding: 16, "&:last-child": { paddingBottom: 24 } }), U = /* @__PURE__ */ u.forwardRef(function(s, e) { const n = m({ props: s, name: "MuiCardContent" }), { className: c, component: r = "div", ...i } = n, a = { ...n, component: r }, l = j(a); return /* @__PURE__ */ v(R, { as: r, className: d(l.root, c), ownerState: a, ref: e, ...i }); }); p.env.NODE_ENV !== "production" && (U.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ // └─────────────────────────────────────────────────────────────────────┘ /** * The content of the component. */ children: o.node, /** * Override or extend the styles applied to the component. */ classes: o.object, /** * @ignore */ className: o.string, /** * The component used for the root node. * Either a string to use a HTML element or a component. */ component: o.elementType, /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]) }); export { T as C, U as a }; //# sourceMappingURL=CardContent-CBvdvL5S.js.map