UNPKG

@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) 1.18 kB
"use strict";const d=require("react"),a=require("./index-DLnSn8GT.cjs"),u=require("./chainPropTypes-CEUi6Jb4.cjs");function y(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const g=y(d);function m(e){var n;return parseInt(g.version,10)>=19?((n=e==null?void 0:e.props)==null?void 0:n.ref)||null:(e==null?void 0:e.ref)||null}function R(e){const{prototype:n={}}=e;return!!n.isReactComponent}function s(e,n,t,r,f){const i=e[n],l=f||n;if(i==null||typeof window>"u")return null;let o;const c=i.type;return typeof c=="function"&&!R(c)&&(o="Did you accidentally use a plain function component for an element instead?"),o!==void 0?new Error(`Invalid ${r} \`${l}\` supplied to \`${t}\`. Expected an element that can hold a ref. ${o} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const p=u.chainPropTypes(a.PropTypes.element,s);p.isRequired=u.chainPropTypes(a.PropTypes.element.isRequired,s);exports.elementAcceptingRef=p;exports.getReactElementRef=m;