@cgi-learning-hub/ui
Version:
@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features
60 lines (59 loc) • 2.07 kB
JavaScript
import { P as e } from "./index-Sy88PpwE.js";
import { U as p, V as x, H as h, F as T, W as y, T as B, u as N } from "./identifier-PWESmBq6.js";
import * as C from "react";
import { jsx as b } from "react/jsx-runtime";
import { u as g } from "./useTheme--i9fxE_A.js";
import { e as v } from "./extendSxProp-CesAxox9.js";
function E(n = {}) {
const {
themeId: t,
defaultTheme: m,
defaultClassName: a = "MuiBox-root",
generateClassName: r
} = n, c = p("div", {
shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
})(x);
return /* @__PURE__ */ C.forwardRef(function(l, f) {
const s = g(m), {
className: i,
component: u = "div",
...d
} = v(l);
return /* @__PURE__ */ b(c, {
as: u,
ref: f,
className: h(i, r ? r(a) : a),
theme: t && s[t] || s,
...d
});
});
}
const O = T("MuiBox", ["root"]), P = N(), j = E({
themeId: B,
defaultTheme: P,
defaultClassName: O.root,
generateClassName: y.generate
});
process.env.NODE_ENV !== "production" && (j.propTypes = {
// ┌────────────────────────────── Warning ──────────────────────────────┐
// │ These PropTypes are generated from the TypeScript type definitions. │
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* @ignore
*/
children: e.node,
/**
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
component: e.elementType,
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
});
export {
j as B,
O as b
};