@cgi-learning-hub/ui
Version:
@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features
2 lines (1 loc) • 538 B
JavaScript
const c=require("./generateUtilityClasses-CENS22bI.cjs"),l=t=>{var s;const e={systemProps:{},otherProps:{}},i=((s=t==null?void 0:t.theme)==null?void 0:s.unstable_sxConfig)??c.defaultSxConfig;return Object.keys(t).forEach(n=>{i[n]?e.systemProps[n]=t[n]:e.otherProps[n]=t[n]}),e};function u(t){const{sx:e,...i}=t,{systemProps:s,otherProps:n}=l(i);let r;return Array.isArray(e)?r=[s,...e]:typeof e=="function"?r=(...f)=>{const o=e(...f);return c.isPlainObject(o)?{...s,...o}:s}:r={...s,...e},{...n,sx:r}}exports.extendSxProp=u;
;